Skip to content

Commit

Permalink
Merge pull request #27 from fluencelabs/stake_notification
Browse files Browse the repository at this point in the history
chore: add staking bar
  • Loading branch information
crystalbit authored Aug 2, 2024
2 parents 2e086ac + cea4ef2 commit 34972ce
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 16 deletions.
36 changes: 21 additions & 15 deletions web/src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,28 @@ const Header = ({ button = false }) => {
};
}, []);
return (
<header className={styles.header}>
<div className={styles["header__flex-container"]}>
<Link to="/fluence">
<img
src={logo}
alt="fluence logotype"
className={styles.header__logo}
/>
</Link>

<MainNavigation width={currentWidthWindow} />
<>
<div className={styles["header__top_notification"]}>
Join the FLT Stake Race • 1 million FLT in prizes
<a href="https://race.fluence.network/" target="_blank" className={styles["header__top_link"]}>Learn more</a>
</div>
{button && currentWidthWindow > 768 && (
<Button type="default" text="Start building" callback={handleClick} />
)}
</header>
<header className={styles.header}>
<div className={styles["header__flex-container"]}>
<Link to="/fluence">
<img
src={logo}
alt="fluence logotype"
className={styles.header__logo}
/>
</Link>

<MainNavigation width={currentWidthWindow} />
</div>
{button && currentWidthWindow > 768 && (
<Button type="default" text="Start building" callback={handleClick} />
)}
</header>
</>
);
};

Expand Down
24 changes: 24 additions & 0 deletions web/src/components/Header/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,30 @@
align-items: center;
}

.header__top_notification {
position: relative;
top: 0px;
width: 100vw;
text-align: center;
padding-top: 0;
margin-top: -30px;
padding-top: 24px;
padding-bottom: 20px;
margin-bottom: 20px;
letter-spacing: .1px;
font-size: 19px;
font-weight: 700;
line-height: 131.25%;
background-color: #cfffc4;
z-index: 9999999;
font-family: Hauora, sans-serif;
}

.header__top_link {
margin-left: 16px;
color: #000000;
}

.header__logo {
width: 118px;
height: 32px;
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/begin-page/begin-page.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.background {
padding-top: 54px;
padding-top: 30px;

background: rgba(177, 169, 153, 1);
background-image: url("../../images/Rectangle 76.21553159.webp");
Expand Down

0 comments on commit 34972ce

Please sign in to comment.