-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91cb4a4
commit bdcd8e3
Showing
2 changed files
with
14 additions
and
3 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 |
---|---|---|
@@ -1,17 +1,28 @@ | ||
import React from 'react'; | ||
|
||
export function InstantBoard() { | ||
const oldURL = new URL(window.location.href); | ||
const newHostname = oldURL.hostname.replace('-old', ''); | ||
const newURL = `${oldURL.protocol}//${newHostname}${oldURL.port ? `:${oldURL.port}` : ''}`; | ||
|
||
return ( | ||
<div | ||
style={{ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
alignItems: 'left', | ||
height: '100%', | ||
overflow: 'hidden', | ||
padding: 16, | ||
flexDirection: 'column', | ||
}} | ||
> | ||
Comming Soon... | ||
<p>CodePair v2 is released! 🎉 You can now share your code with your friends and code together in real-time.</p> | ||
<p> | ||
Visit | ||
<a href={newURL}>{newURL}</a> | ||
to start coding together. | ||
</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