doc: ui tweaks

This commit is contained in:
cha0s 2024-01-30 07:58:26 -06:00
parent c914e4e0dd
commit 6e9604a6cc
6 changed files with 345 additions and 3 deletions

View File

@ -37,6 +37,9 @@ export default async function flecksDocusaurus() {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
},
navbar: {
title: 'flecks',
logo: {

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,5 @@
.flecksHero {
html[data-theme="light"] & {
filter: invert(1);
}
}

View File

@ -1,9 +1,10 @@
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Heading from '@theme/Heading';
import Layout from '@theme/Layout';
import Heading from '@theme/Heading';
import Flecks from './flecks';
import styles from './index.module.css';
function HomepageHeader() {
@ -11,7 +12,7 @@ function HomepageHeader() {
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<img src="flecks.png" width="128px" />
<Flecks />
<Heading as="h1" className="hero__title">
Craft modular apps with ease
</Heading>
@ -21,7 +22,7 @@ function HomepageHeader() {
className="button button--secondary button--lg"
to="/docs/"
>
Get started
Let&apos;s go!
</Link>
</div>
</div>

View File

@ -21,3 +21,7 @@
align-items: center;
justify-content: center;
}
:global(html[data-theme="light"] .navbar__logo) {
filter: invert(1);
}

162
website/static/flecks.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 104 KiB