Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show v2 dialog (#295)
Browse files Browse the repository at this point in the history
hackerwins authored Dec 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 91cb4a4 commit b2df7da
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/components/application/InstantBoard.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
import React from 'react';

export function InstantBoard() {
const oldURL = window.location.hostname;
const newURL = oldURL.replace('-old', '');

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&nbsp;
<a href={newURL}>{newURL}</a>
&nbsp;to start coding together.
</p>
</div>
);
}
2 changes: 1 addition & 1 deletion src/pages/PageLayout.tsx
Original file line number Diff line number Diff line change
@@ -328,7 +328,7 @@ export default function PageLayout({ children }: PageLayoutProps) {
</div>
<div className={classes.editorContentArea}>{children}</div>
</div>
<div className={classes.instantArea}>
<div className={classes.instantArea} style={{ display: 'block' }}>
<InstantBoard />
</div>
<div className={classes.guideArea}>

0 comments on commit b2df7da

Please sign in to comment.