Skip to content

Commit b37cf53

Browse files
committed
dcos: update
1 parent 5b45d87 commit b37cf53

File tree

8 files changed

+21
-14
lines changed

8 files changed

+21
-14
lines changed

.vitepress/showcases.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface ShowCaseInfo {
1515
export const showcases: ShowCaseInfo[] = [
1616
{
1717
title: 'Composable Vue',
18-
cover: '',
18+
cover: `${import.meta.env.BASE_URL}assets/composable-vue.png`,
1919
author: {
2020
name: 'Anthony Fu',
2121
link: 'https://github.com/antfu',
@@ -25,4 +25,14 @@ export const showcases: ShowCaseInfo[] = [
2525
at: 'VueDay 2021',
2626
datetime: '2021-04-29',
2727
},
28+
// Add yours here!
29+
{
30+
title: 'Yours?',
31+
author: {
32+
name: '',
33+
},
34+
at: 'Sumbit your talk/presentation to be list here!',
35+
cover: `${import.meta.env.BASE_URL}themes/placeholder.png`,
36+
datetime: '2021-04-29',
37+
},
2838
]

.vitepress/theme/components/ShowCaseInfo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ defineProps<{
1010
<template>
1111
<div>
1212
<div
13-
class="block mb-1.5 w-full rounded overflow-hidden relative"
14-
style="padding-top: 56.25%"
13+
class="block mb-1.5 w-full overflow-hidden relative aspect-9/16"
14+
border="~ rounded gray-400 opacity-20"
1515
>
1616
<img :src="info.cover" class="absolute top-0 bottom-0 left-0 right-0" />
1717
</div>

.vitepress/theme/components/ThemeInfo.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ defineProps<{
1212
<a
1313
:href="theme.id ? theme.previews[0] : '/themes/write-a-theme#submit'"
1414
target="_blank"
15-
class="block mb-1.5 w-full rounded overflow-hidden relative"
16-
style="padding-top: 56.25%"
15+
class="block mb-1.5 w-full overflow-hidden relative aspect-9/16"
16+
border="~ rounded gray-400 opacity-20"
1717
>
1818
<img :src="theme.previews[0]" class="absolute top-0 bottom-0 left-0 right-0" />
1919
</a>
@@ -33,7 +33,8 @@ defineProps<{
3333
<a
3434
v-if="theme.id"
3535
:href="`https://npmjs.com/package/${theme.id}`"
36-
class="ml-2 text-current opacity-20 text-sm hover:opacity-100 hover:text-[#cb3837]"
36+
class="ml-2 text-current opacity-20 text-sm"
37+
hover="opacity-100 text-[#cb3837]"
3738
target="_blank"
3839
>
3940
<simple-icons-npm />

.vitepress/theme/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import './styles/layout.css'
88
import './styles/code.css'
99
import './styles/custom-blocks.css'
1010
import './styles/sidebar-links.css'
11-
import './styles/utils.css'
1211
import 'windi-utilities.css'
1312

1413
const theme = {

.vitepress/theme/styles/layout.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
::before,
33
::after {
44
box-sizing: border-box;
5+
border-width: 0;
6+
border-style: solid;
7+
border-color: #e5e7eb;
58
}
69

710
* {

.vitepress/theme/styles/utils.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

showcases.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ sidebar: false
66

77
Talks / Presentations using Slidev.
88

9+
<!-- Edit in ./docs/.vitepress/showcases.ts -->
910
<ShowCases />

themes/gallery.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
sidebar: false
3-
---
4-
51
# Themes Gallery
62

73
Browser awesome themes available for Slidev here.

0 commit comments

Comments
 (0)