mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-10 06:10:17 -04:00
Added page component for auth
This commit is contained in:
parent
c51d04d63e
commit
15ed470a96
15
compass/components/Page.tsx
Normal file
15
compass/components/Page.tsx
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import React, { ReactNode } from 'react';
|
||||||
|
|
||||||
|
interface PageInterface {
|
||||||
|
children: ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
const Page: React.FC<PageInterface> = ({ children }) => {
|
||||||
|
return (
|
||||||
|
<div className="flex flex-col items-center justify-center min-h-screen bg-gray-100">
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Page;
|
|
@ -5,10 +5,11 @@ import type { NextPage } from 'next';
|
||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import Input from '@/components/Input'
|
import Input from '@/components/Input'
|
||||||
import InlineLink from '@/components/InlineLink';
|
import InlineLink from '@/components/InlineLink';
|
||||||
|
import Page from '@/components/Page';
|
||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home: NextPage = () => {
|
||||||
return (
|
return (
|
||||||
<div className="w-full max-w-xs">
|
<Page>
|
||||||
<form className="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
<form className="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<label className="block text-gray-700 text-sm font-bold mb-2" for="username">
|
<label className="block text-gray-700 text-sm font-bold mb-2" for="username">
|
||||||
|
@ -22,19 +23,20 @@ const Home: NextPage = () => {
|
||||||
</label>
|
</label>
|
||||||
<Input />
|
<Input />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex flex-col items-left space-y-2">
|
||||||
<Button>
|
|
||||||
Login
|
|
||||||
</Button>
|
|
||||||
<InlineLink>
|
<InlineLink>
|
||||||
Forgot password?
|
Forgot password?
|
||||||
</InlineLink>
|
</InlineLink>
|
||||||
|
<Button>
|
||||||
|
Login
|
||||||
|
</Button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<p className="text-center text-gray-500 text-xs">
|
<p className="text-center text-gray-500 text-xs">
|
||||||
©2024 Compass Center
|
© 2024 Compass Center
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</Page>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user