-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdc9581
commit ca1599d
Showing
2 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file was deleted.
Oops, something went wrong.