From ca117e581a205ee5e7a6ace491a76a2507f79709 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 10 Jan 2025 01:07:20 +0200 Subject: [PATCH] website: updates --- website/docusaurus.config.ts | 2 +- .../src/components/HomepageFeatures/index.tsx | 21 ++++++---- website/src/css/custom.css | 40 +++++++++++++++++++ .../static/img/bulb-on-svgrepo-com-dark.svg | 11 +++++ website/static/img/bulb-on-svgrepo-com.svg | 11 +++++ 5 files changed, 76 insertions(+), 9 deletions(-) create mode 100644 website/static/img/bulb-on-svgrepo-com-dark.svg create mode 100644 website/static/img/bulb-on-svgrepo-com.svg diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 8fc5e6a..38d2dc6 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -266,7 +266,7 @@ const config: Config = { }, { type: 'dropdown', - label: 'Getting Started', + label: 'Documentation', to: 'docs/getting-started', position: 'left', items: [ diff --git a/website/src/components/HomepageFeatures/index.tsx b/website/src/components/HomepageFeatures/index.tsx index 70334d7..9cd4a59 100644 --- a/website/src/components/HomepageFeatures/index.tsx +++ b/website/src/components/HomepageFeatures/index.tsx @@ -78,14 +78,19 @@ function Feature({title, Svg, description}: FeatureItem) { export default function HomepageFeatures(): JSX.Element { return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} + <> +
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+
+

Getting Started!

-
- ); + +); } diff --git a/website/src/css/custom.css b/website/src/css/custom.css index db906a3..de6e1e5 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -93,6 +93,46 @@ h2[class*="title"] no-repeat; } +.getting-started-link::before { + content: ''; + width: 36px; + height: 36px; + display: inline-flex; + vertical-align: bottom; + margin-right: 0.5em; + background: url("/img/bulb-on-svgrepo-com.svg") no-repeat; +} + +.getting-started-link::after { + content: '\0000a0 '; + width: 36px; + height: 36px; + display: inline-flex; + vertical-align: bottom; + margin-left: 0.5em; + background: url("/img/bulb-on-svgrepo-com.svg") no-repeat; +} + +[data-theme='dark'] .getting-started-link::before { + content: ''; + width: 36px; + height: 36px; + display: inline-flex; + vertical-align: bottom; + margin-right: 0.5em; + background: url("/img/bulb-on-svgrepo-com-dark.svg") no-repeat; +} + +[data-theme='dark'] .getting-started-link::after { + content: '\0000a0 '; + width: 36px; + height: 36px; + display: inline-flex; + vertical-align: bottom; + margin-left: 0.5em; + background: url("/img/bulb-on-svgrepo-com-dark.svg") no-repeat; +} + /* --- */ .header-github-link:hover { diff --git a/website/static/img/bulb-on-svgrepo-com-dark.svg b/website/static/img/bulb-on-svgrepo-com-dark.svg new file mode 100644 index 0000000..f444842 --- /dev/null +++ b/website/static/img/bulb-on-svgrepo-com-dark.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/website/static/img/bulb-on-svgrepo-com.svg b/website/static/img/bulb-on-svgrepo-com.svg new file mode 100644 index 0000000..b5c2f40 --- /dev/null +++ b/website/static/img/bulb-on-svgrepo-com.svg @@ -0,0 +1,11 @@ + + + + + + + + + + +