From 447cdac3042bd84b6ab70d9799de0cd64c330a32 Mon Sep 17 00:00:00 2001 From: Daniel Peinhopf <84123899+sevensolutions@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:02:52 +0200 Subject: [PATCH] Add dark logo for website. --- artwork/logo-dark.svg | 70 ++++++++++++++++++++++++++++++ website/docusaurus.config.ts | 1 + website/src/pages/index.module.css | 4 ++ website/src/pages/index.tsx | 2 +- website/static/img/logo-dark.svg | 70 ++++++++++++++++++++++++++++++ 5 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 artwork/logo-dark.svg create mode 100644 website/static/img/logo-dark.svg diff --git a/artwork/logo-dark.svg b/artwork/logo-dark.svg new file mode 100644 index 0000000..bdb7512 --- /dev/null +++ b/artwork/logo-dark.svg @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index fd91001..6b0ad60 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -57,6 +57,7 @@ const config: Config = { logo: { alt: 'Nomad IIS Logo', src: 'img/logo.svg', + srcDark: 'img/logo-dark.svg' }, items: [ { diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css index 6f8ea50..8f4d7bb 100644 --- a/website/src/pages/index.module.css +++ b/website/src/pages/index.module.css @@ -14,4 +14,8 @@ .logo { width: 50em; + content:url("~/img/logo.svg") } +[data-theme='dark'] .logo { + content:url("~/img/logo-dark.svg") +} \ No newline at end of file diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 5d886a7..2d40586 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -35,7 +35,7 @@ export default function Home(): JSX.Element { description="A TaskDriver plugin for HashiCorp Nomad to run IIS workloads.">
- +

{siteConfig.tagline}

diff --git a/website/static/img/logo-dark.svg b/website/static/img/logo-dark.svg new file mode 100644 index 0000000..bdb7512 --- /dev/null +++ b/website/static/img/logo-dark.svg @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +