-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Kernel360/2-feature-로그인-페이지
2 feature 로그인 페이지 폼 구현 및 멀티-root layout 구조 변경
- Loading branch information
Showing
22 changed files
with
4,755 additions
and
67 deletions.
There are no files selected for viewing
File renamed without changes.
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,34 @@ | ||
import type { Metadata } from "next"; | ||
|
||
import { Provider } from "@/src/components/ui/provider"; | ||
import { Box, Container, Flex } from "@chakra-ui/react"; | ||
import Header from "@/src/components/layouts/Header"; | ||
import Sidebar from "@/src/components/layouts/Sidebar"; | ||
import { MSWComponent } from "@/src/components/common/MSWComponent"; | ||
import { SidebarProvider } from "@/src/context/SidebarContext"; | ||
|
||
export const metadata: Metadata = { | ||
title: "FlowSync", | ||
description: "The World Best PMS Service", | ||
}; | ||
|
||
const RootLayout = (props: { children: React.ReactNode }) => { | ||
const { children } = props; | ||
return ( | ||
<Provider> | ||
<Header /> | ||
<Container maxWidth={"100%"} display="flex" flexDirection="row" margin={0} padding={0}> | ||
<SidebarProvider> | ||
<Sidebar /> | ||
</SidebarProvider> | ||
<Flex width="100%" height="100%" align="center" justify="center"> | ||
<Box maxW="container.xl" width="100%" height="100%" p={10}> | ||
{children} | ||
</Box> | ||
</Flex> | ||
</Container> | ||
</Provider> | ||
); | ||
}; | ||
|
||
export default RootLayout; |
File renamed without changes.
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,3 @@ | ||
import ProjectPage from "@/src/components/pages/ProjectPage"; | ||
|
||
export default ProjectPage; |
File renamed without changes.
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
File renamed without changes.
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
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import findPasswordPage from "@/src/components/pages/FindPasswordPage"; | ||
import FindPasswordPage from "@/src/components/pages/FindPasswordPage"; | ||
|
||
export default findPasswordPage; | ||
export default FindPasswordPage; |
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,31 @@ | ||
import type { Metadata } from "next"; | ||
import { Provider } from "@/src/components/ui/provider"; | ||
import { Box, Flex } from "@chakra-ui/react"; | ||
|
||
export const metadata: Metadata = { | ||
title: "FlowSync", | ||
description: "The World Best PMS Service", | ||
}; | ||
|
||
const RootLayout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<Provider> | ||
{/* 로그인 페이지 중앙 정렬 레이아웃 */} | ||
<Flex | ||
direction="column" | ||
align="center" | ||
justify="center" | ||
minHeight="100vh" | ||
backgroundColor="gray.50" | ||
padding="3" | ||
overflow="hidden" // 스크롤 제거 | ||
> | ||
<Box width="100%" maxW="500px" borderRadius="md" bg="white" boxShadow="lg" padding="1"> | ||
{children} | ||
</Box> | ||
</Flex> | ||
</Provider> | ||
); | ||
}; | ||
|
||
export default RootLayout; |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,41 @@ | ||
import { LoginFormData } from "@/src/types/loginForm"; | ||
|
||
export default function LoginInputForm({ label, id, type, placeholder, onChange, className = "" }: LoginFormData & { className?: string; onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void }) { | ||
return ( | ||
<div className={`inputField ${className}`} style={{ width: "100%", marginBottom: "16px" }}> | ||
<label | ||
htmlFor={id} | ||
className="label" | ||
style={{ | ||
display: "block", | ||
marginBottom: "8px", | ||
fontSize: "14px", | ||
fontWeight: "bold", | ||
color: "#4A5568", | ||
textAlign: "left", | ||
}} | ||
> | ||
{label} | ||
<span style={{ color: "red", marginLeft: "4px" }}>*</span> | ||
</label> | ||
<input | ||
id={id} | ||
type={type} | ||
placeholder={placeholder} | ||
className="input" | ||
onChange={onChange} | ||
style={{ | ||
width: "100%", | ||
padding: "10px", | ||
border: "1px solid #CBD5E0", | ||
borderRadius: "4px", | ||
fontSize: "14px", | ||
outline: "none", | ||
transition: "border-color 0.2s ease", | ||
}} | ||
onFocus={e => (e.target.style.borderColor = "#00a8ff")} | ||
onBlur={e => (e.target.style.borderColor = "#CBD5E0")} | ||
/> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function findPasswordPage() { | ||
function FindPasswordPage() { | ||
return <h1>비밀번호 찾기</h1>; | ||
} | ||
|
||
export default findPasswordPage; | ||
export default FindPasswordPage; |
Oops, something went wrong.