-
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.
π ν΅ν©κ²μ λμμΈ λ°μ (#142)
* feat: ν΅ν©κ²μ λμμΈ λ°μ * fix: NewsRow μ΄λ―Έμ§ fill -> cover * fix: λλΆλ₯μμ navbar dotμ΄ νμλμ§ μλ λ¬Έμ * refactor: page -> segmentNode μμ * fix: λλΆλ₯ νμ΄μ§ λ²μ μ μ© * refactor: api ν΄λμ server actionλ€ action ν΄λλ‘ μ΄λ * refactor: component ν΄λ κ°λ΅ν * design: νλΆ μκ° λμμΈ λ°μ * design: νλΆμ₯ μΈμ¬λ§ μμ , μ°ν μ΄λ―Έμ§ κ΅μ²΄ * design: μ‘Έμ μ μ§λ‘ λμμΈ λ°μ * design: μκ°ν λμμΈ λ°μ * design: μμ λΆλΆ λμμΈ λ°μ
- Loading branch information
Showing
181 changed files
with
953 additions
and
987 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
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 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 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
5 changes: 2 additions & 3 deletions
5
components/directions/LocationGuide.tsx β ...ocale]/about/directions/LocationGuide.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import Image from 'next/image'; | ||
|
||
import Distance from '@/public/image/about/distance.svg'; | ||
|
||
import { Facilities } from '@/types/about'; | ||
|
||
import HTMLViewer from '../../../../components/editor/HTMLViewer'; | ||
|
||
export default function FacilitesList({ facilities }: { facilities: Facilities }) { | ||
return ( | ||
<div className="flex flex-col"> | ||
{facilities.facilitiesList.map((post, index) => ( | ||
<FacilitiesRow | ||
key={index} | ||
name={post.name} | ||
description={post.description} | ||
location={post.location} | ||
imageURL={post.imageURL} | ||
border={index !== 0} | ||
/> | ||
))} | ||
</div> | ||
); | ||
} | ||
|
||
export interface FacilitiesRowProps { | ||
name: string; | ||
description: string; | ||
location: string; | ||
imageURL: string; | ||
border: boolean; | ||
} | ||
|
||
function FacilitiesRow({ name, description, location, imageURL, border }: FacilitiesRowProps) { | ||
return ( | ||
<article | ||
className={`text-neutral-700 flex py-[1.2rem] flex-row items-start justify-between break-all ${ | ||
border ? 'border-t-[1px] border-neutral-200' : undefined | ||
}`} | ||
> | ||
<div className="flex flex-col w-[35.5rem]"> | ||
<h3 className="text-neutral-800 text-base font-noto font-bold mb-[.69rem] leading-5"> | ||
{name} | ||
</h3> | ||
<HTMLViewer htmlContent={description} /> | ||
<div className="flex items-center gap-[0.12rem]"> | ||
<Distance /> | ||
<p className="text-md leading-[1.63rem] translate-x-[-2px]">{location}</p> | ||
</div> | ||
</div> | ||
|
||
<FacilitiesRowImage imageURL={imageURL} /> | ||
</article> | ||
); | ||
} | ||
|
||
function FacilitiesRowImage({ imageURL }: { imageURL: string }) { | ||
const src = `/image/facilities/${imageURL}-color.png`; | ||
|
||
return ( | ||
<div className="w-60 h-40 relative"> | ||
<Image alt="λν μ΄λ―Έμ§" src={src} fill sizes="10rem" /> | ||
</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
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,52 @@ | ||
import { getOverview } from '@/apis/about'; | ||
import Image from 'next/image'; | ||
|
||
import brochure1 from '@/public/image/about/brochure1.png'; | ||
import brochure2 from '@/public/image/about/brochure2.png'; | ||
|
||
import Attachment from '@/components/common/Attachments'; | ||
import HTMLViewer from '@/components/editor/HTMLViewer'; | ||
import PageLayout from '@/components/layout/pageLayout/PageLayout'; | ||
|
||
// νλΆ μκ° νμ΄μ§ - νλΆμ₯ μΈμΏλ§ νμ΄μ§μ νμμ΄ λμΌ | ||
// λ κ³³μμλ§ κ²Ήμ³μ λ°λ‘ μ»΄ν¬λνΈννμ§ μμ | ||
export default async function OverviewPage() { | ||
const response = await getOverview(); | ||
|
||
return ( | ||
<PageLayout titleType="big" titleMargin="mb-9"> | ||
<HTMLViewer | ||
htmlContent={response.description} | ||
topRightContent={{ type: 'image', width: 320, height: 213, url: response.imageURL }} | ||
/> | ||
<Attachment files={[response.attachment]} /> | ||
<PageLayout titleType="big" titleMargin="mb-9" bodyStyle={{ padding: 0 }}> | ||
<div className="flex gap-10 bg-neutral-100 py-10 pl-[6.25rem] pr-[22rem] items-start"> | ||
<HTMLViewer htmlContent={description} className="w-[37.5rem] shrink-0" /> | ||
<Image | ||
src="https://cse-dev-waffle.bacchus.io/sites/default/files/styles/medium-larger/public/node--page/301302.jpg?itok=96k1IsL0" | ||
alt="νκ΅ μ κ²½" | ||
width={320} | ||
height={213} | ||
/> | ||
</div> | ||
<div className="pt-10 pl-[6.25rem] pb-[7.88rem]"> | ||
<h2 className="text-base font-semibold mb-6">νλΆ μκ° μ± μ</h2> | ||
<div className="flex gap-6 mb-10"> | ||
<Image src={brochure1.src} width={227} height={320} alt="μκ° μ± μ" /> | ||
<Image src={brochure2.src} width={227} height={320} alt="μκ° μ± μ" /> | ||
</div> | ||
<Attachment files={[attachment]} /> | ||
</div> | ||
</PageLayout> | ||
); | ||
} | ||
|
||
const description = ` | ||
<p> | ||
μ»΄ν¨ν°κ³΅νμ μ 보ν μ¬νλ‘μ μ΄νμ μμ΄ νμμ μ΄κ³ ν΅μ¬μ μΈ νλ¬ΈμΌλ‘μ, μ±λ₯μ΄ μ°μν μ»΄ν¨ν°λ₯Ό μ€κ³ μ μνκ³ μ΄μ λ° μμ©μ νμν μννΈμ¨μ΄λ₯Ό κ°λ°νμ¬, μ°μ μ λ°μμ μ΄λ₯Ό νμ©ν μ μκ² νλ νλ¬Έμ΄λ€. μ»΄ν¨ν°κ³΅νμ μ΄λ‘ μ μΈ μΈ‘λ©΄μμμ κΈ°λ° κΈ°μ μ°κ΅¬μ μ΄λ₯Ό μ€μνμ μ§μ μμ©ν μ μλ μμ© μ°κ΅¬λ₯Ό μΆκ΅¬νκ³ μλ€. νλμ λͺ¨λ μ°μ λ€μ μ μ°¨ κ·Έ 볡μ‘λκ° μ¦κ°ν¨μ λ°λΌ μ»΄ν¨ν°λ₯Ό ν΅ν λ¬Έμ ν΄κ²°μ μλνκ³ μλ€. μ»΄ν¨ν°κ³΅νμ μ΄λ¬ν μ΅ν©μ , ν΅μμ μ¬κ³ μ μ°κ΅¬λ₯Ό μ£Όλνκ³ μμΌλ©°, μ΄λ₯Ό ν΅ν΄ μ°μ μ λ°μ κ±Έμ³ μν₯λ ₯μ νλνκ³ μλ€. | ||
<br/> | ||
<br/> | ||
μ»΄ν¨ν° λΆμΌμ κ΅μ‘ λ° μ°κ΅¬ λ΄μ©μ 곡ν λ° κ³Όνμ κΈ°μ΄ μ§μμ λ°νμΌλ‘ ν λ Όλ¦¬μ μΆλ¦¬ λ° λ μ°½μ μ¬κ³ λ ₯μ μνλ€. μ»΄ν¨ν° μννΈμ¨μ΄ λ° νλμ¨μ΄λ λ§€μ° κΈ΄λ°ν μ κΈ°μ μ°κ΄μ κ°κΈ° λλ¬Έμ νλμ¨μ΄μ μννΈμ¨μ΄μ κ΄ν μ λ¬Έ μ§μμ ν¨κ» 곡λΆνλ©° μ΄λ₯Ό λ°νμΌλ‘ μ»΄ν¨ν° ꡬ쑰, μ΄μ체μ , λ°μ΄νλ² μ΄μ€, νλ‘κ·Έλλ°μΈμ΄, μ»΄ν¨ν° ν΅μ , μ»΄ν¨ν° μ΄μ©μ€κ³, μΈκ³΅μ§λ₯, μκ³ λ¦¬μ¦, μμ°μΈμ΄μ²λ¦¬, λ©ν°λ―Έλμ΄μμ€ν , κ°μ²΄μ§ν₯μμ€ν , λΆμ°μμ€ν , μ€μκ°μμ€ν λ±μ κ΄ν μ λ¬Έ μ§μμ μ΅λνκ³ μλ‘μ΄ μ΄λ‘ μ 립 λ° μ€ν μ°κ΅¬λ₯Ό μννλ€. | ||
<br/> | ||
<br/> | ||
μ»΄ν¨ν° μ°μ μ λνμ μΈ κΈ°μ λ° λλ μ§μ½ν μ°μ μΌλ‘μ κ΅μ± μ°μ μ νλλ‘ μ§μ λμ΄ κ΅κ°μ μΈ μ°¨μμμ μ§μ, μ‘μ±λκ³ μλ€. λ―Έλλ₯Ό μ λν AI κΈ°μ κ°λ°, κ³ μ±λ₯ μ»΄ν¨ν° κ°λ°, μ°¨μΈλ μΈν°λ· λ° ν΅μ κΈ°μ κ°λ°, μΈκ° μΉνμ μ§λ₯ν μννΈμ¨μ΄ κΈ°μ λ± μλ‘μ΄ μ»΄ν¨ν° κΈ°μ μ΄ μ°μ μ λ°μ κ±Έμ³ μν μ μ¦λνκ³ μλ€. μ΄μ λ°λΌ, μ»΄ν¨ν° κ³ κΈμ λ¬ΈμΈλ ₯μ λν μ°μ κ³μ μμλ κΈκ²©ν μ¦κ°νκ³ μμΌλ©°, μμΈλνκ΅ μ»΄ν¨ν°κ³΅νλΆλ μ²¨λ¨ μ»΄ν¨ν° κΈ°μ μ°κ΅¬μ μ΄λ₯Ό ν΅ν μΈλ ₯ μμ±μ ꡬμ¬μ²΄κ° λκ³ μ λ Έλ ₯νκ³ μλ€. | ||
</p> | ||
`; | ||
|
||
const attachment = { | ||
name: 'CSE_Brochure.pdf', | ||
url: 'https://cse.snu.ac.kr/sites/default/files/node--page/CSE_Brochure.pdf', | ||
bytes: 281500, | ||
}; |
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,10 @@ | ||
import MajorCategoryPageLayout from '@/components/layout/pageLayout/MajorCategoryPageLayout'; | ||
|
||
export default async function AboutPage() { | ||
return <MajorCategoryPageLayout subtitle="About CSE" />; | ||
return ( | ||
<MajorCategoryPageLayout | ||
subtitle="About CSE" | ||
description="μ»΄ν¨ν° μ°μ μ λνμ μΈ κΈ°μ λ° λλ μ§μ½ν μ°μ μΌλ‘μ κ΅μ± μ°μ μ νλλ‘ μ§μ λμ΄ κ΅κ°μ μΈ μ°¨μμμ μ§μ, μ‘μ±λκ³ μμ΅λλ€. λ―Έλλ₯Ό μ λν AI κΈ°μ κ°λ°, κ³ μ±λ₯ μ»΄ν¨ν° κ°λ°, μ°¨μΈλ μΈν°λ· λ° ν΅μ κΈ°μ κ°λ°, μΈκ° μΉνμ μ§λ₯ν μννΈμ¨μ΄ κΈ°μ λ± μλ‘μ΄ μ»΄ν¨ν° κΈ°μ μ΄ μ°μ μ λ°μ κ±Έμ³ μν μ μ¦λνκ³ μμ΅λλ€. μ΄μ λ°λΌ, μ»΄ν¨ν° κ³ κΈμ λ¬ΈμΈλ ₯μ λν μ°μ κ³μ μμλ κΈκ²©ν μ¦κ°νκ³ μμΌλ©°, μμΈλνκ΅ μ»΄ν¨ν°κ³΅νλΆλ μ²¨λ¨ μ»΄ν¨ν° κΈ°μ μ°κ΅¬μ μ΄λ₯Ό ν΅ν μΈλ ₯ μμ±μ ꡬμ¬μ²΄κ° λκ³ μ λ Έλ ₯νκ³ μμ΅λλ€." | ||
/> | ||
); | ||
} |
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
Oops, something went wrong.