Skip to content

Commit 6517142

Browse files
committed
feat: add PoweredBySlidev component and i-slidev-logo
1 parent fd6cf4a commit 6517142

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed

packages/client/assets/logo.svg

+60
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<span inline-flex items-center>
3+
<span text-main>Powered by</span>
4+
<a href="https://sli.dev" class="!border-none">
5+
<img alt="Slidev logo" src="../assets/logo-title-horizontal.png" h-1.5em>
6+
</a>
7+
</span>
8+
</template>

packages/client/uno.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { fileURLToPath } from 'node:url'
2+
import { readFileSync } from 'node:fs'
23
import {
34
defineConfig,
45
presetAttributify,
@@ -42,6 +43,14 @@ export default defineConfig({
4243
presetAttributify(),
4344
presetIcons({
4445
collectionsNodeResolvePath: fileURLToPath(import.meta.url),
46+
collections: {
47+
slidev: {
48+
logo: async () => {
49+
const content = readFileSync(fileURLToPath(new URL('assets/logo.svg', import.meta.url)), 'utf-8')
50+
return content
51+
},
52+
},
53+
},
4554
}),
4655
presetTypography(),
4756
],

0 commit comments

Comments
 (0)