From a39da8703a288552359fa8c15114ace01ecbcfcc Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Wed, 11 Dec 2024 11:07:18 +0100 Subject: [PATCH] Docs: Cosmetic changes --- docs/astro/astro.config.mjs | 7 +- .../src/assets/slint-logo-simple-dark.svg | 17 +++++ .../src/assets/slint-logo-simple-light.svg | 17 +++++ docs/astro/src/components/Footer.astro | 22 ++++-- docs/astro/src/components/Header.astro | 2 +- docs/astro/src/components/ThemeSelect.astro | 75 +++++++++++++++++++ 6 files changed, 129 insertions(+), 11 deletions(-) create mode 100644 docs/astro/src/assets/slint-logo-simple-dark.svg create mode 100644 docs/astro/src/assets/slint-logo-simple-light.svg create mode 100644 docs/astro/src/components/ThemeSelect.astro diff --git a/docs/astro/astro.config.mjs b/docs/astro/astro.config.mjs index a2b4858fe05..38f7e403596 100644 --- a/docs/astro/astro.config.mjs +++ b/docs/astro/astro.config.mjs @@ -34,10 +34,11 @@ export default defineConfig({ }, integrations: [ starlight({ - title: "Docs", + title: "Slint Docs", logo: { - light: "./src/assets/slint-logo-simple-light.webp", - dark: "./src/assets/slint-logo-simple-dark.webp", + light: "./src/assets/slint-logo-simple-light.svg", + dark: "./src/assets/slint-logo-simple-dark.svg", + replacesTitle: true }, customCss: ["./src/styles/custom.css"], diff --git a/docs/astro/src/assets/slint-logo-simple-dark.svg b/docs/astro/src/assets/slint-logo-simple-dark.svg new file mode 100644 index 00000000000..44c335c706f --- /dev/null +++ b/docs/astro/src/assets/slint-logo-simple-dark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/docs/astro/src/assets/slint-logo-simple-light.svg b/docs/astro/src/assets/slint-logo-simple-light.svg new file mode 100644 index 00000000000..b9a466515e1 --- /dev/null +++ b/docs/astro/src/assets/slint-logo-simple-light.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/docs/astro/src/components/Footer.astro b/docs/astro/src/components/Footer.astro index d1f8038e6c3..571471b693d 100644 --- a/docs/astro/src/components/Footer.astro +++ b/docs/astro/src/components/Footer.astro @@ -3,15 +3,23 @@ // SPDX-License-Identifier: MIT import type { Props } from "@astrojs/starlight/props"; import Default from "@astrojs/starlight/components/Footer.astro"; +const year = new Date().getFullYear(); --- -
- - -
-

Copyright © SixtyFPS GmbH

-
-
+ +
+

© {year} SixtyFPS GmbH

+ diff --git a/docs/astro/src/components/Header.astro b/docs/astro/src/components/Header.astro index 2546b5fd06c..8ab0712f6c4 100644 --- a/docs/astro/src/components/Header.astro +++ b/docs/astro/src/components/Header.astro @@ -7,7 +7,7 @@ import LanguageSelect from "@astrojs/starlight/components/LanguageSelect.astro"; import Search from "@astrojs/starlight/components/Search.astro"; import SiteTitle from "@astrojs/starlight/components/SiteTitle.astro"; import SocialIcons from "@astrojs/starlight/components/SocialIcons.astro"; -import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro"; +import ThemeSelect from "./ThemeSelect.astro"; import VersionSelector from "./VersionSelector.astro"; --- diff --git a/docs/astro/src/components/ThemeSelect.astro b/docs/astro/src/components/ThemeSelect.astro new file mode 100644 index 00000000000..ed3ff2585d6 --- /dev/null +++ b/docs/astro/src/components/ThemeSelect.astro @@ -0,0 +1,75 @@ +--- +// Copyright © SixtyFPS GmbH +// SPDX-License-Identifier: MIT +import type { Props } from '@astrojs/starlight/props'; +import { Icon } from '@astrojs/starlight/components'; +--- + + + + + + + + +