Skip to content

Commit 9aec249

Browse files
committed
feat: update showcase ui
1 parent df3892f commit 9aec249

File tree

5 files changed

+43
-44
lines changed

5 files changed

+43
-44
lines changed

.vitepress/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ const slidebars: DefaultTheme.SidebarItem[] = [
191191
text: 'Built-in',
192192
items: BuiltIn,
193193
},
194+
{
195+
text: 'Resources',
196+
items: Resources,
197+
},
194198
]
195199

196200
export default defineConfig({

.vitepress/showcases.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const showcases: ShowCaseInfo[] = [
2020
name: 'Anthony Fu',
2121
link: 'https://github.com/antfu',
2222
},
23-
slidesLink: 'https://sli.dev/demo/composable-vue',
24-
sourceLink: 'https://github.com/antfu/talks/tree/master/2021-04-29',
23+
slidesLink: 'https://talks.antfu.me/2021/composable-vue/',
24+
sourceLink: 'https://github.com/antfu/talks/tree/main/2021-04-29',
2525
at: 'VueDay 2021',
2626
datetime: '2021-04-29',
2727
},
@@ -49,29 +49,29 @@ export const showcases: ShowCaseInfo[] = [
4949
at: 'Enter.js Vue Day',
5050
datetime: '2021-06-15',
5151
},
52-
{
53-
title: 'Simply Publish Your Package to npm',
54-
author: {
55-
name: 'Lucky Dewa Satria',
56-
link: 'https://github.com/lucky401',
57-
},
58-
at: 'Weekly sharing',
59-
slidesLink: 'https://masukin.link/talks/simply-publish-your-package-to-npm',
60-
cover: 'https://masukin.link/talks-cover-npm.png',
61-
datetime: '2021-06-12',
62-
},
63-
{
64-
title: 'Create Icon Package With Vue and Rollup',
65-
author: {
66-
name: 'Lucky Dewa Satria',
67-
link: 'https://github.com/lucky401',
68-
},
69-
at: 'Weekly Sharing',
70-
slidesLink: 'https://masukin.link/talks/create-icon-package-with-vue-and-rollup',
71-
sourceLink: 'https://github.com/lucky401/Create-Icon-Package-With-Vue-and-Rollup',
72-
cover: 'https://masukin.link/talks-cover-create-icon-package-with-vue-and-rollup.png',
73-
datetime: '2021-06-19',
74-
},
52+
// {
53+
// title: 'Simply Publish Your Package to npm',
54+
// author: {
55+
// name: 'Lucky Dewa Satria',
56+
// link: 'https://github.com/lucky401',
57+
// },
58+
// at: 'Weekly sharing',
59+
// slidesLink: 'https://masukin.link/talks/simply-publish-your-package-to-npm',
60+
// cover: 'https://masukin.link/talks-cover-npm.png',
61+
// datetime: '2021-06-12',
62+
// },
63+
// {
64+
// title: 'Create Icon Package With Vue and Rollup',
65+
// author: {
66+
// name: 'Lucky Dewa Satria',
67+
// link: 'https://github.com/lucky401',
68+
// },
69+
// at: 'Weekly Sharing',
70+
// slidesLink: 'https://masukin.link/talks/create-icon-package-with-vue-and-rollup',
71+
// sourceLink: 'https://github.com/lucky401/Create-Icon-Package-With-Vue-and-Rollup',
72+
// cover: 'https://masukin.link/talks-cover-create-icon-package-with-vue-and-rollup.png',
73+
// datetime: '2021-06-19',
74+
// },
7575
{
7676
title: 'BeAPT',
7777
author: {
@@ -199,6 +199,6 @@ export const showcases: ShowCaseInfo[] = [
199199
at: 'Submit your talk/presentation to be list here!',
200200
slidesLink: 'https://github.com/slidevjs/docs/edit/main/.vitepress/showcases.ts',
201201
cover: `${import.meta.env.BASE_URL}theme-placeholder.png`,
202-
datetime: '2021-04-29',
202+
datetime: '2020-1-1',
203203
},
204-
]
204+
].sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime())

.vitepress/theme/components/ShowCaseInfo.vue

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ defineProps<{
77
</script>
88

99
<template>
10-
<div>
11-
<div class="block mb-1.5 w-full relative aspect-16/9">
10+
<div class="flex flex-col gap-2">
11+
<div class="block w-full relative aspect-16/9">
1212
<a
1313
class="absolute top-0 bottom-0 left-0 right-0 overflow-hidden"
1414
border="~ rounded gray-400 opacity-20"
@@ -18,45 +18,44 @@ defineProps<{
1818
<img :src="info.cover">
1919
</a>
2020
</div>
21-
<div class="font-bold">
21+
<div class="font-bold line-clamp-2">
2222
{{ info.title }}
2323
</div>
24-
<div
25-
class="text-current text-xs opacity-75 whitespace-nowrap overflow-hidden overflow-ellipsis"
26-
>
24+
<div class="text-current text-xs opacity-75 whitespace-nowrap overflow-hidden overflow-ellipsis">
2725
{{ info.at }}
2826
</div>
29-
<div class="mt-2 flex">
27+
<div class="flex-auto" />
28+
<div class="flex">
3029
<a
3130
v-if="info.author.link"
3231
:href="info.author.link"
33-
class="text-current text-sm opacity-50"
32+
class="text-current! text-sm opacity-50 whitespace-nowrap overflow-hidden overflow-ellipsis"
3433
target="_blank"
3534
>{{ info.author.name }}</a>
36-
<div v-else class="text-current text-sm opacity-50">
35+
<div v-else class="text-current! text-sm opacity-50 whitespace-nowrap overflow-hidden overflow-ellipsis">
3736
{{ info.author.name }}
3837
</div>
3938
<div class="flex-auto" />
4039
<a
4140
v-if="info.videoLink"
4241
:href="info.videoLink"
43-
class="ml-2 text-current opacity-20 hover:opacity-100 hover:text-[#cb3837]"
42+
class="ml-2 text-current! opacity-20 hover:opacity-100 hover:text-[#cb3837]"
4443
target="_blank"
4544
>
4645
<carbon:video />
4746
</a>
4847
<a
4948
v-if="info.slidesLink"
5049
:href="info.slidesLink"
51-
class="ml-2 text-current opacity-20 hover:opacity-100 hover:text-[#cb3837]"
50+
class="ml-2 text-current! opacity-20 hover:opacity-100 hover:text-[#cb3837]"
5251
target="_blank"
5352
>
5453
<carbon:presentation-file />
5554
</a>
5655
<a
5756
v-if="info.sourceLink"
5857
:href="info.sourceLink"
59-
class="ml-2 text-current opacity-20 hover:opacity-100"
58+
class="ml-2 text-current! opacity-20 hover:opacity-100"
6059
target="_blank"
6160
>
6261
<carbon:logo-github />

resources/learning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Videos
66

7-
<iframe class="aspect-16/9 rounded-xl w-full shadow-md border-none" src="https://www.youtube-nocookie.com/embed/oSgM6GoSwyY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
7+
- [Slidev - one of the best presentation software and it is free!](https://www.youtube.com/watch?v=oSgM6GoSwyY) - by [Federico Tartarini](https://www.youtube.com/@FedericoTartarini)
88

99
### Articles
1010

showcases.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
# Showcases
62

73
Talks / Presentations using Slidev.

0 commit comments

Comments
 (0)