Skip to content

Commit c2a18a4

Browse files
committed
Support Corporate Sponsorship page
1 parent cd2ad48 commit c2a18a4

File tree

2 files changed

+80
-18
lines changed

2 files changed

+80
-18
lines changed

src/css/layout/navigation.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ footer ul {
1212
font-size: var(--small);
1313
}
1414

15-
nav, nav ul {
15+
nav,
16+
nav ul {
1617
display: flex;
1718
width: 100%;
19+
align-items: center;
20+
max-width: 1024px;
1821
justify-content: space-between;
22+
margin: 0 auto;
1923
}
2024

2125
nav .logo-circle {
22-
transition: transform .25s ease-in-out;
26+
transition: transform 0.25s ease-in-out;
2327
flex-shrink: 0;
2428
width: 30px;
2529
height: 30px;
@@ -28,18 +32,14 @@ nav .logo-circle {
2832
margin: 10px 0 0 0;
2933
border-radius: 30px;
3034
box-shadow: 0 9px 18px rgba(129, 0, 0, 0.3), 0 2px 5px rgba(137, 0, 0, 0.2);
31-
background: no-repeat center 6px / 80% url(/assets/images/gem-logo.svg), linear-gradient(to top, #DF3434 0%, #FB5E55 100%);
35+
background: no-repeat center 6px / 80% url(/assets/images/gem-logo.svg),
36+
linear-gradient(to top, #df3434 0%, #fb5e55 100%);
3237
}
3338

3439
nav .logo-circle {
3540
transform: scale(1.05);
3641
}
3742

38-
nav > ul > li:last-child {
39-
margin-left: auto;
40-
margin-right: 1.5rem;
41-
}
42-
4343
footer {
4444
padding: 130px 0;
4545
text-align: center;
@@ -60,15 +60,15 @@ nav > ul > li:last-child > a {
6060
}
6161

6262
nav li.subitem {
63-
text-align: center;
63+
text-align: center;
6464
}
6565

6666
footer ul.nav a {
6767
padding: 15px 20px;
6868
}
6969
footer .nav .nav-contact-us > a > span {
7070
background-attachment: local;
71-
background-image: url("/assets/images/contact-icon.svg");
71+
background-image: url('/assets/images/contact-icon.svg');
7272
background-clip: padding-box;
7373
background-origin: padding-box;
7474
background-repeat: no-repeat;
@@ -133,19 +133,19 @@ nav .menu-icon.close {
133133
margin: 4.5rem 0px;
134134
z-index: 2;
135135
background: #fff;
136-
border: 2px solid #F4EEE6;
136+
border: 2px solid #f4eee6;
137137
border-top: none;
138138
border-radius: 0 0 0 20px;
139-
transition: right .4s ease-in-out;
139+
transition: right 0.4s ease-in-out;
140140
box-shadow: -4px 4px 5px rgba(253, 204, 204, 0.3);
141141
}
142142

143143
nav ul:before {
144-
content: "";
144+
content: '';
145145
position: absolute;
146146
left: -203%;
147147
top: 0;
148-
border: 2px solid #F4EEE6;
148+
border: 2px solid #f4eee6;
149149
border-left: none;
150150
border-bottom: none;
151151
border-radius: 0 20px 0 0;
@@ -174,7 +174,7 @@ nav .menu-icon.close {
174174
}
175175

176176
nav ul {
177-
width: 50%
177+
width: 50%;
178178
}
179179

180180
nav ul::before {

src/css/modern.css

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@
237237
margin-bottom: 2.5rem;
238238
}
239239
@media (min-width: 1350px) {
240-
.grid {
241-
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
242-
}
240+
.grid {
241+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
242+
}
243243
}
244244
.team-photo {
245245
width: 100%;
@@ -261,4 +261,66 @@
261261
.team-title {
262262
font-size: 0.9rem;
263263
}
264+
.level {
265+
margin-bottom: 2.5rem;
266+
box-shadow: 5px 5px 15px rgba(120, 120, 120, 0.1);
267+
}
268+
.level.silver, .level.major {
269+
width: 45%;
270+
}
271+
.level .name {
272+
text-align: center;
273+
padding: 1rem 0 0.25rem 0;
274+
margin: auto;
275+
border-top-left-radius: .75rem;
276+
border-top-right-radius: .75rem;
277+
}
278+
279+
.corporate-sponsors {
280+
display: flex;
281+
flex-wrap: wrap;
282+
justify-content: space-between;
283+
gap: 1rem;
284+
}
285+
.level.ruby, .level.gold {
286+
flex: 1 1 100%;
287+
}
288+
.level.silver, .level.major {
289+
flex: 1 1 100%;
290+
}
291+
@media (min-width: 1024px) {
292+
.level.silver, .level.major {
293+
flex: 1 1 auto;
294+
/* flex-basis: calc(50% - 8px); */
295+
}
296+
}
297+
.level.ruby .name {
298+
background-color: var(--red);
299+
color: var(--white);
300+
}
301+
.level.gold .name {
302+
background-color: var(--yellow);
303+
}
304+
.level.silver .name {
305+
background-color: var(--blue);
306+
color: var(--white);
307+
}
308+
.level.major .name {
309+
background-color: var(--green);
310+
color: var(--white);
311+
}
312+
.level .bucket {
313+
border-bottom-left-radius: .75rem;
314+
border-bottom-right-radius: .75rem;
315+
display: flex;
316+
justify-content: space-evenly;
317+
padding: 1rem;
318+
flex-direction: row;
319+
flex-wrap: wrap;
320+
321+
img {
322+
height: 66px;
323+
margin: 2.5rem;
324+
}
325+
}
264326
}

0 commit comments

Comments
 (0)