Skip to content

Commit d7bd924

Browse files
committed
fixed alignment of duration and currency switcher
Signed-off-by: Radha Sharma <radhasharma2786@gmail.com>
1 parent 1a86e27 commit d7bd924

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

src/sections/Pricing/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const Pricing = () => {
6666
<div className="headers">
6767
<h1 className="header-heading">Plans For Every Team Size</h1>
6868

69-
<div style={{ display: "flex", "gap": "1rem", alignItems: "center", "justifyContent": "flex-end", width: "85%" }} >
69+
<div className="header-controls" style={{ display: "flex", "gap": "1rem", alignItems: "center", "justifyContent": "flex-end", width: "85%" }} >
7070
<CurrencySelect currency={currency} setCurrency={setCurrency} />
7171

7272
<SubscriptionToggle isYearly={isYearly} setIsYearly={setIsYearly} />

src/sections/Pricing/pricing.style.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ const PricingWrapper = styled.section`
2020
@media (min-width: 2048px) {
2121
height: 30rem;
2222
}
23+
2324
h1{
2425
margin-top: -2rem;
2526
}
2627
28+
2729
.header-svg {
2830
position: absolute;
2931
bottom: 0;
@@ -35,7 +37,21 @@ const PricingWrapper = styled.section`
3537
color: white;
3638
text-align: center;
3739
}
38-
}
40+
41+
@media (max-width: 383px){
42+
height:27rem;
43+
44+
.header-controls{
45+
flex-direction: column;
46+
gap: 0rem;
47+
}
48+
49+
h1 {
50+
margin-bottom: 1rem;
51+
}
52+
}
53+
54+
}
3955
4056
.toggle-container {
4157
display: flex;
@@ -45,6 +61,11 @@ const PricingWrapper = styled.section`
4561
font-size: .9rem;
4662
gap: 10px;
4763
width: auto;
64+
65+
@media (max-width: 383px){
66+
margin-top: 0rem;
67+
}
68+
4869
}
4970
5071
.toggle {

0 commit comments

Comments
 (0)