feat(content): added much content

This commit is contained in:
nico 2024-12-19 14:07:20 +01:00
parent cc899c587f
commit ede9c49e9f
Signed by: Nicolas
SSH key fingerprint: SHA256:ELi8eDeNLl5PTn64G+o2Kx5+XVDfHF5um2tZigfwWkM
7 changed files with 141 additions and 20 deletions

View file

@ -1,5 +1,17 @@
<template>
<div class="slidev-layout place-content-center">
<blockquote>
<slot name="quote" />
</blockquote>
<slot />
</div>
</template>
<style scoped>
blockquote {
padding: 0;
margin: var(--space-s) 0;
border: initial;
background: initial;
}
</style>

View file

@ -5,6 +5,14 @@ const props = defineProps({
image: {
type: String,
required: true
},
ratio: {
type: String,
default: '3fr 2fr'
},
imageAlign: {
type: String,
default: 'center'
}
})
@ -14,7 +22,7 @@ const image = imageSrc(props.image)
<template>
<div class="slidev-layout h-full title">
<div class="grid h-full gap-4">
<div class="place-self-center">
<div>
<slot />
</div>
<div class="image"></div>
@ -24,12 +32,12 @@ const image = imageSrc(props.image)
<style scoped>
.grid {
grid-template-columns: 3fr 2fr;
grid-template-columns: v-bind(ratio);
}
.image {
block-size: 100%;
background-image: v-bind(image);
background-size: cover;
background-position: center;
background-position: v-bind(imageAlign);
}
</style>