Skip to content

Commit

Permalink
Show v2 dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Dec 13, 2024
1 parent 91cb4a4 commit 769dbfd
Show file tree
Hide file tree
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
Expand Up @@ -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}>
Expand Down

0 comments on commit 769dbfd

Please sign in to comment.