From 4e19ac091c94e4cdedc47530003075d5b766bce6 Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Mon, 28 Oct 2024 02:57:43 +0800 Subject: [PATCH] feat: add hero image --- docs/.vitepress/theme/custom.css | 6 ++++++ docs/.vitepress/theme/{index.js => index.ts} | 0 docs/index.md | 2 ++ 3 files changed, 8 insertions(+) rename docs/.vitepress/theme/{index.js => index.ts} (100%) diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index 2192423..e6b9df3 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -2,4 +2,10 @@ --vp-c-brand-1: #cf8040; --vp-c-brand-2: #a06433; --vp-button-brand-bg: #cf8040; + --vp-home-hero-image-background-image: linear-gradient( + -45deg, + #d1841f60 30%, + #edcb3260 + ); + --vp-home-hero-image-filter: blur(30px); } \ No newline at end of file diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.ts similarity index 100% rename from docs/.vitepress/theme/index.js rename to docs/.vitepress/theme/index.ts diff --git a/docs/index.md b/docs/index.md index 39f7b99..c5d2b24 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,6 +6,8 @@ hero: text: 'A Utilities Library' tagline: A utilities library for front-end developers, lightweight and ts-friendly logo: /logo.svg + image: + src: /logo.svg actions: - theme: brand text: Get Started