Skip to content

Commit ec89504

Browse files
committed
📘 doc: elysia icon
1 parent 373b0ca commit ec89504

File tree

7 files changed

+27
-4
lines changed

7 files changed

+27
-4
lines changed

components/midori/hero.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<img
2020
src="/assets/elysia_v.webp"
2121
alt="Curved text logo saying 'Elysia JS'"
22-
class="max-w-[52ch] w-full object-contain object-left md:object-center mr-auto md:mr-0"
23-
style="aspect-ratio: 2 / 1"
22+
class="max-w-[40ch] w-full object-contain object-left md:object-center mr-auto md:mr-0"
23+
style="aspect-ratio: 1.5 / 1"
2424
/>
2525
<h2
2626
class="relative text-5xl md:text-6xl md:leading-tight font-bold md:text-center leading-tight text-transparent bg-clip-text bg-gradient-to-r from-sky-300 to-indigo-400 mb-6"
@@ -112,7 +112,7 @@
112112
bun create elysia app
113113
</code>
114114
<button
115-
class="p-3 rounded-2xl active:rounded-full hover:bg-blue-200/25 focus:bg-blue-200/25 active:bg-blue-200/50 hover:dark:bg-blue-500/20 focus:dark:bg-blue-500/20 active:dark:bg-blue-500/20 transition-all"
115+
class="hidden sm:inline-flex p-3 rounded-2xl active:rounded-full hover:bg-blue-200/25 focus:bg-blue-200/25 active:bg-blue-200/50 hover:dark:bg-blue-500/20 focus:dark:bg-blue-500/20 active:dark:bg-blue-500/20 transition-all"
116116
@click="copied = true"
117117
>
118118
<svg

docs/.vitepress/theme/custom.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ html, body {
2727
--vp-custom-block-tip-border: #dcfce7;
2828
--vp-custom-block-tip-text: #15803d;
2929
--vp-c-brand-nav-active: color-mix(in srgb, var(--vp-c-brand-light) 15%, transparent 100%);
30+
--vp-nav-logo-height: 28px;
3031
}
3132

3233
.dark {
@@ -63,6 +64,14 @@ button.copy::after {
6364
border: 0;
6465
}
6566

67+
/* .VPNavBarTitle > a > span {
68+
@apply hidden;
69+
}
70+
71+
.logo {
72+
@apply hidden;
73+
} */
74+
6675
#embedded-editor {
6776
@apply my-6 h-[720px] w-full rounded-lg border-0;
6877
}

docs/.vitepress/theme/header.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<!-- <img
3+
src="/assets/elysia_v.webp"
4+
alt="Curved text logo saying 'Elysia JS'"
5+
class="h-[64px]"
6+
/> -->
7+
</template>

docs/.vitepress/theme/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// https://vitepress.dev/guide/custom-theme
2+
import { h } from 'vue'
23
import DefaultTheme from 'vitepress/theme'
4+
35
import Layout from './layout.vue'
6+
import Header from './header.vue'
47

58
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
69
import '@shikijs/vitepress-twoslash/style.css'
@@ -12,7 +15,11 @@ import type { Theme } from 'vitepress'
1215

1316
export default {
1417
extends: DefaultTheme,
15-
Layout,
18+
Layout() {
19+
return h(DefaultTheme.Layout, null, {
20+
'nav-bar-title-after': () => h(Header)
21+
})
22+
},
1623
enhanceApp({ app }: EnhanceAppContext) {
1724
app.use(TwoslashFloatingVue)
1825
}

docs/public/assets/cover.jpg

68.8 KB
Loading

docs/public/assets/cover.png

-24.2 KB
Loading

docs/public/assets/cover.psd

204 KB
Binary file not shown.

0 commit comments

Comments
 (0)