Skip to content

Commit 491c92e

Browse files
committed
+
1 parent a4f3c32 commit 491c92e

20 files changed

+21
-2381
lines changed

src/assets/icons/HandDrawnArrowRightIcon.astro

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/assets/icons/SequelizeIcon.astro

Lines changed: 0 additions & 143 deletions
This file was deleted.

src/assets/icons/TypeORMIcon.astro

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/components/LandingPage/SponsorsLine/SponsorsLine.astro

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</template>
5656
<script>
5757
import { sponsorsHandler } from "@/utils-client";
58-
import sponsorTypes from "@/data/sponsor-types";
58+
import { sponsorConfig } from "@/data/sponsor-config";
5959
import { ImageType } from "@/types";
6060
import type { CSSProperties } from "react";
6161

@@ -105,13 +105,13 @@
105105
true,
106106
) as HTMLElement;
107107
const headerName = cards.querySelector("#header-text")!;
108-
headerName.textContent = `${sponsorTypes[type.name].header} sponsors`;
108+
headerName.textContent = `${sponsorConfig[type.name].header} sponsors`;
109109
const emoji = cards.querySelector("#emoji")!;
110-
emoji.textContent = sponsorTypes[type.name].emoji;
110+
emoji.textContent = sponsorConfig[type.name].emoji;
111111
const cardsBlock = cards.querySelector("#cards-block")!;
112112
cardsBlock.className = `${type.name} cards`;
113113
type.items.forEach((item) => {
114-
if (sponsorTypes[type.name].hasName) {
114+
if (sponsorConfig[type.name].hasName) {
115115
//WITH NAME
116116
const card = sponsorCardWithNameTemplate.content.cloneNode(
117117
true,
@@ -132,7 +132,7 @@
132132
if (!item.imageType) {
133133
imgDark.src = getImgLink(
134134
item.sponsorEntity.avatarUrl,
135-
sponsorTypes[type.name].size,
135+
sponsorConfig[type.name].size,
136136
);
137137
}
138138
imgDark.alt = item.sponsorEntity.name || item.sponsorEntity.login;
@@ -161,7 +161,7 @@
161161
if (!item.imageType) {
162162
imgLight.src = getImgLink(
163163
item.sponsorEntity.avatarUrl,
164-
sponsorTypes[type.name].size,
164+
sponsorConfig[type.name].size,
165165
);
166166
}
167167
imgLight.alt =
@@ -178,8 +178,8 @@
178178
)! as HTMLDivElement;
179179
imgWrapper.setAttribute(
180180
"style",
181-
`width: ${sponsorTypes[type.name].size}px; height: ${
182-
sponsorTypes[type.name].size
181+
`width: ${sponsorConfig[type.name].size}px; height: ${
182+
sponsorConfig[type.name].size
183183
}px`,
184184
);
185185
const gitLink = card.querySelector(
@@ -224,7 +224,7 @@
224224
"#card-wrapper",
225225
)! as HTMLDivElement;
226226
cardWrapper.classList.add("with_name");
227-
if (sponsorTypes[type.name].hasCard) {
227+
if (sponsorConfig[type.name].hasCard) {
228228
if (item.popover) {
229229
cardWrapper.classList.add("styled_card_with_popover");
230230
const popover =
@@ -269,7 +269,7 @@
269269
if (!item.imageType) {
270270
imgDark.src = getImgLink(
271271
item.sponsorEntity.avatarUrl,
272-
sponsorTypes[type.name].size,
272+
sponsorConfig[type.name].size,
273273
);
274274
}
275275
imgDark.alt = item.sponsorEntity.name || item.sponsorEntity.login;
@@ -299,7 +299,7 @@
299299
if (!item.imageType) {
300300
imgLight.src = getImgLink(
301301
item.sponsorEntity.avatarUrl,
302-
sponsorTypes[type.name].size,
302+
sponsorConfig[type.name].size,
303303
);
304304
}
305305
imgLight.alt =
@@ -310,8 +310,8 @@
310310
)! as HTMLDivElement;
311311
imgWrapper.setAttribute(
312312
"style",
313-
`width: ${sponsorTypes[type.name].size}px; height: ${
314-
sponsorTypes[type.name].size
313+
`width: ${sponsorConfig[type.name].size}px; height: ${
314+
sponsorConfig[type.name].size
315315
}px`,
316316
);
317317
const gitLink = card.querySelector(

src/components/layout/AsideSponsors.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
import type { CSSProperties } from "react";
3-
import s from "@/data/asideS";
3+
import { asideSponsors } from "@/data/aside-sponsors";
44
55
const getStyleString = (style: CSSProperties) => {
66
return Object.keys(style).reduce((acc, key) => {
77
return acc + `${key}: ${style[key as keyof CSSProperties]};`;
88
}, "");
99
};
1010
11-
const heroSponsors = s.filter(({tier}) => tier.name === '$2500 a month');
11+
const heroSponsors = asideSponsors.filter(({tier}) => tier.name === '$2500 a month');
1212
13-
const goldSponsors = s.filter(({tier}) => tier.name === '$1000 a month');
13+
const goldSponsors = asideSponsors.filter(({tier}) => tier.name === '$1000 a month');
1414
1515
const slicedSponsors = [];
1616

src/components/layout/Breadcrumbs.astro

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)