Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
<template><v-cardwidth="320px"mod-card="effect:hoverScale variant:info"class="overflow-hidden mx-auto"
><img:src="randomPhoto()"alt=""
/><headerclass="font-semibold text-lg pt-3 px-6">Example card</header><headerclass="text-gray-500 text-sm py-1 px-6">Subtitle</header><divclass="p-6">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of type and scrambled it to
make a type specimen book.
</div><v-divider /><divclass="text-sm px-3 py-2">Card footer</div></v-card></template>
<script setup>
let id = [1015, 1016, 1040, 1043, 1067, 155, 158, 179, 184, 191];
letrandomPhoto = (w = 360, h = 240) =>
`https://picsum.photos/id/${id[(Math.random() * 9).toFixed(0)]}/${w}/${h}`;
</script>
Example - horizontal card
Example cardSubtitle
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
<template><v-cardwidth="720px"style="height: 360px"class="flex flex-row overflow-hidden mx-auto"
><img:src="randomPhoto(360, 360)"alt=""
/><divclass="flex flex-col"><headerclass="font-semibold text-lg pt-4 px-6">Example card</header><headerclass="text-gray-500 text-sm py-1 px-6">Subtitle</header><divclass="p-6">
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever
since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book.
</div><v-dividerclass="w-11/12 mx-auto mt-auto" /><v-buttonmod-button="preset:plain"class="ml-auto underline m-3 mr-6"
>
Show more
</v-button></div></v-card></template>
<script setup>
let id = [1015, 1016, 1040, 1043, 1067, 155, 158, 179, 184, 191];
letrandomPhoto = (w = 360, h = 240) =>
`https://picsum.photos/id/${id[(Math.random() * 9).toFixed(0)]}/${w}/${h}`;
</script>
Example - overlay car
Example cardSubtitle
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
<template><v-cardwidth="360px"class="relative overflow-hidden mx-auto"
><img:src="randomPhoto(360, 600)"alt=""class="opacity-100"
/><divclass="absolute bottom-0 bg-gray-800 bg-opacity-80 text-gray-100"><headerclass="font-semibold text-lg pt-3 px-6">Example card</header><headerclass="text-gray-500 text-sm py-1 px-6">Subtitle</header><divclass="p-6 pb-10">
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever
since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book.
</div></div></v-card></template>
<script setup>
let id = [1015, 1016, 1040, 1043, 1067, 155, 158, 179, 184, 191];
letrandomPhoto = (w = 360, h = 240) =>
`https://picsum.photos/id/${id[(Math.random() * 9).toFixed(0)]}/${w}/${h}`;
</script>
Example - flat card
Example cardSubtitle
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
<template><v-cardwidth="360px"mod-card="border:borderless shape:roundedExtra"class="mx-auto overflow-hidden"
><img:src="randomPhoto()"alt=""
/><headerclass="mt-5 px-7 text-lg font-semibold">Example card</header><headerclass="mt-2 px-7 text-sm text-gray-500">Subtitle</header><divclass="px-7 py-7">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of type and scrambled it to
make a type specimen book.
</div></v-card></template>
<script>
exportdefault {
setup() {
let id = [1015, 1016, 1040, 1043, 1067, 155, 158, 179, 184, 191];
letrandomPhoto = (w = 360, h = 240) =>
`https://picsum.photos/id/${
id[(Math.random() * 9).toFixed(0)]
}/${w}/${h}`;
return {
id,
randomPhoto,
};
},
};
</script>