File tree 5 files changed +101
-96
lines changed
5 files changed +101
-96
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ export default function PartnersList({ partners }: { partners: Partner[] }) {
19
19
20
20
return (
21
21
< div className = { styles . partnersList } >
22
- < h1 > Partenaires</ h1 >
22
+ < h1 className = "light" z >
23
+ Partenaires
24
+ </ h1 >
23
25
< div className = { styles . list } > { list } </ div >
24
26
</ div >
25
27
) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
queryTranslations ,
12
12
translate ,
13
13
} from "@/locales" ;
14
+ import styles from "@/styles/Homepage.module.scss" ;
14
15
import {
15
16
Association ,
16
17
AssociationMembership ,
@@ -31,14 +32,18 @@ export default function Home(
31
32
32
33
return (
33
34
< >
34
- < div className = "divLogo" >
35
- < DirectusImage img = { translation . banner } className = "mainLogo" />
36
- < img src = { PreviewImage . src } alt = "preview" className = "galleryPreview" />
35
+ < div className = { styles . divLogo } >
36
+ < DirectusImage img = { translation . banner } className = { styles . mainLogo } />
37
+ < img
38
+ src = { PreviewImage . src }
39
+ alt = "preview"
40
+ className = { styles . galleryPreview }
41
+ />
37
42
</ div >
38
43
39
- < div className = " news" >
44
+ < div className = { styles . news } >
40
45
< h1 className = "light" > News</ h1 >
41
- < div className = "news-list" >
46
+ < div className = { styles . newsList } >
42
47
{ props . news . map ( ( n ) => (
43
48
< NewsCard key = { ( n as any ) . id } news = { n } />
44
49
) ) }
@@ -52,7 +57,7 @@ export default function Home(
52
57
social_links = { props . social_links }
53
58
/>
54
59
55
- < div className = " cardList" >
60
+ < div className = { styles . cardList } >
56
61
< h1 > { translate ( "committee" , locale ( router ) , { capitalize : true } ) } </ h1 >
57
62
< div >
58
63
{ props . committee . map ( ( m ) => (
Original file line number Diff line number Diff line change
1
+ @import " glass" ;
2
+
3
+ .divLogo {
4
+ width : 100% ;
5
+ height : 80vh ;
6
+
7
+ display : grid ;
8
+ grid-template-columns : 1fr 1fr ;
9
+
10
+ @media (max-width : 1200px ) {
11
+ height : 50vh ;
12
+ }
13
+
14
+ @media (max-width : 800px ) {
15
+ grid-template-columns : 1fr ;
16
+ height : fit-content ;
17
+ }
18
+
19
+ .mainLogo {
20
+ grid-row : 1 ;
21
+ grid-column : 1 ;
22
+
23
+ height : 15rem ;
24
+ margin-top : 40% ;
25
+ width : 100% ;
26
+
27
+ @media (max-width : 1200px ) {
28
+ width : 75% ;
29
+ margin : auto ;
30
+ margin-top : 30% ;
31
+ }
32
+
33
+ @media (max-width : 800px ) {
34
+ width : 50% ;
35
+ margin : auto ;
36
+ margin-top : 15% ;
37
+ }
38
+ }
39
+
40
+ .galleryPreview {
41
+ grid-row : 1 ;
42
+ grid-column : 2 ;
43
+ width : 110% ;
44
+
45
+ @media (max-width : 800px ) {
46
+ display : none ;
47
+ }
48
+ }
49
+ }
50
+
51
+ .news {
52
+ @extend .glass ;
53
+
54
+ width : 100% ;
55
+ overflow : scroll ;
56
+
57
+ padding : 2em ;
58
+
59
+ .newsList {
60
+ margin : 2% ;
61
+ gap : 2em ;
62
+ width : fit-content ;
63
+ display : flex ;
64
+ flex-direction : row ;
65
+ }
66
+ }
67
+
68
+ .cardList {
69
+ display : flex ;
70
+ flex-direction : column ;
71
+ row-gap : 1em ;
72
+ margin-top : 5rem ;
73
+
74
+ border-radius : 3rem ;
75
+ background-color : var (--background-color );
76
+ width : 80% ;
77
+
78
+ > div {
79
+ display : grid ;
80
+ grid-gap : 1rem ;
81
+ grid-template-columns : repeat (auto-fit , minmax (320px , 1fr ));
82
+ align-items : center ;
83
+ justify-items : center ;
84
+ padding : 2rem ;
85
+ }
86
+ }
Original file line number Diff line number Diff line change 1
1
.partnersList {
2
2
width : 100% ;
3
- background-color : white ;
3
+ background-color : #0d1d2a ;
4
4
display : flex ;
5
5
flex-direction : column ;
6
6
align-items : center ;
Original file line number Diff line number Diff line change 28
28
29
29
overflow : hidden ;
30
30
31
- gap : 4rem ;
32
-
33
31
padding-top : 3rem ;
34
32
padding-bottom : 6rem ;
35
33
min-height : 100vh ;
43
41
}
44
42
}
45
43
46
- .divLogo {
47
- width : 100% ;
48
- height : 80vh ;
49
-
50
- display : grid ;
51
- grid-template-columns : 1fr 1fr ;
52
-
53
- @media (max-width : 1200px ) {
54
- height : 50vh ;
55
- }
56
-
57
- @media (max-width : 800px ) {
58
- grid-template-columns : 1fr ;
59
- height : fit-content ;
60
- }
61
-
62
- .mainLogo {
63
- grid-row : 1 ;
64
- grid-column : 1 ;
65
-
66
- height : 15rem ;
67
- margin-top : 40% ;
68
- width : 100% ;
69
-
70
- @media (max-width : 1200px ) {
71
- width : 75% ;
72
- margin : auto ;
73
- margin-top : 30% ;
74
- }
75
-
76
- @media (max-width : 800px ) {
77
- width : 50% ;
78
- margin : auto ;
79
- margin-top : 15% ;
80
- }
81
- }
82
-
83
- .galleryPreview {
84
- grid-row : 1 ;
85
- grid-column : 2 ;
86
- width : 110% ;
87
-
88
- @media (max-width : 800px ) {
89
- display : none ;
90
- }
91
- }
92
- }
93
-
94
- .news {
95
- @extend .glass ;
96
-
97
- width : 100% ;
98
- overflow : scroll ;
99
-
100
- padding : 2em ;
101
-
102
- .news-list {
103
- margin : 2% ;
104
- gap : 2em ;
105
- width : fit-content ;
106
- display : flex ;
107
- flex-direction : row ;
108
- }
109
- }
110
-
111
44
.text {
112
45
h1 {
113
46
text-align : center ;
@@ -212,24 +145,3 @@ h1 {
212
145
justify-content : center ;
213
146
}
214
147
}
215
-
216
- .cardList {
217
- display : flex ;
218
- flex-direction : column ;
219
- row-gap : 1em ;
220
-
221
- > div {
222
- display : grid ;
223
- grid-gap : 1rem ;
224
- grid-template-columns : repeat (auto-fit , minmax (320px , 1fr ));
225
- align-items : center ;
226
- justify-items : center ;
227
- padding : 2rem ;
228
- }
229
-
230
- border-radius : 3rem ;
231
-
232
- background-color : var (--background-color );
233
-
234
- width : 80% ;
235
- }
You can’t perform that action at this time.
0 commit comments