File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -23,5 +23,13 @@ export function useSponsor() {
23
23
. exhaustive ( )
24
24
}
25
25
26
- return { color }
26
+ function borderColor ( tag : string [ ] ) {
27
+ if ( tag . includes ( 'platinum' ) ) return '#6E8F2E'
28
+ if ( tag . includes ( 'gold' ) ) return '#E5AF00'
29
+ if ( tag . includes ( 'silver' ) ) return '#1A8191'
30
+ if ( tag . includes ( 'bronze' ) ) return '#CC4F39'
31
+ return '#35495E'
32
+ }
33
+
34
+ return { color, borderColor }
27
35
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const { data: speakers } = await useAsyncData('speakers', async () => {
29
29
const speakerData = speakers .value ?.data as Speaker []
30
30
31
31
const currentLocale = useLocaleCurrent ().locale
32
- const { color } = useSponsor ()
32
+ const { color, borderColor } = useSponsor ()
33
33
34
34
useHead ({
35
35
titleTemplate : (titleChunk ) => ` ${sponsorData [0 ].name } | ${conferenceTitle } ` ,
@@ -60,7 +60,7 @@ useHead({
60
60
61
61
<div class =" detailhead-body" >
62
62
<div class =" detailhead-left" >
63
- <p class =" detailhead-img" >
63
+ <p class =" detailhead-img" :style = " { border: `1px solid ${borderColor(sponsorData[0].tag)}` } " >
64
64
<img
65
65
:src =" `${sponsorData[0].image_url}`"
66
66
:alt =" sponsorData[0].name"
@@ -226,8 +226,7 @@ useHead({
226
226
width : var (--head-img-width );
227
227
height : auto ;
228
228
aspect-ratio : 690 / 388 ;
229
- box-shadow : 0px 4px 4px 0px #00000040 ;
230
- border-radius : calc (var (--space-8 ) * 1 );
229
+ border-radius : calc (var (--unit ) * 1.5 );
231
230
}
232
231
233
232
.detailhead-img img {
You can’t perform that action at this time.
0 commit comments