11import  styled  from  'styled-components' ; 
22
3+ //prettier-ignore 
4+ 
35export  const  PopularNewsContainer  =  styled . div  ` 
4-   width: 40vw ; 
6+   width: 650px ; 
57  height: calc(100vh - 90px); 
68  display: flex; 
7-   justify-content: center; 
8-   align-items: center; 
9+   flex-direction: column; 
910  border-right: 1px solid black; 
11+   overflow-y: scroll; 
12+   /* overflow-x: hidden; */ 
13+ ` ; 
14+ 
15+ export  const  SectionTitle  =  styled . h5  ` 
16+   font-family: var(--font-sub-header); 
17+   font-weight: var(--weight-highlight); 
18+   text-align: left; 
19+   margin-left: 2rem; 
20+   /* margin-bottom: 5px; */ 
21+ ` ; 
22+ 
23+ export  const  SectionContent  =  styled . div  ` 
24+   padding-bottom: 1.5rem; 
25+   h1 { 
26+     font-size: var(--size-sub-header); 
27+     font-family: var(--font-header); 
28+     font-weight: var(--weight-header); 
29+   } 
30+ ` ; 
31+ 
32+ export  const  SectionHeader  =  styled . div  ` 
33+   padding-top: 1.5rem; 
34+   padding-right: 2rem; 
35+   display: flex; 
36+   justify-content: space-between; 
37+ 
38+   img { 
39+     width: 20px; 
40+   } 
41+ 
42+   h6 { 
43+     color: var(--orange); 
44+     font-family: var(--font-header); 
45+     font-weight: var(--weight-regular); 
46+     margin-top: 0; 
47+   } 
48+ ` ; 
49+ 
50+ export  const  SectionHeaderSquare  =  styled . div  ` 
51+   position: relative; 
52+ 
53+   p { 
54+     position: absolute; 
55+     bottom: 10px; 
56+     right: -16px; 
57+     font-family: var(--font-header); 
58+     font-size: 0.7rem; 
59+   } 
60+ 
61+   img { 
62+     position: absolute; 
63+     z-index: -1; 
64+   } 
65+ ` ; 
66+ 
67+ export  const  SectionContainer  =  styled . div  ` 
68+   padding: 10px 0 10px 2rem; 
69+ 
70+   :nth-child(5n) { 
71+     ${ SectionContent }   { 
72+       h1 { 
73+         font-family: var(--font-rest); 
74+         font-weight: var(--weight-highlight); 
75+       } 
76+     } 
77+   } 
78+ 
79+   :nth-child(3n) { 
80+     background: black; 
81+ 
82+     ${ SectionHeader }   { 
83+       h6 { 
84+         color: white; 
85+       } 
86+     } 
87+ 
88+     ${ SectionHeaderSquare }   { 
89+       p { 
90+         color: white; 
91+       } 
92+     } 
93+ 
94+     ${ SectionContent }   { 
95+       h1 { 
96+         color: var(--orange); 
97+         height: 100%; 
98+       } 
99+ 
100+       img { 
101+       } 
102+     } 
103+   } 
104+ 
105+   :nth-child(7n) { 
106+     background: url(${ ( props )  =>  props . url }  ); 
107+     background-repeat: no-repeat; 
108+     background-size: cover; 
109+     background-position: 50% 50%; 
110+ 
111+     ${ SectionHeader }   { 
112+       h6 { 
113+         color: white; 
114+         text-shadow: 1px 1px var(--orange); 
115+       } 
116+     } 
117+ 
118+     ${ SectionHeaderSquare }   { 
119+       p { 
120+         color: white; 
121+         text-shadow: 1px 1px var(--orange); 
122+       } 
123+     } 
124+     ${ SectionContent }   { 
125+       h1 { 
126+         font-style: italic; 
127+         color: white; 
128+         text-shadow: 1.5px 1.5px var(--orange); 
129+       } 
130+ 
131+       img { 
132+         display: ${ ( props )  =>  ( props . url  ? 'none'  : 'block' ) }  ; 
133+       } 
134+     } 
135+   } 
10136` ; 
0 commit comments