This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
adds blocked page #95
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import type { NextPage } from "next"; | ||
import { Button, Navbar, Box, Text } from "@obolnetwork/obol-ui"; | ||
import Head from "next/head"; | ||
|
||
const Blocked: NextPage = () => { | ||
return ( | ||
<> | ||
<Head> | ||
<style>{` | ||
html, body, #__next { | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
overflow: hidden; /* Prevents scrolling on the block page */ | ||
} | ||
.navbar-wrapper a { | ||
height: 48px; | ||
} | ||
.navbar-wrapper button { | ||
display: none; | ||
} | ||
`}</style> | ||
<title>Obol - Building Distributed Validators for Ethereum</title> | ||
<meta | ||
name="description" | ||
content="The Obol Network is an ecosystem for trust minimized staking that allows people to create, test, run & co-ordinate distributed validators" | ||
/> | ||
<meta name="title" content="Obol" /> | ||
<link rel="icon" href="/favicon.png" /> | ||
<meta property="og:url" content="https://obol.tech" /> | ||
<meta property="og:type" content="website" /> | ||
<meta | ||
property="og:image" | ||
content="https://obol.tech/assets/og-image-v2.png" | ||
/> | ||
<meta property="og:image:width" content="1200" /> | ||
<meta property="og:image:height" content="630" /> | ||
</Head> | ||
<div className="navbar-wrapper"> | ||
<Navbar /> | ||
</div> | ||
<Box | ||
css={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
height: "90%", | ||
}} | ||
> | ||
<Box | ||
css={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
height: "78%", | ||
width: "77%", | ||
background: "url(/backgrounds/mundi.svg) no-repeat center center", // replace with your SVG path | ||
backgroundSize: "cover", | ||
"@md": { | ||
width: "100%", | ||
}, | ||
}} | ||
> | ||
<Text | ||
as="h1" | ||
css={{ | ||
color: "$textLight", | ||
fontSize: "32px", | ||
marginBottom: "16px", | ||
px: "30%", | ||
"@sm": { | ||
px: "10%", | ||
}, | ||
textAlign: "center", | ||
lineHeight: "48px", | ||
}} | ||
> | ||
This link is not currently available in certain geolocations | ||
</Text> | ||
<Text | ||
css={{ | ||
fontSize: "18px", | ||
color: "$body", | ||
marginBottom: "32px", | ||
"@sm": { | ||
px: "10%", | ||
textAlign: "center", | ||
}, | ||
}} | ||
> | ||
You can still learn more about Obol by visiting our website | ||
</Text> | ||
<Button as="a" href="https://obol.tech" css={{ alignSelf: "center" }}> | ||
Obol Website | ||
</Button> | ||
</Box> | ||
</Box> | ||
</> | ||
); | ||
}; | ||
|
||
export default Blocked; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this and why do we need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @OisinKyne I just saw that comment, and for some reason didn’t get that notification, this is actually the opposite, I’m not adding the termly script when it goes to the blocked page. that means, that the page it will not raise the cookies banner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay fair enough. If this was dvl I'd maybe push for not using a third party tracker, but for site its fine, its just a landing page for people that bounce off.