Skip to content

Commit e88cbc9

Browse files
committed
+
1 parent d2f3a04 commit e88cbc9

File tree

4 files changed

+48
-6
lines changed

4 files changed

+48
-6
lines changed

public/svg/upstash-dark-bg.svg

Lines changed: 15 additions & 0 deletions
Loading

public/svg/upstash-white-bg.svg

Lines changed: 15 additions & 0 deletions
Loading

src/data/aside-sponsors.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,17 +279,24 @@ export const asideSponsors: ISponsor[] = [
279279
isActive: true,
280280
imageType: ImageType.SVG,
281281
darkStyle: {
282-
width: "48px",
282+
height: "100%",
283283
filter: "brightness(0.3) grayscale(1)",
284284
background:
285-
'url("/svg/upstash-icon-dark-bg.svg") 0% 0% / cover no-repeat content-box',
285+
'url("/svg/upstash-dark-bg.svg") center / contain no-repeat content-box',
286286
padding: "6px",
287+
width: "fit-content",
288+
"aspect-ratio": 4.55,
289+
"max-width": "initial",
287290
},
288291
lightStyle: {
289-
filter: "brightness(0.8) grayscale(1)",
292+
height: "100%",
293+
filter: "brightness(0.8) grayscale(1) opacity(0.45)",
290294
background:
291-
'url("/svg/upstash-icon-white-bg.svg") 0% 0% / cover no-repeat content-box',
295+
'url("/svg/upstash-white-bg.svg") center / contain no-repeat content-box',
292296
padding: "6px",
297+
width: "fit-content",
298+
"aspect-ratio": 4.55,
299+
"max-width": "initial",
293300
},
294301
},
295302
{

src/types.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ declare global {
2222
}
2323
}
2424

25+
interface SponsorCSS extends CSSProperties {
26+
"max-width"?: string;
27+
"aspect-ratio"?: string | number;
28+
}
29+
2530
export interface ISponsor {
2631
tier: {
2732
name: string;
@@ -38,8 +43,8 @@ export interface ISponsor {
3843
createdAt: string;
3944
isActive: boolean;
4045
imageType?: ImageType;
41-
lightStyle?: CSSProperties;
42-
darkStyle?: CSSProperties;
46+
lightStyle?: SponsorCSS;
47+
darkStyle?: SponsorCSS;
4348
}
4449

4550
export enum ImageType {

0 commit comments

Comments
 (0)