-
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.
* design: 대분류 페이지 디자인 수정 * feat: 소개 대분류 페이지 추가 * feat: 소식 대분류 페이지 추가 * feat: 연구 대분류 페이지 추가 * design: 교과목 로드맵 변경 * fix: 대분류 페이지 명칭 변경 * feat: 대분류 페이지 이동 로직 추가 * fix: 리뷰 반영
- Loading branch information
1 parent
1e56f72
commit 780071e
Showing
22 changed files
with
185 additions
and
102 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
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 { getMockCommunityDescription } from '@/data/community'; | ||
|
||
export const getCommunityDescription = getMockCommunityDescription; |
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,9 @@ | ||
import { getAboutDescription } from '@/apis/about'; | ||
|
||
import MajorCategoryPageLayout from '@/components/layout/pageLayout/MajorCategoryPageLayout'; | ||
|
||
export default async function AboutPage() { | ||
const description = await getAboutDescription(); | ||
|
||
return <MajorCategoryPageLayout subtitle="About CSE" description={description} />; | ||
} |
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,9 @@ | ||
import { getCommunityDescription } from '@/apis/community'; | ||
|
||
import MajorCategoryPageLayout from '@/components/layout/pageLayout/MajorCategoryPageLayout'; | ||
|
||
export default async function CommunityPage() { | ||
const description = await getCommunityDescription(); | ||
|
||
return <MajorCategoryPageLayout subtitle="Communicate with CSE" description={description} />; | ||
} |
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,9 +1,9 @@ | ||
import GuidePageLayout from '@/components/layout/pageLayout/GuidePageLayout'; | ||
import { getPeopleDescription } from '@/apis/people'; | ||
|
||
export default function PeoplePage() { | ||
return <GuidePageLayout description={mockDescription} />; | ||
} | ||
import MajorCategoryPageLayout from '@/components/layout/pageLayout/MajorCategoryPageLayout'; | ||
|
||
export default async function PeoplePage() { | ||
const description = await getPeopleDescription(); | ||
|
||
const mockDescription = ` | ||
컴퓨터공학부는 35명의 훌륭한 교수진과 최신 시설을 갖추고 400여 명의 학부생과 350여 명의 대학원생에게 세계 최고 수준의 교육 연구 환경을 제공하고 있다. 2005년에는 서울대학교 최초로 외국인 정교수인 Robert Ian McKay 교수를 임용한 것을 시작으로 교내에서 가장 국제화가 활발하게 이루어지고 있는 학부로 평가받고 있다. 현재 훌륭한 외국인 교수님 두 분이 학부 학생들의 교육 및 연구 지도에 총력을 기울이고 있다. 다수의 외국인 학부생, 대학원생이 재학 중에 있으며 매 학기 전공 필수 과목을 비롯한 30% 이상의 과목이 영어로 개설되고 있어 외국인 학생의 학업을 돕는 동시에 한국인 학생이 세계로 진출하는 초석이 되고 있다. 또한 CSE int’l Luncheon을 개최하여 학부 내 외국인 구성원의 화합과 생활의 불편함을 최소화하는 등 학부 차원에서 최선을 다하고 있다. | ||
`; | ||
return <MajorCategoryPageLayout subtitle="Leading CSE" description={description} />; | ||
} |
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,9 @@ | ||
import { getResearchDescription } from '@/apis/research'; | ||
|
||
import MajorCategoryPageLayout from '@/components/layout/pageLayout/MajorCategoryPageLayout'; | ||
|
||
export default async function ResearchPage() { | ||
const description = await getResearchDescription(); | ||
|
||
return <MajorCategoryPageLayout subtitle="Research CSE" description={description} />; | ||
} |
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
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
'use client'; | ||
|
||
import Link from 'next/link'; | ||
import { useTranslations } from 'next-intl'; | ||
import React from 'react'; | ||
|
||
import HTMLViewer from '@/components/editor/HTMLViewer'; | ||
|
||
import useCurrentSegmentNode from '@/hooks/useCurrentSegmentNode'; | ||
|
||
import { getPath } from '@/utils/page'; | ||
|
||
interface GuidePageLayoutProps { | ||
title?: string; | ||
subtitle?: string; | ||
description?: string; | ||
} | ||
|
||
export default function MajorCategoryPageLayout({ | ||
title, | ||
subtitle = '', | ||
description = '', | ||
}: GuidePageLayoutProps) { | ||
const t = useTranslations('Nav'); | ||
const currentPage = useCurrentSegmentNode(); | ||
title ||= t(currentPage.name); | ||
|
||
return ( | ||
<div className="bg-neutral-850"> | ||
<div className="max-w-[80rem] pt-12 pb-[4.5rem] px-[6.25rem]"> | ||
<div className="text-neutral-500 text-[20px] font-light">{subtitle}</div> | ||
<div className="text-white text-[64px] font-semibold tracking-wide mb-8">{title}</div> | ||
<HTMLViewer htmlContent={description} style={{ color: '#f5f5f5' }} /> | ||
</div> | ||
<div className="bg-neutral-900 pt-10 pb-[12.5rem] px-[6.25rem]"> | ||
<div className="grid gap-10 grid-cols-[repeat(auto-fill,_300px)]"> | ||
{currentPage.children!.map((subpage, index) => ( | ||
<DetailItem | ||
key={index} | ||
title={subpage.name} | ||
description={subpage.description ?? ''} | ||
href={getPath(subpage)} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
interface DetailItemProps { | ||
title: string; | ||
description: string; | ||
href: string; | ||
} | ||
|
||
function DetailItem({ title, description, href }: DetailItemProps) { | ||
return ( | ||
<Link href={href}> | ||
<div className="w-[300px] h-[160px] bg-neutral-100 px-7 py-6 hover:bg-main-orange-dark flex flex-col justify-between"> | ||
<div> | ||
<h3 className="text-neutral-800 text-[20px] font-medium mb-[16px]">{title}</h3> | ||
<p className="text-neutral-800 text-[16px]">{description}</p> | ||
</div> | ||
<div className="text-end"> | ||
<span className="material-symbols-outlined font-extralight text-[32px] text-neutral-800"> | ||
arrow_forward | ||
</span> | ||
</div> | ||
</div> | ||
</Link> | ||
); | ||
} |
Oops, something went wrong.