aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-09-29 01:00:04 +0100
committerGravatar Joe Banks <[email protected]>2020-09-29 01:00:04 +0100
commitf710b7d187b6c33908f4b3b713f5bcddbf19f9b0 (patch)
tree80a67ccc081409353f25a9892c14e29eb92676b1
parentAdd react router and react transition group libraries (diff)
Update styling and scaling and add links to FormListing
-rw-r--r--src/components/FormListing.tsx13
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;