-
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
Showing
89 changed files
with
2,589 additions
and
616 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,27 @@ | ||
name: Auto Assign | ||
|
||
on: | ||
pull_request: | ||
types: [opened, ready_for_review, converted_to_draft] | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
assign_pull_request: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'pull_request' | ||
steps: | ||
- uses: hkusu/review-assign-action@v1 | ||
with: | ||
assignees: ${{ github.actor }} | ||
|
||
auto_assign_issue: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'issues' | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: "Auto-assign issue" | ||
uses: pozil/auto-assign-issue@v2 | ||
with: | ||
assignees: ${{ github.actor }} |
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,40 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
types: [opened, ready_for_review, converted_to_draft] | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js 20.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Run build | ||
run: pnpm run build |
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,8 @@ | ||
"use client"; | ||
|
||
import { Provider } from "jotai"; | ||
import type { ReactNode } from "react"; | ||
|
||
export const JotaiProvider = ({ children }: { children: ReactNode }) => { | ||
return <Provider>{children}</Provider>; | ||
}; |
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
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.
Oops, something went wrong.