-
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 #223 from persistenceOne/terms_update
update top banner
- Loading branch information
Showing
5 changed files
with
56 additions
and
38 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,44 +1,44 @@ | ||
import React, {useState} from "react"; | ||
import React, { useState } from "react"; | ||
import Alert from "react-bootstrap/Alert"; | ||
import stkATOM from "../../assets/images1/stkAtom.svg"; | ||
import stkOsmo from "../../assets/images1/stkOsmo.svg"; | ||
import Icon from "../Icon"; | ||
|
||
const BannerTop = () => { | ||
const [banner, setBanner] = useState(true); | ||
const [banner, setBanner] = useState(true); | ||
|
||
const closeBanner = () => { | ||
setBanner(false); | ||
} | ||
const closeBanner = () => { | ||
setBanner(false); | ||
}; | ||
|
||
return ( | ||
banner ? | ||
<div className="container-fluid bannernav-section"> | ||
<div className="container"> | ||
<Alert className="nav-banner alert-dismissible d-flex align-items-center justify-content-center"> | ||
<img src={stkATOM} alt={"stkATOM"} className="pr-2 logo"/> | ||
<p> | ||
LSM support now live on pSTAKE. Liquid stake your already staked ATOM now. | ||
<a | ||
className="link" | ||
href={'https://cosmos.pstake.finance/'} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<b>here!</b> | ||
</a> | ||
</p> | ||
<div onClick={closeBanner} className="close"> | ||
<Icon | ||
viewClass="close fill-[#fff] absolute top-[13px] right-[20px] cursor-pointer" | ||
icon="close" | ||
/> | ||
</div> | ||
</Alert> | ||
</div> | ||
</div> | ||
: null | ||
|
||
); | ||
return banner ? ( | ||
<div className="container-fluid bannernav-section"> | ||
<div className="container"> | ||
<Alert className="nav-banner alert-dismissible d-flex align-items-center justify-content-center"> | ||
<img src={stkOsmo} alt={"stkOsmo"} className="pr-2 logo" /> | ||
<p> | ||
stkOsmo is LIVE on pSTAKE. Liquid Stake your OSMO with 75 | ||
validators | ||
<a | ||
className="link" | ||
href={ | ||
"https://app.pstake.finance/cosmos?token=OSMO&chain=osmosis" | ||
} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<b>now</b> | ||
</a> | ||
</p> | ||
<div onClick={closeBanner} className="close"> | ||
<Icon | ||
viewClass="close fill-[#fff] absolute top-[13px] right-[20px] cursor-pointer" | ||
icon="close" | ||
/> | ||
</div> | ||
</Alert> | ||
</div> | ||
</div> | ||
) : null; | ||
}; | ||
|
||
export default BannerTop; |