Skip to content

Commit

Permalink
Update docs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Apr 13, 2024
1 parent 1a0af06 commit b8c99ce
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
4 changes: 1 addition & 3 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ export default defineConfig({
description: "Redirects and 404 tracking for Kirby",
lang: "en-US",
base: "/retour-for-kirby/",
appearance: "force-dark",
appearance: false,
cleanUrls: true,
head: [["link", { rel: "og:image", href: "/retour-for-kirby/ogimage.png" }]],
themeConfig: {
logo: "/scribbles.svg",

nav: [
{ text: "Home", link: "/" },
{ text: "Docs", link: "/quickstart" },
Expand Down
22 changes: 16 additions & 6 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#9ec6f7,
#42548b
);
--vp-font-family-base: ui-rounded, "Hiragino Maru Gothic ProN", Quicksand,
Comfortaa, Manjari, "Arial Rounded MT", "Arial Rounded MT Bold", Calibri,
source-sans-pro, sans-serif;
--vp-font-family-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo,
Consolas, "DejaVu Sans Mono", monospace;

--vp-c-bg: #e8e9f1;
--vp-home-hero-name-color: #5d71b5;
--vp-home-hero-image-filter: blur(10rem);
}

.VPHomeFeatures {
margin-bottom: 4.5rem;
}

.VPHomeHero .image-bg {
opacity: 0.5;
}

.vp-doc img {
border-radius: 0.5rem;
box-shadow:
rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
rgba(0, 0, 0, 0.05) 0px 10px 10px -5px;
}

.vp-doc ul + .custom-block {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hero:
name: "Retour"
text: "for Kirby"
tagline: Redirects and 404 tracking in the Panel
image: /scribbles.svg
image: /visual.svg
actions:
- theme: brand
text: Download
Expand Down
Binary file modified docs/public/retour.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/public/scribbles.svg

This file was deleted.

1 change: 1 addition & 0 deletions docs/public/visual.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8c99ce

Please sign in to comment.