doc: ui tweaks
This commit is contained in:
parent
c914e4e0dd
commit
6e9604a6cc
|
@ -37,6 +37,9 @@ export default async function flecksDocusaurus() {
|
|||
themeConfig:
|
||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||
({
|
||||
colorMode: {
|
||||
defaultMode: 'dark',
|
||||
},
|
||||
navbar: {
|
||||
title: 'flecks',
|
||||
logo: {
|
||||
|
|
167
website/pages/flecks/index.jsx
Normal file
167
website/pages/flecks/index.jsx
Normal file
File diff suppressed because one or more lines are too long
5
website/pages/flecks/index.module.css
Normal file
5
website/pages/flecks/index.module.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
.flecksHero {
|
||||
html[data-theme="light"] & {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
|
@ -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's go!
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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
162
website/static/flecks.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 104 KiB |
Loading…
Reference in New Issue
Block a user