-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move content of main page to /dev and root/main page is a redir…
…ection page to the widgets page of docs.bosonprotocol.io
- Loading branch information
1 parent
bf4cf7c
commit d648c06
Showing
8 changed files
with
132 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,53 @@ | ||
import React, { useEffect } from "react"; | ||
import styled from "styled-components"; | ||
|
||
import { ReactComponent as BosonLogo } from "../../logo.svg"; | ||
export const redirectPath = "/"; | ||
|
||
const widgetsPage = "https://docs.bosonprotocol.io/docs/category/widgets"; | ||
|
||
const Redirecting = styled.div` | ||
width: 104px; | ||
@keyframes ellipsis { | ||
to { | ||
width: 1.25em; | ||
} | ||
} | ||
&:after { | ||
overflow: hidden; | ||
display: inline-block; | ||
vertical-align: bottom; | ||
animation: ellipsis steps(4, end) 900ms infinite; | ||
content: "..."; | ||
width: 0px; | ||
} | ||
`; | ||
|
||
export const RedirectToDocs: React.FC = () => { | ||
useEffect(() => { | ||
window.location.href = widgetsPage; | ||
}, []); | ||
return ( | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
flexDirection: "column", | ||
height: "100%" | ||
}} | ||
> | ||
<BosonLogo width="300px" style={{ maxWidth: "100%" }} /> | ||
<Redirecting>Redirecting</Redirecting> | ||
<p | ||
style={{ | ||
wordBreak: "break-word", | ||
textAlign: "center" | ||
}} | ||
> | ||
If you don't get automatically redirected, click on{" "} | ||
<a href={widgetsPage}>{widgetsPage}</a> | ||
</p> | ||
</div> | ||
); | ||
}; |
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 @@ | ||
export const indexPath = "/dev"; |
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,17 @@ | ||
import { createGlobalStyle } from "styled-components"; | ||
|
||
export const GlobalStyle = createGlobalStyle` | ||
html, body, #root { | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-rendering: optimizeLegibility; | ||
font-family: "Plus Jakarta Sans", sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
font-style: normal; | ||
height: 100vh; | ||
} | ||
`; |
Oops, something went wrong.