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>()
1818 alt =" "
1919 class =" eventcard-image"
2020 :style =" { marginTop: `${marginTop}px` }"
21- width =" 920"
22- height =" 444"
23- fit =" cover"
2421 loading =" lazy"
2522 />
2623</template >
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const props = defineProps<EventCardProps>()
1717 :title =" $t(`event.${title.replaceAll('-', '_')}`)"
1818 :font-class
1919 :padding-class
20+ class =" frame"
2021 >
2122 <template #content >
2223 <div class =" eventcard-content" >
@@ -34,6 +35,13 @@ const props = defineProps<EventCardProps>()
3435<style scoped>
3536@import url (' ~/assets/media.css' );
3637
38+ .frame {
39+ display : flex ;
40+ flex-direction : column ;
41+ align-items : space-between ;
42+ justify-content : space-between ;
43+ }
44+
3745.eventcard-content {
3846 font-size : 16px ;
3947 font-weight : 500 ;
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ const { locale: currentLocale } = useLocaleCurrent()
2727 <NuxtImg
2828 :src =" '/namecard/namecard-samples.png'"
2929 alt =" test"
30- width =" auto"
31- height =" auto"
32- fit =" cover"
30+ width =" 596"
3331 loading =" lazy"
3432 />
3533 <div class =" buttons-wrapper" >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { ticketUrl } from '~/utils/constants'
1616 :detail =" $t(`personal_sponsor.merit${i}.detail`)"
1717 :caution =" i === 2 || i === 4 ? $t(`personal_sponsor.merit${i}.caution`) : ''"
1818 >
19- <NuxtImg alt =" " :src =" `/sponsor/merit-${i}.jpg`" loading =" lazy" />
19+ <NuxtImg alt =" " :src =" `/sponsor/merit-${i}.jpg`" loading =" lazy" class = " image " />
2020 </VFMeritCard >
2121 </div >
2222 <div class =" personal-sponsor-text" >
@@ -89,6 +89,12 @@ import { ticketUrl } from '~/utils/constants'
8989 color : var (--color-white );
9090}
9191
92+ .image {
93+ width : 100% ;
94+ height : 100% ;
95+ object-fit : cover ;
96+ }
97+
9298.apply {
9399 display : flex ;
94100 flex-direction : column ;
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ const props = defineProps<MeritProps>()
1111<template >
1212 <div class =" merit" >
1313 <div class =" merit-card" >
14- <div class =" image" >
15- <slot />
16- </div >
14+ <slot />
1715 </div >
1816 <div class =" merit-item" >
1917 <h4 class =" merit-title" >{{ title }}</h4 >
@@ -31,18 +29,9 @@ const props = defineProps<MeritProps>()
3129}
3230
3331.merit-card {
34- position : relative ;
35- display : grid ;
36- place-items : center ;
37- padding-bottom : calc (var (--unit ) * 1 );
3832 width : 224px ;
3933 height : 126px ;
40- background : var (--color-white );
41- }
42-
43- .image {
44- width : 100% ;
45- height : auto ;
34+ object-fit : cover ;
4635}
4736
4837.merit-item {
@@ -79,17 +68,9 @@ const props = defineProps<MeritProps>()
7968 }
8069
8170 .merit-card {
82- width : 343px ;
83- height : 228px ;
84- padding-bottom : 0 ;
85- }
86-
87- .image {
88- margin : 0 auto ;
8971 width : 100% ;
90- height : 100% ;
91- display : flex ;
92- justify-content : center ;
72+ height : auto ;
73+ max-width : 232px ;
9374 }
9475
9576 .merit-item ::v-deep(h4 ) {
You can’t perform that action at this time.
0 commit comments