feat(app): add figma banner
This commit is contained in:
14
src/components/Banner/Banner.css
Normal file
14
src/components/Banner/Banner.css
Normal file
@@ -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;
|
||||||
|
}
|
||||||
26
src/components/Banner/Banner.tsx
Normal file
26
src/components/Banner/Banner.tsx
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { Medal } from "phosphor-react";
|
||||||
|
|
||||||
|
import "./Banner.css";
|
||||||
|
|
||||||
|
const Banner = () => {
|
||||||
|
return (
|
||||||
|
<div className="banner">
|
||||||
|
The 2022 Figma Community Awards are here!
|
||||||
|
<button
|
||||||
|
className="main-button"
|
||||||
|
onClick={
|
||||||
|
() => window.open(
|
||||||
|
"https://www.figma.com/community/file/903830135544202908",
|
||||||
|
"_blank",
|
||||||
|
"noopener noreferrer",
|
||||||
|
)
|
||||||
|
}>
|
||||||
|
<Medal size={24} weight="fill" />
|
||||||
|
Vote for Phosphor
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Banner;
|
||||||
@@ -16,6 +16,7 @@ import receipt from "../../assets/receipt.svg";
|
|||||||
import receiptSpec from "../../assets/receipt-spec.svg";
|
import receiptSpec from "../../assets/receipt-spec.svg";
|
||||||
import calculator from "../../assets/calculator.svg";
|
import calculator from "../../assets/calculator.svg";
|
||||||
import calculatorSpec from "../../assets/calculator-spec.svg";
|
import calculatorSpec from "../../assets/calculator-spec.svg";
|
||||||
|
import Banner from "../Banner/Banner";
|
||||||
import Links from "../Links/Links";
|
import Links from "../Links/Links";
|
||||||
import "./Header.css";
|
import "./Header.css";
|
||||||
|
|
||||||
@@ -35,6 +36,8 @@ const handleScrollToIcons = () =>
|
|||||||
|
|
||||||
const Header: React.FC<HeaderProps> = () => {
|
const Header: React.FC<HeaderProps> = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Banner />
|
||||||
<header>
|
<header>
|
||||||
<div className="header-contents">
|
<div className="header-contents">
|
||||||
<div className="illustrations-top">
|
<div className="illustrations-top">
|
||||||
@@ -90,6 +93,7 @@ const Header: React.FC<HeaderProps> = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user