From 13cc0d92a22c58c365c11662773dd6850f3061b8 Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Sun, 6 Mar 2022 14:27:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Put=20new=20brand=20in=20header?= =?UTF-8?q?=20and=20fix=20toasts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Header.module.css | 59 ++++++++++++++----- frontend/src/components/Header.tsx | 8 +-- frontend/src/components/Splash.module.css | 3 +- frontend/src/components/Toast.module.css | 23 ++++++++ frontend/src/components/Toast.tsx | 25 ++------ frontend/src/components/ToastProvider.tsx | 16 ++--- .../src/features/deposit/Deposit.module.css | 1 + 7 files changed, 86 insertions(+), 49 deletions(-) diff --git a/frontend/src/components/Header.module.css b/frontend/src/components/Header.module.css index 12f980c..104a3ed 100644 --- a/frontend/src/components/Header.module.css +++ b/frontend/src/components/Header.module.css @@ -1,25 +1,12 @@ .nav { display: flex; - height: 3rem; + height: 5rem; align-items: center; text-transform: uppercase; } -.logo { - position: relative; - top: 5px; - display: inline-block; - width: 24px; - height: 24px; - margin-right: 0.5rem; - margin-left: 1rem; -} .logoNav { - position: relative; - top: -4px; -} -.logoNav:hover.logoNav:hover { - border-color: transparent; + margin-left: 1.5rem; } .navItems { @@ -40,3 +27,45 @@ .active.active { color: white; } + +/* FIXME: Duplicates Splash styles */ +.brand { + padding-left: 1rem; + color: var(--brand); + font-family: Rocket Rinder, monospace; + font-size: 3rem; + font-style: italic; + letter-spacing: 2px; + line-height: 1; + text-shadow: 0 0 4px rgba(243, 33, 61, 0.8), 0 0 11px rgba(243, 33, 61, 0.8), 0 0 19px rgba(243, 33, 61, 0.8); +} + +.subtitle { + position: relative; + left: -8px; + animation: flicker 1.5s infinite alternate; + color: var(--interlace); + font-family: Rocket Clouds DEMO, serif; + font-size: 10px; + font-weight: bold; + line-height: 1; + transform: rotate(-6deg); +} + +@keyframes flicker { + 0%, + 18%, + 22%, + 25%, + 53%, + 57%, + 100% { + text-shadow: 0 0 4px rgba(121, 152, 238, 0.8), 0 0 11px rgba(121, 152, 238, 0.8), 0 0 19px rgba(121, 152, 238, 0.8); + } + + 20%, + 24%, + 55% { + text-shadow: none; + } +} diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index bcb3a54..85e3371 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -13,11 +13,9 @@ export const Header: React.FC = () => { return (