diff options
| author | 2020-09-29 01:00:04 +0100 | |
|---|---|---|
| committer | 2020-09-29 01:00:04 +0100 | |
| commit | f710b7d187b6c33908f4b3b713f5bcddbf19f9b0 (patch) | |
| tree | 80a67ccc081409353f25a9892c14e29eb92676b1 /src | |
| parent | Add react router and react transition group libraries (diff) | |
Update styling and scaling and add links to FormListing
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/FormListing.tsx | 13 | 
1 files changed, 9 insertions, 4 deletions
| diff --git a/src/components/FormListing.tsx b/src/components/FormListing.tsx index 58f21f8..09b3134 100644 --- a/src/components/FormListing.tsx +++ b/src/components/FormListing.tsx @@ -1,5 +1,6 @@  /** @jsx jsx */  import { css, jsx } from "@emotion/core"; +import { Link } from "react-router-dom";  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';  import { faArrowRight } from "@fortawesome/free-solid-svg-icons"; @@ -24,6 +25,8 @@ function FormListing(props: FormListingProps) {      border-radius: 10px;      transition-property: transform, width;      transition-duration: 500ms; +    text-decoration: none; +    color: inherit;      @media (max-width: 575px) {        width: 80%; @@ -40,10 +43,12 @@ function FormListing(props: FormListingProps) {      closedTag = <Tag text="CLOSED" color={colors.error}/>    }; -  return <div css={listingStyle}> -    <h3 css={{fontSize: "1.5em", marginBottom: "0"}}>{closedTag}{props.title} <FontAwesomeIcon icon={faArrowRight} css={{fontSize: "0.75em", paddingBottom: "1px"}}/></h3> -    <p css={{marginTop: "5px"}}>{props.description}</p> -  </div> +  return <Link to="/form" css={listingStyle}> +    <div> +      <h3 css={{fontSize: "1.5em", marginBottom: "0"}}>{closedTag}{props.title} <FontAwesomeIcon icon={faArrowRight} css={{fontSize: "0.75em", paddingBottom: "1px"}}/></h3> +      <p css={{marginTop: "5px"}}>{props.description}</p> +    </div> +  </Link>  }  export default FormListing; | 
