Skip to content

Commit cdc708d

Browse files
committed
docs: add mock logo
1 parent a676f49 commit cdc708d

File tree

6 files changed

+40
-2
lines changed

6 files changed

+40
-2
lines changed

docs/.vitepress/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ const vitepressConfig: UserConfig<DefaultTheme.Config> = defineConfig({
3434
},
3535
},
3636
head: [
37-
['link', { rel: 'icon', type: 'image/svg', href: '/logo.svg' }],
37+
['link', { rel: 'icon', type: 'image/svg', href: '/logo.png' }],
3838
],
3939
sitemap: {
4040
hostname: 'https://vite-plugin-mock-dev-server.netlify.app',
4141
},
4242
themeConfig: {
43-
logo: '/logo.svg',
43+
logo: '/logo.png',
4444
socialLinks: [
4545
{
4646
icon: 'github',

docs/.vitepress/theme/style.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,35 @@
55
--vp-c-brand-3: #FF9933;
66
--vp-c-brand-darker: #CC6600;
77
} */
8+
9+
:root {
10+
--vp-home-hero-name-color: transparent;
11+
--vp-home-hero-name-background: -webkit-linear-gradient(
12+
120deg,
13+
rgb(119, 118, 255) 30%,
14+
rgb(174, 44, 241)
15+
);
16+
--vp-home-hero-image-background-image: linear-gradient(
17+
-45deg,
18+
rgba(119, 118, 255, .6) 50%,
19+
rgba(174, 44, 241, .6) 50%
20+
);
21+
--vp-home-hero-image-filter: blur(44px);
22+
}
23+
24+
@media (min-width: 640px) {
25+
:root {
26+
--vp-home-hero-image-filter: blur(56px);
27+
}
28+
}
29+
30+
@media (min-width: 960px) {
31+
:root {
32+
--vp-home-hero-image-filter: blur(68px);
33+
}
34+
}
35+
36+
.VPHero .VPImage {
37+
filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, 0.2));
38+
padding: 18px;
39+
}

docs/en/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ hero:
1313
- theme: alt
1414
text: Github
1515
link: https://github.com/pengzhanbo/vite-plugin-mock-dev-server
16+
image:
17+
src: /hero.webp
18+
alt: Mock-Dev-Server
1619

1720
features:
1821
- title: Lightweight, Flexible, Fast

docs/public/hero.webp

45.3 KB
Loading

docs/public/logo.png

10.9 KB
Loading

docs/zh/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ hero:
1313
- theme: alt
1414
text: Github
1515
link: https://github.com/pengzhanbo/vite-plugin-mock-dev-server
16+
image:
17+
src: /hero.webp
18+
alt: Mock-Dev-Server
1619

1720
features:
1821
- title: 轻量,灵活,快速

0 commit comments

Comments
 (0)