Skip to content

Commit b9cba10

Browse files
authored
adjustments provide (#211)
1 parent ec8eef8 commit b9cba10

1 file changed

Lines changed: 48 additions & 15 deletions

File tree

src/app/components/Provide.tsx

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const ProvideHeader = styled(SectionTitle)`
3434

3535
const ProvideWrapper = styled.div`
3636
display: flex;
37-
gap: calc(${SpacingM} + 10px);
37+
gap: calc(${SpacingM} + 30px);
3838
justify-content: center;
3939
align-items: center;
4040
max-width: 1200px;
@@ -51,11 +51,13 @@ const ProvideWrapper = styled.div`
5151
const ProvideCard = styled.div`
5252
position: relative;
5353
width: 100%;
54-
max-width: 360px;
54+
max-width: 320px;
55+
flex: 1 1 320px;
5556
5657
@media (max-width: ${ProvideBreakpoint}) {
5758
width: 120%;
5859
max-width: 340px;
60+
flex: none;
5961
}
6062
`;
6163

@@ -66,26 +68,57 @@ const ProvideBackground = styled.img`
6668
margin-left: -2.5%;
6769
`;
6870

69-
const ProvideContent = styled.div`
71+
const ProvideContentBase = styled.div`
7072
position: absolute;
71-
top: 10%;
72-
left: 7%;
73-
right: 7%;
74-
bottom: 20%;
7573
display: flex;
7674
flex-direction: column;
7775
align-items: center;
7876
justify-content: center;
79-
padding: 0 25px;
8077
text-align: center;
78+
padding: 0 25px;
79+
`;
80+
81+
const ProvideContentFood = styled(ProvideContentBase)`
82+
top: 18%;
83+
left: 7%;
84+
right: 7%;
85+
bottom: 20%;
8186
8287
@media (max-width: ${ProvideBreakpoint}) {
83-
top: 6%;
88+
top: 15%;
8489
bottom: 18%;
8590
padding: 0 28px;
8691
}
8792
`;
8893

94+
const ProvideContentSleeping = styled(ProvideContentBase)`
95+
top: 5%;
96+
left: 7%;
97+
right: 7%;
98+
bottom: 20%;
99+
padding: 0 25px;
100+
101+
@media (max-width: ${ProvideBreakpoint}) {
102+
top: 5%;
103+
bottom: 25%;
104+
padding: 0 28px;
105+
}
106+
`;
107+
108+
const ProvideContentSponsors = styled(ProvideContentBase)`
109+
top: 18%;
110+
left: 5%;
111+
right: 5%;
112+
bottom: 20%;
113+
padding: 0 25px;
114+
115+
@media (max-width: ${ProvideBreakpoint}) {
116+
top: 8%;
117+
bottom: 15%;
118+
padding: 0 28px;
119+
}
120+
`;
121+
89122
const ProvideLabel = styled.div<{
90123
$isSponsors?: boolean;
91124
$isSleeping?: boolean;
@@ -137,40 +170,40 @@ export default function Provide() {
137170
<ProvideWrapper>
138171
<ProvideCard>
139172
<ProvideBackground src="/Provide/food.svg" alt="Food" />
140-
<ProvideContent>
173+
<ProvideContentFood>
141174
<ProvideBody className={montserrat.className}>
142175
We've got you covered, we even have midnight snacks. Throughout
143176
the event there will be snacks, drinks, and coffee to revive
144177
your energy.
145178
</ProvideBody>
146-
</ProvideContent>
179+
</ProvideContentFood>
147180
<ProvideLabel className={montserrat.className}>Food</ProvideLabel>
148181
</ProvideCard>
149182

150183
<ProvideCard>
151184
<ProvideBackground src="/Provide/sleeping.svg" alt="Sleeping" />
152-
<ProvideContent>
185+
<ProvideContentSleeping>
153186
<ProvideBody className={montserrat.className}>
154187
We will provide some air mattresses both nights so you may
155188
descend into a deep slumber. While supplies last! Check out the{" "}
156189
<BodyLinkStyled href={"#faqs"}>FAQs</BodyLinkStyled> for more
157190
info.
158191
</ProvideBody>
159-
</ProvideContent>
192+
</ProvideContentSleeping>
160193
<ProvideLabel className={montserrat.className} $isSleeping>
161194
Sleeping
162195
</ProvideLabel>
163196
</ProvideCard>
164197

165198
<ProvideCard>
166199
<ProvideBackground src="/Provide/sponsors.svg" alt="Sponsors" />
167-
<ProvideContent>
200+
<ProvideContentSponsors>
168201
<ProvideBody className={montserrat.className}>
169202
You can also visit our sponsors' stands or meet them remotely!
170203
They'll be available during the day and would love to talk to
171204
you! (You might get some swag as well)
172205
</ProvideBody>
173-
</ProvideContent>
206+
</ProvideContentSponsors>
174207
<ProvideLabel className={montserrat.className} $isSponsors>
175208
Sponsors
176209
</ProvideLabel>

0 commit comments

Comments
 (0)