File tree Expand file tree Collapse file tree 4 files changed +48
-6
lines changed Expand file tree Collapse file tree 4 files changed +48
-6
lines changed Original file line number Diff line number Diff line change @@ -279,17 +279,24 @@ export const asideSponsors: ISponsor[] = [
279
279
isActive : true ,
280
280
imageType : ImageType . SVG ,
281
281
darkStyle : {
282
- width : "48px " ,
282
+ height : "100% " ,
283
283
filter : "brightness(0.3) grayscale(1)" ,
284
284
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' ,
286
286
padding : "6px" ,
287
+ width : "fit-content" ,
288
+ "aspect-ratio" : 4.55 ,
289
+ "max-width" : "initial" ,
287
290
} ,
288
291
lightStyle : {
289
- filter : "brightness(0.8) grayscale(1)" ,
292
+ height : "100%" ,
293
+ filter : "brightness(0.8) grayscale(1) opacity(0.45)" ,
290
294
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' ,
292
296
padding : "6px" ,
297
+ width : "fit-content" ,
298
+ "aspect-ratio" : 4.55 ,
299
+ "max-width" : "initial" ,
293
300
} ,
294
301
} ,
295
302
{
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ declare global {
22
22
}
23
23
}
24
24
25
+ interface SponsorCSS extends CSSProperties {
26
+ "max-width" ?: string ;
27
+ "aspect-ratio" ?: string | number ;
28
+ }
29
+
25
30
export interface ISponsor {
26
31
tier : {
27
32
name : string ;
@@ -38,8 +43,8 @@ export interface ISponsor {
38
43
createdAt : string ;
39
44
isActive : boolean ;
40
45
imageType ?: ImageType ;
41
- lightStyle ?: CSSProperties ;
42
- darkStyle ?: CSSProperties ;
46
+ lightStyle ?: SponsorCSS ;
47
+ darkStyle ?: SponsorCSS ;
43
48
}
44
49
45
50
export enum ImageType {
You can’t perform that action at this time.
0 commit comments