Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 148 additions & 12 deletions app/oauth/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,154 @@ const OauthPage = () => {
}, []);

return (
<main
style={{
display: "grid",
minHeight: "100dvh",
placeItems: "center",
fontFamily: "system-ui, sans-serif",
padding: 24,
textAlign: "center",
}}
>
Authentication complete. You can close this window.
</main>
<>
<style>{`
@keyframes cursorBlink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
`}</style>
<main
style={{
display: "flex",
minHeight: "100dvh",
alignItems: "center",
justifyContent: "center",
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif',
padding: 24,
background: "#ffffff",
}}
>
<div style={{ textAlign: "center", animation: "fadeIn 0.6s ease-out" }}>
<div
style={{
position: "relative",
display: "inline-block",
marginBottom: 32,
}}
>
<img
src="https://avatars.githubusercontent.com/u/138642184"
alt="RoamJS"
width={80}
height={80}
draggable={false}
style={{
width: 80,
height: 80,
borderRadius: 16,
userSelect: "none",
}}
/>
<svg
viewBox="0 0 36 36"
style={{
position: "absolute",
top: -8,
right: -12,
width: 32,
height: 32,
}}
>
<circle cx="18" cy="18" r="18" fill="#222222" />
<path
d="M10 18l5 5 11-11"
stroke="white"
strokeWidth="4"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</div>
<h1
style={{
fontSize: 24,
fontWeight: 600,
color: "#37352f",
letterSpacing: "-0.03em",
margin: 0,
marginBlockEnd: 12,
}}
>
Google Account Connected to Roam Research
</h1>
<p
style={{
fontSize: 16,
color: "#787774",
lineHeight: 1.5,
margin: 0,
}}
>
You can now close this window and return to{" "}
<span style={{ display: "inline-block", position: "relative" }}>
<span
style={{
display: "inline-block",
background: "#f7f6f3",
border: "1px solid #e3e2e0",
borderRadius: 4,
padding: "2px 8px",
fontFamily:
'"SFMono-Regular", Menlo, Consolas, monospace',
fontSize: 14,
color: "#37352f",
}}
>
Roam
<span
style={{
display: "inline-block",
width: 3,
height: 17,
background: "#222222",
marginLeft: 2,
verticalAlign: "text-bottom",
animation: "cursorBlink 1.2s step-end infinite",
}}
/>
</span>
<span
style={{
position: "absolute",
left: 0,
right: 0,
bottom: 0,
height: 6,
}}
>
<svg
viewBox="0 0 60 8"
preserveAspectRatio="none"
style={{ width: "100%", height: "100%" }}
>
<path
d="M2 2.5 Q15 1.5, 30 2.8 T58 2"
stroke="#222222"
strokeWidth="1.8"
fill="none"
strokeLinecap="round"
/>
<path
d="M3 5.5 Q20 4.2, 35 5.8 T57 5"
stroke="#222222"
strokeWidth="1.5"
fill="none"
strokeLinecap="round"
/>
</svg>
</span>
</span>
</p>
</div>
</main>
</>
);
};

Expand Down