From bda9942fffffafa772a1cd7b2333b9918e52bd21 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Sun, 8 May 2022 14:14:30 -0600 Subject: [PATCH] feat(app): add figma banner --- src/components/Banner/Banner.css | 14 ++++ src/components/Banner/Banner.tsx | 26 ++++++++ src/components/Header/Header.tsx | 108 ++++++++++++++++--------------- 3 files changed, 96 insertions(+), 52 deletions(-) create mode 100644 src/components/Banner/Banner.css create mode 100644 src/components/Banner/Banner.tsx diff --git a/src/components/Banner/Banner.css b/src/components/Banner/Banner.css new file mode 100644 index 0000000..4e91d19 --- /dev/null +++ b/src/components/Banner/Banner.css @@ -0,0 +1,14 @@ +.banner { + display: grid; + place-items: center; + padding: 24px; + color: white; + text-align: center; + background-color: #35313d; +} + +.banner .main-button { + height: unset; + min-height: 64px; + margin: 8px 0 0; +} diff --git a/src/components/Banner/Banner.tsx b/src/components/Banner/Banner.tsx new file mode 100644 index 0000000..1fb6507 --- /dev/null +++ b/src/components/Banner/Banner.tsx @@ -0,0 +1,26 @@ +import React from "react"; +import { Medal } from "phosphor-react"; + +import "./Banner.css"; + +const Banner = () => { + return ( +
+ The 2022 Figma Community Awards are here! + +
+ ); +}; + +export default Banner; diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index fd2cce6..d8fc8aa 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -16,6 +16,7 @@ import receipt from "../../assets/receipt.svg"; import receiptSpec from "../../assets/receipt-spec.svg"; import calculator from "../../assets/calculator.svg"; import calculatorSpec from "../../assets/calculator-spec.svg"; +import Banner from "../Banner/Banner"; import Links from "../Links/Links"; import "./Header.css"; @@ -35,61 +36,64 @@ const handleScrollToIcons = () => const Header: React.FC = () => { return ( -
-
-
- - - - - - - + <> + +
+
+
+ + + + + + + - - -
-
-

- Phosphor is a flexible icon family for interfaces, diagrams, - presentations —  - - whatever, really. -

-
- - + + +
+
+

+ Phosphor is a flexible icon family for interfaces, diagrams, + presentations —  + + whatever, really. +

+
+ + +
+ +
+
+ + + + + +
-
-
- - - - - - -
-
-
+
+ ); };