Skip to content

Commit 36b56a1

Browse files
committed
+
1 parent ec49ac7 commit 36b56a1

File tree

8 files changed

+121
-95
lines changed

8 files changed

+121
-95
lines changed

public/svg/lokalise-dark.svg

Lines changed: 7 additions & 0 deletions
Loading

public/svg/lokalise-light.svg

Lines changed: 7 additions & 0 deletions
Loading

public/svg/nile.svg

Lines changed: 19 additions & 86 deletions
Loading

src/data/aside-sponsors.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,32 @@ export const asideSponsors: ISponsor[] = [
351351
background: 'url("/svg/praha-light.svg") 0% 0% / cover no-repeat content-box',
352352
},
353353
},
354+
{
355+
tier: {
356+
name: "$1000 a month",
357+
isOneTime: false,
358+
},
359+
sponsorEntity: {
360+
__typename: "Organization",
361+
login: "driz.link/lokalise",
362+
name: "Lokalise",
363+
avatarUrl:
364+
'<svg width="1200" height="1200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>',
365+
},
366+
createdAt: "2024-06-07T13:32:16Z",
367+
isActive: true,
368+
imageType: ImageType.SVG,
369+
darkStyle: {
370+
filter: "brightness(0.3)",
371+
background:
372+
'url("/svg/lokalise-dark.svg") 0% 0% / contain no-repeat content-box',
373+
},
374+
lightStyle: {
375+
filter: "invert(0.6)",
376+
background:
377+
'url("/svg/lokalise-light.svg") 0% 0% / contain no-repeat content-box',
378+
},
379+
},
354380
{
355381
tier: {
356382
name: "$1000 a month",
@@ -379,4 +405,20 @@ export const asideSponsors: ISponsor[] = [
379405
'url("/images/mooncake.png") 0% 0% / contain no-repeat content-box',
380406
},
381407
},
408+
{
409+
tier: {
410+
name: "$1000 a month",
411+
isOneTime: false,
412+
},
413+
sponsorEntity: {
414+
__typename: "Organization",
415+
login: "driz.link/sponsor",
416+
name: "Sponsor",
417+
avatarUrl:
418+
'<svg width="1200" height="1200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>',
419+
},
420+
createdAt: "2024-08-13T16:35:56Z",
421+
isActive: true,
422+
imageType: ImageType.IMAGE,
423+
}
382424
];

src/data/custom-sponsors.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,30 @@ export const customSponsors: ISponsor[] = [
456456
'url("/svg/praha-light.svg") 0% 0% / cover no-repeat content-box',
457457
},
458458
},
459+
{
460+
tier: {
461+
name: "$1000 a month",
462+
isOneTime: false,
463+
},
464+
sponsorEntity: {
465+
__typename: "Organization",
466+
login: "driz.link/lokalise",
467+
name: "Lokalise",
468+
avatarUrl:
469+
'<svg width="1200" height="1200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>',
470+
},
471+
createdAt: "2025-01-23T16:35:56Z",
472+
isActive: true,
473+
imageType: ImageType.SVG,
474+
darkStyle: {
475+
background:
476+
'url("/svg/lokalise-dark.svg") 0% 0% / cover no-repeat content-box',
477+
},
478+
lightStyle: {
479+
background:
480+
'url("/svg/lokalise-light.svg") 0% 0% / cover no-repeat content-box',
481+
},
482+
},
459483
{
460484
tier: {
461485
name: "$1000 a month",

src/mdx/GetStartedLinks/data.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,9 @@ export const getStartedItems: GetStartedItems = [
160160
icon: {
161161
light: {
162162
path: "/public/svg/nile.svg",
163-
style: {
164-
width: 26,
165-
},
166163
},
167164
dark: {
168165
path: "/public/svg/nile.svg",
169-
style: {
170-
width: 26,
171-
},
172166
},
173167
},
174168
},

src/ui/components/AsideSponsors.astro

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { asideSponsors } from "@/data/aside-sponsors";
44
55
const getStyleString = (style: CSSProperties) => {
66
return Object.keys(style).reduce((acc, key) => {
7-
return acc + `${key === "minWidth" ? "min-width" : key}: ${style[key as keyof CSSProperties]};`;
7+
return (
8+
acc +
9+
`${key === "minWidth" ? "min-width" : key}: ${style[key as keyof CSSProperties]};`
10+
);
811
}, "");
912
};
1013
@@ -73,7 +76,12 @@ for (let i = 0; i < goldSponsors.length - 1; i += 2) {
7376
<div class="aside-sponsors__row">
7477
{slice.map((sponsor) => (
7578
<a
76-
class="aside-sponsors__sponsor"
79+
class:list={[
80+
"aside-sponsors__sponsor",
81+
["Mooncake", "Sponsor"].includes(sponsor.sponsorEntity.name)
82+
? "aside-sponsors__sponsor--hide"
83+
: "",
84+
]}
7785
href={`https://${sponsor.sponsorEntity.login}`}
7886
target="_blank"
7987
rel={sponsor.followLink ? "" : "nofollow"}
@@ -417,6 +425,17 @@ for (let i = 0; i < goldSponsors.length - 1; i += 2) {
417425
opacity: 1;
418426
}
419427

428+
@media screen and (max-height: 935px) {
429+
body:not(:has(#banner)) .aside-sponsors__row:has(.aside-sponsors__sponsor--hide) {
430+
display: none;
431+
}
432+
}
433+
@media screen and (max-height: 975px) {
434+
body:has(#banner) .aside-sponsors__row:has(.aside-sponsors__sponsor--hide) {
435+
display: none;
436+
}
437+
}
438+
420439
@media screen and (max-height: 902px) {
421440
body:has(#banner) .aside-sponsors__sponsor {
422441
height: 62px;

src/utils-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const sponsorsHandler = async () => {
111111
}
112112
});
113113

114-
gold = gold.filter((s) => s.sponsorEntity.login !== "samalberto25")
114+
gold = gold.filter((s) => s.sponsorEntity.login !== "samalberto25" && s.sponsorEntity.login !== "lokalise");
115115

116116
superhero = superhero.filter((s) => filterFunc(s));
117117
hero = hero.filter((s) => filterFunc(s));

0 commit comments

Comments
 (0)