import React, { useState } from 'react' import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import styles from '../styles/Header.module.scss'; import Button from '../components/Button'; import CarbonAd from '../components/CarbonAd'; // Icons import IconBannerDemo from '../../static/icons/banner_demo.svg'; import IconBannerGetStarted from '../../static/icons/banner_get-started.svg'; import IconBannerSource from '../../static/icons/banner_source.svg'; import IconBannerDocs from '../../static/icons/banner_docs.svg'; import IconDownArrow from '../../static/icons/interface_down.svg'; const scrollToFeatures = () => { document.querySelector('#go-down').scrollIntoView({ behavior: 'smooth' }); }; export default function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); const [showMore, setShowMore] = useState(false); return (

{siteConfig.title}

{siteConfig.tagline}

Dashy is an open source, highly customizable, easy to use, privacy-respecting dashboard app. {showMore && (

It's packed full of useful features, to help you build your perfect dashboard. Including status checks, keyboard shortcuts, dynamic widgets, auto-fetched favicon icons and font-awesome support, built-in authentication, tons of themes, an interactive config editor, many display layouts plus loads more.
All the code is free and open source, and everything is thoroughly documented, you can get support with any questions on GitHub.

)} setShowMore(!showMore)}> {!showMore ? 'Keep Reading...' : 'Show Less'}
{(!showMore) && Feature List }
); }