Skip to content

Commit 4567be9

Browse files
feat(sponsors): add fade-in and fade-out effects & fix responsive layout; (#297)
* feat: add sponsor list generator; * feat: added deploy action; * fix: fixed layout; * fix: use utm links inside tooltips; * fix(CI): set engine version; * chore: reverted the start button title change; * fix: add the ability to retry the request to get a list of sponsors; * chore: change sponsors config & fix sponsor card layout; * chore: hide 'incognito' sponsor from the list of sponsors; * chore: add Route4Me sponsor; * chore: fixed resolution of utm link for manually added sponsors; * chore: fixed sponsors' tiers resolving; * chore: draft; * chore(sponsors): disable utm links generation for `slotozilla-deutschland`; * chore(draft): Improve sponsors list generator; * chore(draft): fix origin preset; * chore(draft): delete generated icon; * chore(draft): add check to ensure dir exists; * chore(draft): add check to ensure dir exists; * chore(draft): activate GitHub data pulling; * chore(draft): fix crown chevron styling; * chore(draft): reduce logo min-width; * chore(draft): add missed `route4me` light logo; * chore(draft): add a title for readme sponsor block; * chore(draft): fix description resolving; * chore(draft): add utm links for sponsors rendered to markdown; * chore(draft): respect autoUTMLinks for utm links generation; * chore(draft): set user theme timeout to 24 hours; * chore(draft): set utm link for markdown output; * chore(draft): add sponsors' logos; * chore(draft): fix sponsor.json; * chore(draft): fix sponsor.json; * chore(draft): add principal logo; * chore(draft): add a hotfix for svg logos; * chore(draft): use image metadata instead of file extension to determine image format; * chore(draft): add Stytch & Descope links; * chore(draft): fix utm link generator to respect sponsor's params; * chore(draft): add page active link rendering; * chore(draft): notes block refactoring; * chore(draft): remove graphql packages; * chore(sponsors): add website link for buzzoid.com; * chore(sponsors): remove Route4me from the list; * chore(sponsors): Fixed relative URLs for dark theme logos in the Readme sponsor generator; * feat(sponsors): add fade-in and fade-out effects & fix responsive layout; --------- Co-authored-by: Jay <[email protected]>
1 parent 2a79744 commit 4567be9

File tree

4 files changed

+59
-38
lines changed

4 files changed

+59
-38
lines changed

scss/home.scss

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -239,49 +239,32 @@ html[dir="rtl"] {
239239
}
240240

241241
.splide {
242-
height: 9rem;
243-
padding: 0 45px;
242+
height: 8rem;
243+
padding: 0 55px;
244244
margin: 0 calc(-1 * var(--margin) / 2);
245245
}
246246

247247
li.sponsor-card {
248-
width: calc(12%);
248+
width: max(10%, 170px);
249249

250250
&[data-tier=silver] {
251-
width: calc(17%);
251+
width: max(15%, 200px);
252252
}
253253

254254
&[data-tier=gold] {
255-
width: calc(22%);
255+
width: max(20%, 230px);
256256
}
257257

258258
&[data-tier=platinum] {
259-
width: calc(30%);
259+
width: max(25%, 260px);
260260
}
261261
}
262262

263-
@media (max-width: 1400px) {
264-
li.sponsor-card {
265-
width: calc(20%);
266-
267-
&[data-tier=silver] {
268-
width: calc(25%);
269-
}
263+
@media (max-width: 320px) {
270264

271-
&[data-tier=gold] {
272-
width: calc(30%);
273-
}
274-
275-
&[data-tier=platinum] {
276-
width: calc(35%);
265+
li.sponsor-card {
266+
a:has(img) .caption {
267+
display: none;
277268
}
278269
}
279270
}
280-
281-
@media (max-width: 1000px) {
282-
li.sponsor-card img + .caption {
283-
display: none;
284-
}
285-
286-
287-
}

scss/home_variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
--primary-shadow-color: #5b29e45d;
44
--secondary-color: #D442C6;
55
--fg-color: #1f1c24;
6+
--col-bg: #ffffff;
67
--margin: 60px;
78
--font-sans: 'DM Sans', sans-serif;
89
--font-mono: 'DM Mono', monospace;
@@ -42,4 +43,4 @@
4243
width: 60% !important;
4344
}
4445
}
45-
}
46+
}

scss/post.scss

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
li.sponsor-card {
2-
3-
width: calc(15%);
4-
52
/* &[data-has-logo=true] .caption {
63
display: none;
74
}*/
85

6+
width: max(20%, 170px);
7+
98
&[data-tier=gold] {
10-
width: calc(25%);
9+
width: max(25%, 220px);
1110
}
1211

1312
&[data-tier=platinum] {
14-
width: calc(33%);
13+
width: max(30%, 250px);
1514
}
1615
}
1716

@@ -35,3 +34,20 @@ blockquote{
3534
padding: 10px;
3635
}
3736
}
37+
38+
@media (max-width: 480px) {
39+
40+
li.sponsor-card {
41+
width: calc(100%);
42+
}
43+
}
44+
45+
@media (max-width: 400px) {
46+
47+
li.sponsor-card {
48+
49+
a:has(img) .caption {
50+
display: none;
51+
}
52+
}
53+
}

scss/sponsors.scss

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ body.dark {
1717
}
1818

1919
.splide {
20-
height: 7rem;
21-
/* background-color: var(--carousel-bg);*/
20+
height: 7.3rem;
2221
border-radius: 5px;
23-
padding: 0 55px;
24-
margin: 0 calc(-1 * var(--margin) / 2);
2522

2623
.splide__arrows {
2724
visibility: hidden;
@@ -31,6 +28,30 @@ body.dark {
3128
height: 100%;
3229
}
3330

31+
.splide__track::after {
32+
content: "";
33+
position: absolute;
34+
top: 0;
35+
right: 0;
36+
height: 100%;
37+
width: 30px;
38+
pointer-events: none;
39+
background: linear-gradient(to right, transparent, var(--col-bg));
40+
z-index: 1;
41+
}
42+
43+
.splide__track::before {
44+
content: "";
45+
position: absolute;
46+
top: 0;
47+
left: 0;
48+
height: 100%;
49+
width: 30px;
50+
pointer-events: none;
51+
z-index: 1;
52+
background: linear-gradient(to left, transparent, var(--col-bg));
53+
}
54+
3455
&:hover .splide__arrows {
3556
visibility: visible;
3657
}
@@ -40,7 +61,7 @@ li.sponsor-card {
4061

4162
width: calc(15%);
4263

43-
padding: 1.2rem 0;
64+
padding: 1.5rem 0 1.5rem 1.5rem;
4465

4566
.chevron{
4667
flex-grow: 0;

0 commit comments

Comments
 (0)