Skip to content

Commit

Permalink
chore: fix demo style
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 2, 2024
1 parent b41368d commit 79a4d45
Show file tree
Hide file tree
Showing 25 changed files with 40 additions and 665 deletions.
1 change: 1 addition & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { DefaultTheme } from 'vitepress'
import { defineConfig } from 'vitepress'
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
import vite from '../vite.config'

const CURRENT_VERSION = '0.47.1'

Expand Down
138 changes: 0 additions & 138 deletions .vitepress/theme/Layout.vue

This file was deleted.

23 changes: 0 additions & 23 deletions .vitepress/theme/NotFound.vue

This file was deleted.

25 changes: 0 additions & 25 deletions .vitepress/theme/components/BooleanDisplay.vue

This file was deleted.

13 changes: 0 additions & 13 deletions .vitepress/theme/components/DarkModeSwitch.vue

This file was deleted.

3 changes: 3 additions & 0 deletions .vitepress/theme/components/Demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import SlideContainer from '@slidev/client/internals/SlideContainer.vue'
import '@slidev/client/styles/layouts-base.css'
import '@slidev/theme-default/styles/layouts.css'
import DemoEditor from './DemoEditor.vue'
import DemoSlide from './DemoSlide.vue'
const page = ref(0)
const paused = ref(false)
const code = ref('')
Expand Down
18 changes: 0 additions & 18 deletions .vitepress/theme/components/DemoContainer.vue

This file was deleted.

24 changes: 24 additions & 0 deletions .vitepress/theme/components/LandingPage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div class="xl:grid xl:grid-cols-[3fr_4fr] gap-4" min-h-80vh px8 xl:px20 py5 max-w-100vw xl:max-w-450 mxa>
<div flex="~ col items-center justify-center" min-h-150>
<h1 hidden>
Slidev
</h1>
<img src="/logo-title.png" alt="Slidev" w-80 xl:w-100 xl:mt--35>
<h2 text-3xl mt--5 op80 text-center>
Presentation Slides for Developers
</h2>
<div flex="~ gap-3 justify-center" p4 mt-5>
<a href="/guide/" class="bg-$vp-c-brand-3 text-white px5 py3 text-xl font-bold rounded-xl hover:bg-$vp-c-brand-1">Get Started</a>
<a href="/guide/why" class="bg-$vp-c-gray-1 text-white px5 py3 text-xl font-bold rounded-2xl hover:bg-$vp-c-brand-1">Why</a>
</div>
</div>
<div flex>
<div w-180 ma>
<ClientOnly>
<Demo />
</ClientOnly>
</div>
</div>
</div>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A simple wrapper for embedded Tweet
Usage:
<Tweet id="20" />
<TheTweet id="20" />
-->

<script setup lang="ts">
Expand Down
46 changes: 0 additions & 46 deletions .vitepress/theme/components/ToggleSideBarButton.vue

This file was deleted.

5 changes: 0 additions & 5 deletions .vitepress/theme/components/icons/ArrowLeft.vue

This file was deleted.

5 changes: 0 additions & 5 deletions .vitepress/theme/components/icons/ArrowRight.vue

This file was deleted.

8 changes: 0 additions & 8 deletions .vitepress/theme/components/icons/Moon.vue

This file was deleted.

31 changes: 0 additions & 31 deletions .vitepress/theme/components/icons/OutboundLink.vue

This file was deleted.

1 change: 0 additions & 1 deletion .vitepress/theme/components/icons/README.md

This file was deleted.

0 comments on commit 79a4d45

Please sign in to comment.