aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/FormListing.tsx13
-rw-r--r--src/components/HeaderBar/index.tsx8
2 files changed, 15 insertions, 6 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;
diff --git a/src/components/HeaderBar/index.tsx b/src/components/HeaderBar/index.tsx
index 94dd900..6289dfc 100644
--- a/src/components/HeaderBar/index.tsx
+++ b/src/components/HeaderBar/index.tsx
@@ -46,11 +46,15 @@ function HeaderBar() {
font-size: 2em;
}
- @media (max-width: 400px) {
- font-size: 1.5em;
+ @media (max-width: 450px) {
+ font-size: 1.70em;
text-align: center;
margin-left: 0;
}
+
+ @media (max-width: 400px) {
+ font-size: 1.3em;
+ }
`}>
Python Discord Forms
</h1>