initial commit
This commit is contained in:
commit
c7c8fc4e67
24 changed files with 1328 additions and 0 deletions
5
layouts/bullets.vue
Normal file
5
layouts/bullets.vue
Normal file
|
@ -0,0 +1,5 @@
|
|||
<template>
|
||||
<div class="slidev-layout bullets">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
7
layouts/cover.vue
Normal file
7
layouts/cover.vue
Normal file
|
@ -0,0 +1,7 @@
|
|||
<template>
|
||||
<div class="slidev-layout cover">
|
||||
<div class="my-auto w-full">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
14
layouts/intro.vue
Normal file
14
layouts/intro.vue
Normal file
|
@ -0,0 +1,14 @@
|
|||
<template>
|
||||
<div class="slidev-layout place-content-center intro">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.intro {
|
||||
block-size: 100%;
|
||||
:deep(h1) {
|
||||
font-size: var(--size-6);
|
||||
}
|
||||
}
|
||||
</style>
|
5
layouts/quote.vue
Normal file
5
layouts/quote.vue
Normal file
|
@ -0,0 +1,5 @@
|
|||
<template>
|
||||
<div class="slidev-layout h-full place-content-center">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
32
layouts/title-image.vue
Normal file
32
layouts/title-image.vue
Normal file
|
@ -0,0 +1,32 @@
|
|||
<script setup lang="ts">
|
||||
import { imageSrc } from '../utils/imageHelper'
|
||||
|
||||
const props = defineProps({
|
||||
image: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const image = imageSrc(props.image)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="slidev-layout h-full title">
|
||||
<div class="grid grid-cols-2 h-full">
|
||||
<div class="place-self-center">
|
||||
<slot />
|
||||
</div>
|
||||
<div class="image"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.image {
|
||||
block-size: 100%;
|
||||
background-image: v-bind(image);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue