Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | import { useSystemInfo } from "../utils/systemInfo";
export default function ConsentScreen() {
const { data: systemInfo } = useSystemInfo();
const handleLogin = () => {
window.location.href =
systemInfo?.oauthLogin ?? "/oauth2/authorization/google";
};
return (
<div
style={{
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
background: "#0ca6e9",
}}
>
<div
style={{
background: "#fff",
borderRadius: 12,
borderTop: "1.5px solid #1E293B",
borderLeft: "1.5px solid #1E293B",
borderRight: "4px solid #1E293B",
borderBottom: "4px solid #1E293B",
boxShadow: "0 4px 24px rgba(0,0,0,0.08)",
padding: "40px 48px",
width: 360,
textAlign: "center",
}}
>
<div
style={{
display: "inline-block",
fontFamily: "Helvetica, Arial, sans-serif",
fontWeight: 800,
fontSize: 30,
color: "#1E293B",
background: "#d9f9ff",
padding: "10px 14px",
borderRadius: 8,
borderTop: "1.5px solid #1E293B",
borderLeft: "1.5px solid #1E293B",
borderRight: "4px solid #1E293B",
borderBottom: "4px solid #1E293B",
}}
>
Scaffold
</div>
<div
style={{
fontSize: 14,
color: "#64748B",
marginBottom: 28,
marginTop: 20,
}}
>
Sign in to continue.
</div>
<button
onClick={handleLogin}
style={{
width: "100%",
padding: "10px 0",
fontSize: 14,
fontWeight: 600,
background: "#1E293B",
color: "#fff",
border: "none",
borderRadius: 8,
cursor: "pointer",
}}
>
Log In with Google
</button>
</div>
</div>
);
}
|