mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-01-26 01:21:04 +00:00
Add "New dashboard" Banner (#315)
* Add new dashboard Banner.tsx * display on localdev and add todo note --------- Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import {SecureLoading} from "./components/Loading";
|
||||
import DNS from "./views/DNS";
|
||||
import Activity from "./views/Activity";
|
||||
import Settings from "./views/Settings";
|
||||
import {isLocalDev, isNetBirdHosted} from "./utils/common";
|
||||
|
||||
|
||||
const {Header, Content} = Layout;
|
||||
@@ -75,7 +76,7 @@ function App() {
|
||||
{!show && <SecureLoading padding="3em" width={50} height={50}/>}
|
||||
{show &&
|
||||
<Layout>
|
||||
<Banner/>
|
||||
{(isNetBirdHosted() || isLocalDev()) && <Banner/>}
|
||||
<Header className="header" style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
|
||||
@@ -15,18 +15,20 @@ const Banner = () => {
|
||||
localStorage.setItem(banner_closed_key,'true');
|
||||
};
|
||||
|
||||
const announcement = "NetBird is now available on the App Store."
|
||||
// todo: when updating this announcement, ensure to
|
||||
// remove the condition on App.tsx that limits the current banner to cloud and local dev
|
||||
const announcement = "Discover the new NetBird Dashboard with a brand new look and feel."
|
||||
|
||||
const announcement_md5 = Md5.hashStr(announcement)
|
||||
|
||||
const linkLearnMore = () => {
|
||||
return (
|
||||
<a
|
||||
href="https://apps.apple.com/us/app/netbird-p2p-vpn/id6469329339"
|
||||
href="https://preview.netbird.io/peers"
|
||||
className="font-bold underline"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
><Text strong style={{color: "#ffffff"}}>Download <span aria-hidden="true">→</span></Text></a>
|
||||
><Text strong style={{color: "#ffffff"}}>Try it out now <span aria-hidden="true">→</span></Text></a>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user