From 5a9fd83967c4bf425e77f5882c627501cb4dd70e Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Sep 2020 20:11:01 +0100 Subject: Use Uni Sans font for header --- public/fonts/unisans.otf | Bin 0 -> 113772 bytes src/App.tsx | 5 +++++ src/components/FormListing.tsx | 2 +- src/components/HeaderBar/index.tsx | 11 ++++++----- src/pages/LandingPage.tsx | 3 --- 5 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 public/fonts/unisans.otf diff --git a/public/fonts/unisans.otf b/public/fonts/unisans.otf new file mode 100644 index 0000000..facd333 Binary files /dev/null and b/public/fonts/unisans.otf differ diff --git a/src/App.tsx b/src/App.tsx index 3505dc1..d372e2f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,11 @@ import colors from "./colors"; const globalStyles = css` @import url('https://fonts.googleapis.com/css2?family=Hind:wght@700&display=swap'); +@font-face { + font-family: 'Uni Sans'; + src: url(fonts/unisans.otf) format('opentype'); +} + body { background-color: ${colors.notQuiteBlack}; color: white; diff --git a/src/components/FormListing.tsx b/src/components/FormListing.tsx index 66860da..99ba866 100644 --- a/src/components/FormListing.tsx +++ b/src/components/FormListing.tsx @@ -21,7 +21,7 @@ function FormListing(props: FormListingProps) { padding: 20px; margin-top: 20px; margin-bottom: 20px; - border-radius: 20px; + border-radius: 10px; transition: filter 100ms; &:hover { diff --git a/src/components/HeaderBar/index.tsx b/src/components/HeaderBar/index.tsx index 97dbb8c..f14a504 100644 --- a/src/components/HeaderBar/index.tsx +++ b/src/components/HeaderBar/index.tsx @@ -12,8 +12,8 @@ position: absolute; width: 100%; transition: height 1s; -@media (max-width: 660px) { - height: 140px; +@media (max-width: 770px) { + height: 180px; } `; @@ -26,18 +26,19 @@ function HeaderBar() {

diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx index 16d40c4..37785a6 100644 --- a/src/pages/LandingPage.tsx +++ b/src/pages/LandingPage.tsx @@ -3,7 +3,6 @@ import { jsx } from "@emotion/core"; import HeaderBar from "../components/HeaderBar"; import FormListing from "../components/FormListing"; -import OAuth2Button from "../components/OAuth2Button"; function LandingPage() { return
@@ -11,8 +10,6 @@ function LandingPage() {

Welcome to Python Discord Forms

- -

Available forms

-- cgit v1.2.3 From cc8d514984c4a5826917eac50bf5755b985d2783 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Sep 2020 20:52:16 +0100 Subject: Change form listing styles --- src/components/FormListing.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FormListing.tsx b/src/components/FormListing.tsx index 99ba866..055c624 100644 --- a/src/components/FormListing.tsx +++ b/src/components/FormListing.tsx @@ -17,15 +17,15 @@ interface FormListingProps { function FormListing(props: FormListingProps) { const listingStyle = css` background-color: ${props.open ? colors.success : colors.darkButNotBlack}; - width: 80%; + width: 60%; padding: 20px; margin-top: 20px; margin-bottom: 20px; border-radius: 10px; - transition: filter 100ms; + transition: transform 100ms; &:hover { - filter: brightness(110%); + transform: scale(1.01); } `; -- cgit v1.2.3 From 952fe01957b5f852c6febb5de820e4aa59e27a9b Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Sep 2020 20:52:27 +0100 Subject: Change opacity of header SVG --- src/components/HeaderBar/header_2.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HeaderBar/header_2.svg b/src/components/HeaderBar/header_2.svg index 692cc7c..e17b3e6 100644 --- a/src/components/HeaderBar/header_2.svg +++ b/src/components/HeaderBar/header_2.svg @@ -1,3 +1,3 @@ - + -- cgit v1.2.3 From 9fcb3f2e06dc36653e6ad338222b5e4ddfeb8d3b Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Sep 2020 20:52:48 +0100 Subject: Add backup fonts to header and scale header at smaller scale --- src/components/HeaderBar/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/HeaderBar/index.tsx b/src/components/HeaderBar/index.tsx index f14a504..0569e3d 100644 --- a/src/components/HeaderBar/index.tsx +++ b/src/components/HeaderBar/index.tsx @@ -15,6 +15,10 @@ transition: height 1s; @media (max-width: 770px) { height: 180px; } + +@media (max-width: 580px) { + height: 140px; +} `; function HeaderBar() { @@ -31,7 +35,7 @@ function HeaderBar() { margin-bottom: 200px; transition-property: font-size, margin-bottom; transition-duration: 1s; - font-family: "Uni Sans"; + font-family: "Uni Sans", "Hind", "Arial", sans-serif; @media (max-width: 770px) { margin-bottom: 100px; -- cgit v1.2.3 From 893bad80bca81f30edb4969ccda9a8db205f2855 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 28 Sep 2020 20:53:01 +0100 Subject: Change landing page structure to be centered --- src/pages/LandingPage.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx index 37785a6..4a6e157 100644 --- a/src/pages/LandingPage.tsx +++ b/src/pages/LandingPage.tsx @@ -1,5 +1,5 @@ /** @jsx jsx */ -import { jsx } from "@emotion/core"; +import { css, jsx } from "@emotion/core"; import HeaderBar from "../components/HeaderBar"; import FormListing from "../components/FormListing"; @@ -7,13 +7,17 @@ import FormListing from "../components/FormListing"; function LandingPage() { return
-
-

Welcome to Python Discord Forms

+
-

Available forms

- - - +
+

Available Forms

+ + +
} -- cgit v1.2.3