Skip to content

Commit d8a55dd

Browse files
committed
replace opub login page wtih dataspace style page
1 parent 1cadad2 commit d8a55dd

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

app/[locale]/login/page.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use client';
22

3-
import { useEffect } from 'react';
4-
import Link from 'next/link';
5-
import { useRouter } from 'next/navigation';
63
import { signIn, useSession } from 'next-auth/react';
7-
import { Icon, Spinner, Text } from 'opub-ui';
4+
import { useRouter } from 'next/navigation';
5+
import { Spinner, Text } from 'opub-ui';
6+
import { useEffect } from 'react';
87

9-
import { Icons } from '@/components/icons';
8+
import MainFooter from '../dashboard/components/main-footer';
9+
import { MainNav } from '../dashboard/components/main-nav';
1010

1111
const SignIn = () => {
1212
const router = useRouter();
@@ -33,19 +33,17 @@ export default SignIn;
3333

3434
const LogginInPage = () => {
3535
return (
36-
<div className="h-screen w-screen overflow-hidden bg-surfaceDefault">
37-
<Link href="/">
38-
<div className="flex items-center gap-2 pl-4 pt-[18px]">
39-
<Icon source={Icons.logo} size={24} color="success" />
40-
<Text variant="headingLg" as="h1">
41-
OPub
42-
</Text>
43-
</div>
44-
</Link>
45-
<div className="flex h-full w-full flex-col items-center justify-center gap-1">
36+
<div className="flex h-screen w-screen flex-col overflow-hidden bg-surfaceDefault">
37+
<header className="sticky top-0 z-1 bg-primaryBlue pointer-events-none select-none">
38+
<MainNav />
39+
</header>
40+
<div className="flex flex-1 w-full flex-col items-center justify-center gap-1">
4641
<Spinner />
4742
<Text variant="headingLg">Logging In</Text>
4843
</div>
44+
<footer className="pointer-events-none select-none">
45+
<MainFooter />
46+
</footer>
4947
</div>
5048
);
5149
};

0 commit comments

Comments
 (0)