-
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 #8 from chohyundon/feature/teddy
Feature/teddy
- Loading branch information
Showing
71 changed files
with
994 additions
and
20 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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"plugins": ["@stylexjs"], | ||
"rules": { "@stylexjs/valid-styles": "error" } | ||
} | ||
"plugins": [ | ||
"@stylexjs" | ||
], | ||
"rules": { | ||
"@stylexjs/valid-styles": "error" | ||
} | ||
} |
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 @@ | ||
import { AlumNightPage } from '@/widgets/memberPage/alumnight/index'; | ||
|
||
export default function AlumNight() { | ||
return <AlumNightPage></AlumNightPage>; | ||
} |
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 @@ | ||
import { AndroidPage } from '@/widgets/memberPage/android/index'; | ||
|
||
export default function Android() { | ||
return <AndroidPage></AndroidPage>; | ||
} |
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 @@ | ||
import { BackendPage } from '@/widgets/memberPage/backend/index'; | ||
|
||
export default function Android() { | ||
return <BackendPage></BackendPage>; | ||
} |
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 @@ | ||
import { BeginnerPage } from '@/widgets/memberPage/beginner/index'; | ||
|
||
export default function Android() { | ||
return <BeginnerPage></BeginnerPage>; | ||
} |
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 @@ | ||
import { DesignerPage } from '@/widgets/memberPage/designer/index'; | ||
|
||
export default function Android() { | ||
return <DesignerPage></DesignerPage>; | ||
} |
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 @@ | ||
import { FrontEndPage } from '@/widgets/memberPage/frontend/index'; | ||
|
||
export default function Android() { | ||
return <FrontEndPage></FrontEndPage>; | ||
} |
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 { MemberCategory } from '@/features/update-button/index'; | ||
import type { Metadata } from 'next'; | ||
import * as stylex from '@stylexjs/stylex'; | ||
|
||
const styles = stylex.create({ | ||
container: { | ||
width: '100%', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
}); | ||
|
||
export const metadata: Metadata = { | ||
title: 'GDSC DJU | Members', | ||
description: 'GDSC DJU Members website', | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<div {...stylex.props(styles.container)}> | ||
<MemberCategory /> | ||
<main>{children}</main> | ||
</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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { MLPage } from '@/widgets/memberPage/ml/index'; | ||
|
||
export default function Android() { | ||
return <MLPage></MLPage>; | ||
} |
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 @@ | ||
import { MemberPage } from '@/views/member/ui/member'; | ||
|
||
export default function MemberHomePage() { | ||
return <MemberPage />; | ||
} |
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,29 @@ | ||
import Link from 'next/link'; | ||
import * as stylex from '@stylexjs/stylex'; | ||
import { sizes } from '../src/shared/ui/styles/tokens.stylex'; | ||
|
||
export const styles = stylex.create({ | ||
container: { | ||
position: 'absolute', | ||
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
textAlign: 'center', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: '20px', | ||
}, | ||
header: { | ||
fontSize: sizes.title1_bold, | ||
}, | ||
}); | ||
|
||
export default function NotFound() { | ||
return ( | ||
<div {...stylex.props(styles.container)}> | ||
<h2 {...stylex.props(styles.header)}>찾을수 없습니다</h2> | ||
<p>잘못된 경로로 접근했습니다!!</p> | ||
<Link href="/">홈으로 돌아가기</Link> | ||
</div> | ||
); | ||
} |
Empty file.
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,8 +1,7 @@ | ||
import WakatimeMain from "@/views/wakatime/ui/wakatime-main" | ||
|
||
const Wakatime = () => { | ||
return ( | ||
<div>page</div> | ||
) | ||
return <WakatimeMain/> | ||
} | ||
|
||
export default Wakatime |
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 @@ | ||
export const GetMemberData = async (dataType: string) => { | ||
const data = await fetch(`https://backend.gdscdju.dev/api/v1/${dataType}`); | ||
const memberData = data.json(); | ||
return memberData; | ||
}; |
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 @@ | ||
export { GetMemberData } from './api/getMemberData'; |
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,3 @@ | ||
export { TeddyCategory } from './ui/change-teddyCategory'; | ||
export { MemberCategory } from './ui/change-memberCategory'; | ||
export { ChangeNavBarColor } from './ui/change-navbarCategory'; |
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,94 @@ | ||
'use client'; | ||
|
||
import * as stylex from '@stylexjs/stylex'; | ||
import { colors, sizes } from '../../../shared/ui/styles/tokens.stylex'; | ||
import { useState } from 'react'; | ||
import Link from 'next/link'; | ||
import { useTheme } from 'next-themes'; | ||
|
||
export const styles = stylex.create({ | ||
container: { | ||
paddingTop: '32px', | ||
display: 'flex', | ||
gap: '24px', | ||
width: '1200px', | ||
justifyContent: 'flex-start', | ||
}, | ||
|
||
categoryContainer: { | ||
textDecoration: 'none', | ||
}, | ||
|
||
category: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
borderRadius: '27px', | ||
width: '78px', | ||
textDecoration: 'none', | ||
height: '30px', | ||
cursor: 'pointer', | ||
fontSize: sizes.title2_medium, | ||
backgroundColor: colors.grey200, | ||
color: colors.grey900, | ||
}, | ||
|
||
isActive: { | ||
backgroundColor: colors.redCore, | ||
color: colors.grey50, | ||
}, | ||
bgDark: { | ||
backgroundColor: colors.grey700, | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
borderRadius: '27px', | ||
width: '78px', | ||
textDecoration: 'none', | ||
height: '30px', | ||
cursor: 'pointer', | ||
fontSize: sizes.title2_medium, | ||
color: colors.white, | ||
}, | ||
}); | ||
|
||
export const MemberCategory = () => { | ||
const { theme } = useTheme(); | ||
const bgColor = theme === 'dark' ? styles.bgDark : styles.category; | ||
|
||
const [isClick, setIsClick] = useState(''); | ||
|
||
const memberCategory = [ | ||
{ name: 'Backend', path: '/backend' }, | ||
{ name: 'Frontend', path: '/frontend' }, | ||
{ name: 'Android', path: '/android' }, | ||
{ name: 'ML', path: '/ml' }, | ||
{ name: 'Designer', path: '/designer' }, | ||
{ name: 'Beginner', path: '/beginner' }, | ||
{ name: 'Alumnight', path: '/alumnight' }, | ||
]; | ||
|
||
return ( | ||
<> | ||
<ul {...stylex.props(styles.container)}> | ||
{memberCategory.map((member, index) => ( | ||
<Link | ||
href={`/members/${member.path}`} | ||
key={index} | ||
{...stylex.props(styles.categoryContainer)} | ||
> | ||
<li | ||
onClick={() => setIsClick(member.name)} | ||
{...stylex.props( | ||
bgColor, | ||
isClick === member.name ? styles.isActive : undefined, | ||
)} | ||
> | ||
{member.name} | ||
</li> | ||
</Link> | ||
))} | ||
</ul> | ||
</> | ||
); | ||
}; |
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,63 @@ | ||
'use client'; | ||
|
||
import Link from 'next/link'; | ||
import { usePathname } from 'next/navigation'; | ||
import * as stylex from '@stylexjs/stylex'; | ||
import { colors } from '../../../shared/ui/styles/tokens.stylex'; | ||
|
||
export const styles = stylex.create({ | ||
category: { | ||
textDecoration: 'none', | ||
}, | ||
categoryHover: { | ||
color: { | ||
default: 'black', | ||
':hover': colors.blueCore, | ||
}, | ||
borderBottomWidth: { | ||
':hover': '1px', | ||
}, | ||
borderColor: { | ||
':hover': colors.blueCore, | ||
}, | ||
borderStyle: { | ||
':hover': 'solid', | ||
}, | ||
}, | ||
active: { | ||
color: colors.blueCore, | ||
}, | ||
}); | ||
|
||
export const ChangeNavBarColor = () => { | ||
const NavBarPath = usePathname(); | ||
|
||
const NavBarData = [ | ||
{ name: 'wakatime', path: '/wakatime' }, | ||
{ name: 'teddy', path: '/teddy' }, | ||
{ name: 'members', path: '/members' }, | ||
{ name: 'blog', path: '/blog' }, | ||
]; | ||
|
||
const pathName = NavBarData.map((item) => item.name); | ||
|
||
return ( | ||
<> | ||
{NavBarData.map((category, index) => ( | ||
<Link | ||
href={category.path} | ||
key={index} | ||
role="navigation" | ||
aria-label={`${pathName}로 바로가기`} | ||
{...stylex.props( | ||
styles.category, | ||
styles.categoryHover, | ||
NavBarPath === category.path ? styles.active : undefined, | ||
)} | ||
> | ||
{category.name} | ||
</Link> | ||
))} | ||
</> | ||
); | ||
}; |
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,8 @@ | ||
export interface MemberType { | ||
Name: string; | ||
Nickname: string; | ||
SlackID: string; | ||
Role: string; | ||
Position: string; | ||
Image512: string; | ||
} |
Oops, something went wrong.