File tree Expand file tree Collapse file tree 5 files changed +20
-30
lines changed Expand file tree Collapse file tree 5 files changed +20
-30
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ const props = defineProps<EventAssetProps>()
18
18
alt =" "
19
19
class =" eventcard-image"
20
20
:style =" { marginTop: `${marginTop}px` }"
21
- width =" 920"
22
- height =" 444"
23
- fit =" cover"
24
21
loading =" lazy"
25
22
/>
26
23
</template >
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const props = defineProps<EventCardProps>()
17
17
:title =" $t(`event.${title.replaceAll('-', '_')}`)"
18
18
:font-class
19
19
:padding-class
20
+ class =" frame"
20
21
>
21
22
<template #content >
22
23
<div class =" eventcard-content" >
@@ -34,6 +35,13 @@ const props = defineProps<EventCardProps>()
34
35
<style scoped>
35
36
@import url (' ~/assets/media.css' );
36
37
38
+ .frame {
39
+ display : flex ;
40
+ flex-direction : column ;
41
+ align-items : space-between ;
42
+ justify-content : space-between ;
43
+ }
44
+
37
45
.eventcard-content {
38
46
font-size : 16px ;
39
47
font-weight : 500 ;
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ const { locale: currentLocale } = useLocaleCurrent()
27
27
<NuxtImg
28
28
:src =" '/namecard/namecard-samples.png'"
29
29
alt =" test"
30
- width =" auto"
31
- height =" auto"
32
- fit =" cover"
30
+ width =" 596"
33
31
loading =" lazy"
34
32
/>
35
33
<div class =" buttons-wrapper" >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { ticketUrl } from '~/utils/constants'
16
16
:detail =" $t(`personal_sponsor.merit${i}.detail`)"
17
17
:caution =" i === 2 || i === 4 ? $t(`personal_sponsor.merit${i}.caution`) : ''"
18
18
>
19
- <NuxtImg alt =" " :src =" `/sponsor/merit-${i}.jpg`" loading =" lazy" />
19
+ <NuxtImg alt =" " :src =" `/sponsor/merit-${i}.jpg`" loading =" lazy" class = " image " />
20
20
</VFMeritCard >
21
21
</div >
22
22
<div class =" personal-sponsor-text" >
@@ -89,6 +89,12 @@ import { ticketUrl } from '~/utils/constants'
89
89
color : var (--color-white );
90
90
}
91
91
92
+ .image {
93
+ width : 100% ;
94
+ height : 100% ;
95
+ object-fit : cover ;
96
+ }
97
+
92
98
.apply {
93
99
display : flex ;
94
100
flex-direction : column ;
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ const props = defineProps<MeritProps>()
11
11
<template >
12
12
<div class =" merit" >
13
13
<div class =" merit-card" >
14
- <div class =" image" >
15
- <slot />
16
- </div >
14
+ <slot />
17
15
</div >
18
16
<div class =" merit-item" >
19
17
<h4 class =" merit-title" >{{ title }}</h4 >
@@ -31,18 +29,9 @@ const props = defineProps<MeritProps>()
31
29
}
32
30
33
31
.merit-card {
34
- position : relative ;
35
- display : grid ;
36
- place-items : center ;
37
- padding-bottom : calc (var (--unit ) * 1 );
38
32
width : 224px ;
39
33
height : 126px ;
40
- background : var (--color-white );
41
- }
42
-
43
- .image {
44
- width : 100% ;
45
- height : auto ;
34
+ object-fit : cover ;
46
35
}
47
36
48
37
.merit-item {
@@ -79,17 +68,9 @@ const props = defineProps<MeritProps>()
79
68
}
80
69
81
70
.merit-card {
82
- width : 343px ;
83
- height : 228px ;
84
- padding-bottom : 0 ;
85
- }
86
-
87
- .image {
88
- margin : 0 auto ;
89
71
width : 100% ;
90
- height : 100% ;
91
- display : flex ;
92
- justify-content : center ;
72
+ height : auto ;
73
+ max-width : 232px ;
93
74
}
94
75
95
76
.merit-item ::v-deep(h4 ) {
You can’t perform that action at this time.
0 commit comments