-
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.
Merge pull request #15 from GDSC-Hongik/feature/layout
[Feature] client, admin layout 구축
- Loading branch information
Showing
74 changed files
with
789 additions
and
225 deletions.
There are no files selected for viewing
Binary file not shown.
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 +1,56 @@ | ||
@layer reset, base, tokens, recipes, utilities; | ||
@import url("@wow-class/ui/styles.css"); | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 200; | ||
src: url("/fonts/SUIT-Thin.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 300; | ||
src: url("/fonts/SUIT-ExtraLight.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 400; | ||
src: url("/fonts/SUIT-Regular.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 500; | ||
src: url("/fonts/SUIT-Medium.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 600; | ||
src: url("/fonts/SUIT-SemiBold.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 700; | ||
src: url("/fonts/SUIT-Bold.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 800; | ||
src: url("/fonts/SUIT-ExtraBold.ttf") format("truetype"); | ||
} | ||
|
||
@font-face { | ||
font-family: "SUIT"; | ||
font-weight: 900; | ||
src: url("/fonts/SUIT-Heavy.ttf") format("truetype"); | ||
} | ||
|
||
body { | ||
font-family: "SUIT" !important; | ||
display: flex; | ||
flex-direction: row; | ||
} |
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,5 @@ | ||
const Participants = () => { | ||
return <div>Participants</div>; | ||
}; | ||
|
||
export default Participants; |
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,5 @@ | ||
const Study = () => { | ||
return <div>Study</div>; | ||
}; | ||
|
||
export default Study; |
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,5 @@ | ||
const Studies = () => { | ||
return <div>Studies</div>; | ||
}; | ||
|
||
export default Studies; |
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,81 @@ | ||
import { css } from "@styled-system/css"; | ||
import { Flex } from "@styled-system/jsx"; | ||
import { NavItem } from "@wow-class/ui"; | ||
import Image from "next/image"; | ||
|
||
import { navMenu } from "../constants/navMenu"; | ||
import adminImageUrl from "../public/images/administrator.svg"; | ||
import logoImageUrl from "../public/images/logo.svg"; | ||
|
||
/** | ||
* @description admin 내비게이션 바 컴포넌트입니다. | ||
*/ | ||
|
||
const Navbar = () => { | ||
return ( | ||
<aside aria-label="admin navigation bar" className={navbarContainerStyle}> | ||
<Flex align="center" gap={8} padding="6px 0px 7px 20px"> | ||
<div className={logoTextStyle}>와우클래스 멘토</div> | ||
<Image | ||
alt="logo" | ||
height={20.5} | ||
src={logoImageUrl} | ||
width={42} | ||
className={css({ | ||
width: "42px", | ||
height: "20.5px", | ||
})} | ||
/> | ||
</Flex> | ||
<nav | ||
aria-label="admin nav menu" | ||
className={navContainerStyle} | ||
role="navigation" | ||
> | ||
<ul> | ||
{navMenu.map((menu) => ( | ||
<NavItem | ||
alt={menu.alt} | ||
href={menu.href} | ||
imageUrl={menu.imageUrl} | ||
items={menu.items} | ||
key={menu.name} | ||
name={menu.name} | ||
/> | ||
))} | ||
</ul> | ||
<NavItem | ||
alt="administrator-icon" | ||
href="" | ||
imageUrl={adminImageUrl} | ||
name="멘티 페이지로 전환" | ||
/> | ||
</nav> | ||
</aside> | ||
); | ||
}; | ||
|
||
export default Navbar; | ||
|
||
const navbarContainerStyle = css({ | ||
width: "250px", | ||
minHeight: "100vh", | ||
paddingTop: "54px", | ||
borderRightWidth: "arrow", | ||
borderColor: "mono.400", | ||
}); | ||
|
||
const logoTextStyle = css({ | ||
fontSize: "24px", | ||
fontWeight: 700, | ||
lineHeight: "130%", | ||
letterSpacing: "-0.24px", | ||
}); | ||
|
||
const navContainerStyle = css({ | ||
padding: "8px 0px", | ||
display: "flex", | ||
flexDirection: "column", | ||
minHeight: "calc(100vh - 98px)", | ||
justifyContent: "space-between", | ||
}); |
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,38 @@ | ||
import folderImageUrl from "../public/images/folder.svg"; | ||
import homeImageUrl from "../public/images/home.svg"; | ||
import participantImageUrl from "../public/images/particpant.svg"; | ||
|
||
export const navMenu = [ | ||
{ | ||
href: "studies", | ||
imageUrl: homeImageUrl, | ||
alt: "home-icon", | ||
name: "개설된 스터디", | ||
items: [ | ||
{ | ||
href: "basic-web-study", | ||
imageUrl: folderImageUrl, | ||
alt: "folder-icon", | ||
name: "기초 웹 스터디", | ||
}, | ||
{ | ||
href: "dev-beginner-study", | ||
imageUrl: folderImageUrl, | ||
alt: "folder-icon", | ||
name: "개발 입문 스터디", | ||
}, | ||
{ | ||
href: "basic-mobile-study", | ||
imageUrl: folderImageUrl, | ||
alt: "folder-icon", | ||
name: "기초 모바일 스터디", | ||
}, | ||
], | ||
}, | ||
{ | ||
href: "participants", | ||
imageUrl: participantImageUrl, | ||
alt: "participant-icon", | ||
name: "수강생 관리", | ||
}, | ||
]; |
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,4 +1,15 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
async redirects() { | ||
return [ | ||
{ | ||
source: "/", | ||
destination: "/studies", | ||
permanent: false, | ||
statusCode: 301, | ||
}, | ||
]; | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
import Navbar from "components/Navbar"; | ||
|
||
const Layout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<> | ||
<Navbar /> | ||
{children} | ||
</> | ||
); | ||
}; | ||
|
||
export default Layout; |
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,5 @@ | ||
const MyPage = () => { | ||
return <div>MyPage</div>; | ||
}; | ||
|
||
export default MyPage; |
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,5 @@ | ||
const MyHomework = () => { | ||
return <div>MyHomework</div>; | ||
}; | ||
|
||
export default MyHomework; |
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,5 @@ | ||
const MyStudy = () => { | ||
return <div>MyStudy</div>; | ||
}; | ||
|
||
export default MyStudy; |
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,5 @@ | ||
const StudyApply = () => { | ||
return <div>StudyApply</div>; | ||
}; | ||
|
||
export default StudyApply; |
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,5 @@ | ||
const Auth = () => { | ||
return <div>Auth</div>; | ||
}; | ||
|
||
export default Auth; |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.