@@ -22,18 +22,16 @@ const StyledEventsContainer = styled.div`
2222  position: relative; 
2323  display: flex; 
2424  justify-content: center; 
25-   align-items: center; 
26-   flex-direction: column; 
2725` ; 
2826
29- const  StyledEventsBox  =  styled . div < {  elapsedEvent : boolean   } > ` 
27+ const  StyledEventsBox  =  styled . div < {  elapsedEvent : boolean } > ` 
3028  border-radius: 2em; 
31-   background-color: ${ colors . SAND_HIGHLIGHTS }  
29+    
30+   background-color: ${ ( props ) : string  =>  ( props . elapsedEvent  ? colors . TEXT_BROWN  : colors . BUTTON_DARK_GREEN ) }  
3231  position: relative; 
3332  flex-direction: column; 
3433  display: flex; 
3534  margin: 2em 1.5em; 
36-   padding: 0 1em; 
3735  @media ${ max . desktop }  
3836    margin: 2em 1em; 
3937  } 
@@ -46,51 +44,38 @@ const StyledEventsBox = styled.div<{ elapsedEvent: boolean }>`
4644` ; 
4745
4846const  StyledTextContainer  =  styled . div ` 
49-   display: grid; 
50-   grid-template-columns: 1.4fr 1fr; 
51-   grid-auto-flow: row; 
47+   display: flex; 
5248  margin: 2em; 
5349  padding-top: 0.5em; 
54-   gap: 6em; 
50+   padding-bottom: 4em; 
51+    
52+    
53+    
5554   
5655  @media ${ max . tablet }  
57-     margin: 1em 0; 
58-     height: fit-content; 
59-     grid-template-rows: 2fr 1fr; 
60-     grid-auto-flow: column; 
61-     grid-template-columns: none; 
62-     gap: 1em; 
56+     margin: 1.5em; 
57+   } 
58+   @media ${ max . tabletSm }  
59+     padding-left: 1em; 
6360  } 
6461  @media ${ max . mobile }  
6562    margin: 2em; 
6663    padding-left: 0.5em; 
6764  } 
6865` ; 
6966
70- const  EventsLeftContainer  =  styled . div ` 
67+ const  TextLeftContainer  =  styled . div ` 
7168  width: 95%; 
72-   display: grid; 
73- 
74-   @media ${ max . tablet }  
69+   @media ${ max . tabletSm }  
7570    width: 93%; 
7671  } 
7772` ; 
7873
79- const  EventsRightContainer  =  styled . div ` 
80-   display: flex; 
81-   flex-direction: column; 
82-   justify-content: space-between; 
83-   gap: 2em; 
84-   @media ${ max . tablet }  
85-     gap: 0; 
86-   } 
87- ` ; 
88- 
8974const  StyledEventsCalendar  =  styled . div ` 
9075  border-radius: 2em; 
9176  width: 60%; 
92- 
93-   background-color: ${ colors . YELLOW_GREEN }  
77+    
78+   background-color: ${ colors . BUTTON_GREEN }  
9479  position: relative; 
9580  @media ${ max . tabletLg }  
9681    width: 80%; 
@@ -102,39 +87,48 @@ const StyledEventsCalendar = styled.div`
10287  } 
10388` ; 
10489
105- const  StyledEventsSeaweed  =  styled . img < {   numberOfEvents :  number   } > ` 
90+ const  StyledEventsCactus  =  styled . img ` 
10691  position: absolute; 
107-   bottom: 0; 
108-   left: -8vw; 
109-     width: 11vw; 
110- ` ; 
111- 
112- const  StyledEventsFishSchool  =  styled . img ` 
113-   position: absolute; 
114-   height: 10vw; 
115-   @media ${ min . tablet }  
116-     top: -16vh; 
92+   @media ${ min . tabletSm }  
11793    right: 2em; 
94+     top: 50em; 
95+     height: 16em; 
11896  } 
11997  @media ${ min . desktop }  
120-     top: -16vh; 
12198    right: 5em; 
99+     top: 40em; 
100+     height: 20em; 
122101  } 
123102  @media ${ min . desktopLg }  
124-     top: -20vh; 
125-     right: 8vw; 
103+     right: 10em; 
104+     top: 45em; 
105+     height: 25em; 
106+   } 
107+ ` ; 
108+ 
109+ const  StyledEventsGrass  =  styled . img ` 
110+   position: absolute; 
111+   @media ${ min . tabletSm }  
112+     height: 10em; 
113+     left: 2em; 
114+     top: -8em; 
115+   } 
116+   @media ${ min . tabletLg }  
117+     height: 15em; 
118+     left: 2em; 
119+     top: -8em; 
126120  } 
127121` ; 
128122
129123const  EventsHeader  =  styled ( P ) ` 
130124  font-family: ${ fonts . nunitoSansSemibold }  
131125  line-height: 1.2em; 
132126  letter-spacing: 0.08em; 
133-   color: #193c60;  
127+       
134128  font-size: 1.7em; 
135-   font-weight: bolder;  
136-   @media  ${ max . tablet }  {  
137-     font-size: 1.3em; 
129+   @media  ${ max . tabletSm }  {  
130+     font-size: 1em;  
131+ 
138132  } 
139133  @media ${ max . mobile }  
140134    font-size: 0.6em; 
@@ -143,18 +137,13 @@ const EventsHeader = styled(P)`
143137
144138const  EventsP  =  styled ( P ) ` 
145139  font-size: 1.1em; 
146-   color: ${ colors . BLACK }  
147-   @media ${ max . tablet }  
148-     font-size: 0.8em; 
149-   } 
150140` ; 
151141
152142const  EventsSubHeader  =  styled ( P ) ` 
153143  font-family: ${ fonts . nunitoSansSemibold }  
154-   font-size: 1.2em ; 
144+   font-size: 1.5em ; 
155145  line-height: 2em; 
156-   color: ${ colors . BLACK }  
157-   @media ${ max . tablet }  
146+   @media ${ max . tabletSm }  
158147    font-size: 0.8em; 
159148  } 
160149  @media ${ max . mobile }  
@@ -164,75 +153,32 @@ const EventsSubHeader = styled(P)`
164153
165154const  StyledH2  =  styled ( H2 ) ` 
166155  text-align: center; 
167-   color: ${ colors . WHITE }  
168156` ; 
169157
170158const  EventsPBolded  =  styled ( P ) ` 
171159  font-family: ${ fonts . nunitoSansSemibold }  
172160  font-size: 1.1em; 
173-   color: ${ colors . BLACK }  
174- ` ; 
175- 
176- const  EventsImage  =  styled . img ` 
177-   height: 5vh; 
178-   width: 5vh; 
179-   align-self: flex-end; 
180-   @media ${ max . tablet }  
181-     position: absolute; 
182-     top: 2em; 
183-     right: 2em; 
184-   } 
185- ` ; 
186- 
187- const  EventsLocationContainer  =  styled . div ` 
188-   border: 1px solid ${ colors . YELLOW_GREEN }  
189-   padding: 2em; 
190-   border-radius: 10px; 
191-   display: grid; 
192-   grid-template-columns: 1fr 3fr; 
193-   @media ${ min . tabletLg  &&  max . desktopLg }  
194-     grid-template-columns: 1fr; 
195-     grid-auto-flow: row; 
196-   } 
197- 
198-   @media ${ max . tablet }  
199-     grid-template-columns: 1fr 2fr; 
200-     padding: 0.3em; 
201-     font-size: xx-large; 
202-   } 
203- ` ; 
204- 
205- const  EventsLocationPQuestion  =  styled ( P ) ` 
206-   font-size: 1em; 
207-   right: 2em; 
208-   bottom: 2em; 
209-   color: black; 
210-    
211-   @media ${ max . tablet }  
212-     font-size: 0.5em; 
213-     bottom: 1.5em; 
214-     justify-self: left; 
215-   } 
216161` ; 
217162
218163const  EventsLocationP  =  styled ( P ) ` 
219164  font-size: 1em; 
165+   position: absolute; 
220166  right: 2em; 
221167  bottom: 2em; 
222-   color: ${ colors . BLACK }  
223-   @media ${ max . tablet }  
168+   @media ${ max . tabletSm }  
224169    font-size: 0.5em; 
225170    bottom: 1.5em; 
226-     justify-self: flex-end; 
227-     text-align: right; 
228171  } 
229172` ; 
230173
174+ 
175+ 
176+ 
231177export  { 
232178  StyledSectionContainer , 
233179  StyledEventsCalendar , 
234-   StyledEventsSeaweed , 
235-   StyledEventsFishSchool , 
180+   StyledEventsCactus , 
181+   StyledEventsGrass , 
236182  StyledEventsContainer , 
237183  EventsHeader , 
238184  EventsSubHeader , 
@@ -241,11 +187,7 @@ export {
241187  StyledEventsBox , 
242188  StyledTextContainer , 
243189  EventsLocationP , 
244-   EventsLeftContainer , 
245-   EventsRightContainer , 
190+   TextLeftContainer , 
246191  StyledH2 , 
247-   StyledDesktopTextsContainer , 
248-   EventsLocationContainer , 
249-   EventsImage , 
250-   EventsLocationPQuestion 
192+   StyledDesktopTextsContainer 
251193} ; 
0 commit comments