-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from persistenceOne/websitev4
removed bannertop
- Loading branch information
Showing
2 changed files
with
38 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React, {useState} from "react"; | ||
import Alert from "react-bootstrap/Alert"; | ||
import rightarrow from "../../assets/images1/right-arrow.svg"; | ||
import close from "../../assets/images1/close_icon.png"; | ||
|
||
|
||
const BannerTop = () => { | ||
const [banner, setBanner] = useState(true); | ||
|
||
const closeBanner = () => { | ||
setBanner(false); | ||
} | ||
return ( | ||
<div className="container-fluid bannernav-section"> | ||
{banner ? | ||
<div className="container"> | ||
<Alert className="nav-banner alert-dismissible"> | ||
<p> | ||
<a href="https://t.me/Persistenceatconsensus" rel="noopener noreferrer" | ||
target="_blank"> | ||
<span>Persistence is at Consensus 2022 </span>  | ||
<img src={rightarrow} alt="arrow"/></a> | ||
</p> | ||
<img src={close} alt="close" className="close" onClick={closeBanner}/> | ||
</Alert> | ||
</div> | ||
: null} | ||
|
||
|
||
</div> | ||
|
||
); | ||
}; | ||
|
||
export default BannerTop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters