Skip to content

Commit

Permalink
New : 로그인 페이지 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jobkaeHenry committed Nov 4, 2023
1 parent fdc9581 commit ca1599d
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 12 deletions.
65 changes: 65 additions & 0 deletions client/src/app/auth/login/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { Avatar, Box, Grid, Paper, Typography } from "@mui/material";
import SigninForm from "@/components/user/signin/SigninForm";
import Link from "next/link";
import { SIGNUP, FORGOTPASSWORD } from "@/const/clientPath";
import { Metadata } from "next";
import { nameOfApp } from "@/const/brand";
import { LockOutlined as LockOutlinedIcon } from "@mui/icons-material";

export const metadata: Metadata = {
title: `${nameOfApp} | 로그인`,
};

const LoginPage = () => {
return (
<Grid container component="main" sx={{ height: "100vh" }}>
<Grid
item
xs={false}
sm={4}
md={7}
sx={{
backgroundImage: "url(https://source.unsplash.com/random?wallpapers)",
backgroundRepeat: "no-repeat",
backgroundSize: "cover",
backgroundPosition: "center",
}}
/>
<Grid item xs={12} sm={8} md={5} component={Paper} elevation={6} square>
<Box
sx={{
my: 8,
mx: 4,
display: "flex",
flexDirection: "column",
alignItems: "center",
}}
>
{/* heading */}
<Avatar sx={{ m: 1, bgcolor: "secondary.main" }}>
<LockOutlinedIcon />
</Avatar>
<Typography component="h1" variant="h5">
Sign in
</Typography>
{/* form */}
<SigninForm />
<Grid container>
<Grid item xs>
<Link href={FORGOTPASSWORD}>
<Typography variant="body2">Forgot password?</Typography>
</Link>
</Grid>
<Grid item>
<Typography variant="body2">
계정이 없으신가요? <Link href={SIGNUP}>회원가입</Link>
</Typography>
</Grid>
</Grid>
</Box>
</Grid>
</Grid>
);
};

export default LoginPage;
12 changes: 0 additions & 12 deletions client/src/app/hi/page.tsx

This file was deleted.

0 comments on commit ca1599d

Please sign in to comment.