feat(app): add figma banner

This commit is contained in:
rektdeckard
2022-05-08 14:14:30 -06:00
parent c3cd3c1d80
commit bda9942fff
3 changed files with 96 additions and 52 deletions

View 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;
}

View 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;

View File

@@ -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,61 +36,64 @@ const handleScrollToIcons = () =>
const Header: React.FC<HeaderProps> = () => { const Header: React.FC<HeaderProps> = () => {
return ( return (
<header> <>
<div className="header-contents"> <Banner />
<div className="illustrations-top"> <header>
<img src={markerPurple} id="marker-purple" alt="" /> <div className="header-contents">
<img src={paperclips} id="paperclips" alt="" /> <div className="illustrations-top">
<img src={paperclipsThree} id="paperclips-three" alt="" /> <img src={markerPurple} id="marker-purple" alt="" />
<img className="tablet" src={tabletSpec} alt="" /> <img src={paperclips} id="paperclips" alt="" />
<img className="tablet inspectable xray" src={tablet} alt="" /> <img src={paperclipsThree} id="paperclips-three" alt="" />
<img className="billiard-ball" src={billiardBallSpec} alt="" /> <img className="tablet" src={tabletSpec} alt="" />
<img <img className="tablet inspectable xray" src={tablet} alt="" />
className="billiard-ball inspectable xray" <img className="billiard-ball" src={billiardBallSpec} alt="" />
src={billiardBall} <img
alt="" className="billiard-ball inspectable xray"
/> src={billiardBall}
alt=""
/>
<img className="warning" src={warningSpec} alt="" /> <img className="warning" src={warningSpec} alt="" />
<img className="warning inspectable xray" src={warning} alt="" /> <img className="warning inspectable xray" src={warning} alt="" />
</div> </div>
<div className="intro"> <div className="intro">
<h2> <h2>
Phosphor is a flexible icon family for interfaces, diagrams, Phosphor is a flexible icon family for interfaces, diagrams,
presentations   presentations  
<wbr /> <wbr />
whatever, really. whatever, really.
</h2> </h2>
<div className="button-container"> <div className="button-container">
<button className="main-button" onClick={handleGetStarted}> <button className="main-button" onClick={handleGetStarted}>
<ArrowCircleUpRight size={24} weight="fill" /> <ArrowCircleUpRight size={24} weight="fill" />
Get started Get started
</button> </button>
<button className="main-button" onClick={handleScrollToIcons}> <button className="main-button" onClick={handleScrollToIcons}>
<ArrowCircleDown size={24} weight="fill" /> <ArrowCircleDown size={24} weight="fill" />
Explore icons Explore icons
</button> </button>
</div>
<Links />
</div>
<div className="illustrations-bottom">
<img className="cutting-mat" src={cuttingMatSpec} alt="" />
<img
className="cutting-mat inspectable xray"
src={cuttingMat}
alt=""
/>
<img className="receipt" src={receiptSpec} alt="" />
<img className="receipt inspectable xray" src={receipt} alt="" />
<img className="calculator" src={calculatorSpec} alt="" />
<img
className="calculator inspectable xray"
src={calculator}
alt=""
/>
</div> </div>
<Links />
</div> </div>
<div className="illustrations-bottom"> </header>
<img className="cutting-mat" src={cuttingMatSpec} alt="" /> </>
<img
className="cutting-mat inspectable xray"
src={cuttingMat}
alt=""
/>
<img className="receipt" src={receiptSpec} alt="" />
<img className="receipt inspectable xray" src={receipt} alt="" />
<img className="calculator" src={calculatorSpec} alt="" />
<img
className="calculator inspectable xray"
src={calculator}
alt=""
/>
</div>
</div>
</header>
); );
}; };