From 01d7fdef889350a25767d5b1999f8698de7ba5a6 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Sep 2020 02:23:04 +0100 Subject: Initial commit --- src/components/FormListing.tsx | 51 +++++++++++++++++++++++++++++++++++ src/components/HeaderBar/header_1.svg | 3 +++ src/components/HeaderBar/header_2.svg | 3 +++ src/components/HeaderBar/index.tsx | 49 +++++++++++++++++++++++++++++++++ src/components/OAuth2Button.tsx | 42 +++++++++++++++++++++++++++++ 5 files changed, 148 insertions(+) create mode 100644 src/components/FormListing.tsx create mode 100644 src/components/HeaderBar/header_1.svg create mode 100644 src/components/HeaderBar/header_2.svg create mode 100644 src/components/HeaderBar/index.tsx create mode 100644 src/components/OAuth2Button.tsx (limited to 'src/components') diff --git a/src/components/FormListing.tsx b/src/components/FormListing.tsx new file mode 100644 index 0000000..9b7eb08 --- /dev/null +++ b/src/components/FormListing.tsx @@ -0,0 +1,51 @@ +/** @jsx jsx */ +import { css, jsx } from "@emotion/core"; + +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faArrowRight } from "@fortawesome/free-solid-svg-icons"; + +import colors from "../colors"; + +interface FormListingProps { + title: string, + description: string, + open: boolean +} + +function FormListing(props: FormListingProps) { + const listingStyle = css` + background-color: ${props.open ? colors.success : colors.darkButNotBlack}; + width: 80%; + padding: 20px; + margin-top: 20px; + margin-bottom: 20px; + border-radius: 20px; + transition: filter 100ms; + + &:hover { + filter: brightness(110%); + } + `; + + let closedTag; + + if (!props.open) { + closedTag = CLOSED; + }; + + return
+

{closedTag}{props.title}

+

{props.description}

+
+} + +export default FormListing; diff --git a/src/components/HeaderBar/header_1.svg b/src/components/HeaderBar/header_1.svg new file mode 100644 index 0000000..e7db64c --- /dev/null +++ b/src/components/HeaderBar/header_1.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/HeaderBar/header_2.svg b/src/components/HeaderBar/header_2.svg new file mode 100644 index 0000000..692cc7c --- /dev/null +++ b/src/components/HeaderBar/header_2.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/HeaderBar/index.tsx b/src/components/HeaderBar/index.tsx new file mode 100644 index 0000000..200221c --- /dev/null +++ b/src/components/HeaderBar/index.tsx @@ -0,0 +1,49 @@ +/** @jsx jsx */ +import { css, jsx } from "@emotion/core"; +import SVG from "react-inlinesvg"; + +import header1 from "./header_1.svg"; +import header2 from "./header_2.svg"; + +const headerImageStyles = css` +z-index: -1; +top: 0; +position: absolute; +width: 100%; +transition: height 1s; + +@media (max-width: 660px) { + height: 140px; +} +`; + +function HeaderBar() { + return
+
+ + +
+

+ Python Discord Forms +

+
+} + +export default HeaderBar; diff --git a/src/components/OAuth2Button.tsx b/src/components/OAuth2Button.tsx new file mode 100644 index 0000000..537496b --- /dev/null +++ b/src/components/OAuth2Button.tsx @@ -0,0 +1,42 @@ +/** @jsx jsx */ +import { css, jsx } from "@emotion/core"; + +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faDiscord } from "@fortawesome/free-brands-svg-icons"; + +import colors from "../colors"; + +const buttonStyling = css` +display: flex; +background-color: ${colors.blurple}; +border: none; +color: white; +font-family: "Hind", "Helvetica", "Arial", sans-serif; +border-radius: 5px; +padding-top: 10px; +padding-bottom: 10px; +padding-right: 20px; +padding-left: 20px; +outline: none; +transition: filter 100ms; +font-size: 1.2em; +align-items: center; + +span { + vertical-align: middle; +} + +&:hover { + filter: brightness(110%); + cursor: pointer; +} +`; + +function OAuth2Button() { + return ; +} + +export default OAuth2Button; -- cgit v1.2.3