Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 273Do-theme/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script setup lang="ts">
import { useNav } from "@slidev/client";

const { currentSlideNo, total } = useNav();
</script>

<template>
<footer class="flex items-center justify-between text-xs" text="[color:var(--muted-foreground)]">
<span>スライド名</span>
<span>{{ currentSlideNo }}/{{ total }}</span>
</footer>
</template>
5 changes: 5 additions & 0 deletions 273Do-theme/components/Header.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<footer class="flex items-center justify-between text-xs">
<span>YYYY-MM-DD</span>
</footer>
</template>
35 changes: 22 additions & 13 deletions 273Do-theme/layouts/cover.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
<script setup lang="ts">
import { handleBackground } from "../layoutHelper";
import { computed } from "vue";
import Header from "../components/Header.vue";

const props = defineProps({
background: {
type: String,
default: undefined,
},
});

const style = computed(() => handleBackground(props.background));
const titleSplit: string[] = ["ここに", "スライドタイトルを", "記述する"];
const eventTitle = "Event Title Here";
const eventSubTitle = "Sub Title Here";
</script>

<template>
<div class="slidev-layout cover" :style="style">
<div class="my-auto w-full">
<slot />
<div class="slidev-layout flex flex-col h-full p-12">
<Header />
<div class="flex-1 flex flex-col justify-center">
<span
v-for="(word, index) in titleSplit"
:key="index"
class="inline-block w-fit text-6xl leading-tight"
bg="[var(--primary)]"
text="[color:var(--primary-foreground)]"
>{{ word }}</span
>
<div class="flex w-full items-center justify-between">
<div class="flex flex-col mt-4">
<span>{{ eventTitle }}</span>
<span>{{ eventSubTitle }}</span>
</div>
<img src="/imgs/273do-logo.svg" class="w-20 mt-4" />
</div>
</div>
</div>
</template>
8 changes: 8 additions & 0 deletions 273Do-theme/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<div class="slidev-layout flex flex-col h-full p-12">
<div class="flex-1">
<slot />
</div>
<Footer />
</div>
</template>
1 change: 1 addition & 0 deletions 273Do-theme/layouts/intro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ const style = computed(() => handleBackground(props.background));
<div class="my-auto">
<slot />
</div>
<Footer />
</div>
</template>
1 change: 1 addition & 0 deletions 273Do-theme/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
h1,
h2,
h3,
.cover-title,
.slidev-code-block-title {
width: fit-content;
background-color: var(--primary);
Expand Down
37 changes: 0 additions & 37 deletions components/Counter.vue

This file was deleted.

1 change: 1 addition & 0 deletions pages/01-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!--カバースライドに追加する必要があれば設定する-->
1 change: 1 addition & 0 deletions pages/02-slide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# スライド 2
27 changes: 0 additions & 27 deletions pages/imported-slides.md

This file was deleted.

12 changes: 12 additions & 0 deletions public/imgs/273do-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading