Skip to content

Commit 03465a6

Browse files
committed
improve
1 parent 48c2f50 commit 03465a6

File tree

8 files changed

+55
-21
lines changed

8 files changed

+55
-21
lines changed

β€Ždocs/.vitepress/config.tsβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { defineConfig } from 'vitepress';
22

33
export default defineConfig({
4-
title: 'sv-router',
5-
description: 'Modern Svelte routing',
6-
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
4+
title: 'sv-router | Modern Svelte routing',
5+
description: 'A feature-rich yet intuitive routing library for Svelte single-page apps.',
6+
head: [['link', { rel: 'icon', href: '/logo.svg' }]],
77
cleanUrls: true,
88
themeConfig: {
9+
logo: '/logo.svg',
10+
siteTitle: 'sv-router',
911
nav: [
1012
{ text: 'Guide', link: '/guide/why', activeMatch: '/guide/' },
1113
{ text: 'Reference', link: '/reference/foo', activeMatch: '/reference/' },
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:root {
2+
--vp-home-hero-name-color: transparent;
3+
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #e64e25 30%, #dcb285);
4+
5+
--vp-home-hero-image-background-image: linear-gradient(-45deg, #e64e2566 50%, #e64e2566 50%);
6+
--vp-home-hero-image-filter: blur(44px);
7+
}
8+
9+
@media (min-width: 640px) {
10+
:root {
11+
--vp-home-hero-image-filter: blur(56px);
12+
}
13+
}
14+
15+
@media (min-width: 960px) {
16+
:root {
17+
--vp-home-hero-image-filter: blur(68px);
18+
}
19+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default } from 'vitepress/theme';
2+
import './custom.css';

β€Ždocs/index.mdβ€Ž

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ layout: home
44
hero:
55
name: sv-router
66
text: Modern Svelte routing
7-
tagline: A feature-rich yet intuitive routing library for Svelte SPAs.
7+
tagline: A feature-rich yet intuitive routing library for Svelte single-page apps.
88
image:
9-
src: /logo.png
9+
src: /logo.svg
10+
width: 100%
11+
height: 100%
1012
actions:
1113
- theme: brand
1214
text: Get Started
@@ -19,19 +21,16 @@ hero:
1921
link: https://github.com/colinlienard/sv-router
2022

2123
features:
22-
- icon:
23-
src: /typescript.svg
24+
- icon: πŸ”’
2425
title: Typesafe navigation
25-
details: Get autocomplete and type checking for your routes, ensuring reliable navigation.
26-
- icon:
27-
src: /vitejs.svg
26+
details: Get autocomplete and type checking for your routes.
27+
- icon: πŸ—‚οΈ
2828
title: File-based routing (optional)
29-
details: Enjoy the DX of a meta-framework-like approach with a Vite plugin.
29+
details: Enjoy the DX of a meta-framework-like approach.
3030
- icon: 🌿
3131
title: Nested routes
32-
details: Create complex layouts with ease, thanks to intuitive route nesting.
33-
- icon:
34-
src: /svelte.svg
32+
details: Create complex layouts with ease.
33+
- icon: πŸš€
3534
title: Made for Svelte 5
36-
details: Benefit from faster performance and a smaller bundle size, built natively for the latest Svelte.
35+
details: Benefit from faster performance and smaller bundle size.
3736
---

β€Ždocs/public/logo.svgβ€Ž

Lines changed: 18 additions & 0 deletions
Loading

β€Ždocs/public/svelte.svgβ€Ž

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

β€Ždocs/public/typescript.svgβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Ždocs/public/vitejs.svgβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
Β (0)