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 --- src/App.tsx | 5 +++++ src/components/FormListing.tsx | 2 +- src/components/HeaderBar/index.tsx | 11 ++++++----- src/pages/LandingPage.tsx | 3 --- 4 files changed, 12 insertions(+), 9 deletions(-) (limited to 'src') 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