From abe4b7e60cacd8206413c8934ba088dd3f0c8b19 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 28 Jul 2021 00:53:24 +0100 Subject: [PATCH] :writing_hand: Adds intro text, and makes show hide functionality --- src/components/HomePageHeader.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/components/HomePageHeader.js b/src/components/HomePageHeader.js index 95d75581..0ebf3bb1 100644 --- a/src/components/HomePageHeader.js +++ b/src/components/HomePageHeader.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useState } from 'react' import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import styles from '../styles/Header.module.scss'; @@ -11,16 +11,30 @@ import IconBannerDocs from '../../static/icons/banner_docs.svg'; export default function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); + const [showMore, setShowMore] = useState(false); return (

{siteConfig.title}

{siteConfig.tagline}

- - + +
+
+ Dashy is an easy-to-deploy, highly-customizable self-hosted dashboard. + It helps you keep your apps and services organized in a single place, + and makes launching your apps super quick, with customizable keyboard + shortcuts and instant search. + setShowMore(!showMore)}> + {!showMore ? 'Keep Reading...' : 'Show Less'} + + {showMore && ( +

See me now

+ ) + } +
); }