generated from sanity-io/sanity-template-nextjs-clean
-
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.
feat: create ProgramIntroduction section on Philosophy section
chore: add place holder for page navigation buttons feat: add PageNavigationCard
- Loading branch information
1 parent
257b9f9
commit a5695c2
Showing
3 changed files
with
74 additions
and
0 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
72 changes: 72 additions & 0 deletions
72
nextjs-app/components/pages/about/philosophy/ProgramIntroduction.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import Image from "next/image"; | ||
import Routes from "@/constants/routes"; | ||
import PageNavigationCard from "@/components/common/PageNavigationCard"; | ||
|
||
const content: { title: string; description: string }[] = [ | ||
{ title: "計劃名稱", description: "曼陀號領航計劃" }, | ||
{ title: "創立年度", description: "2018 年" }, | ||
{ title: "執行單位", description: "純志工團隊" }, | ||
{ | ||
title: "學員性質", | ||
description: "樂於學習交流,積極探索職涯,尋求更多可能性", | ||
}, | ||
{ | ||
title: "招募類型", | ||
description: "水手 (領域資歷 3 年以內)、航海士 (領域資歷 3 年以上)", | ||
}, | ||
]; | ||
|
||
const ProgramIntroduction = () => ( | ||
<div className="w-full bg-yellow-1"> | ||
<section className="container relative px-5 md:px-10 py-[72px] md:py-[120px]"> | ||
<div className="text-center text-h2 text-blue-8 mb-11"> | ||
曼陀號領航計劃簡介 | ||
</div> | ||
<Image | ||
src="/images/icon-ship.png" | ||
alt="icon-ship" | ||
width={48} | ||
height={48} | ||
className="hidden lg:block absolute right-[96px] -translate-y-1/2" | ||
/> | ||
<div className="w-full flex flex-col justify-center mb-11 p-7 md:p-11 bg-white rounded-3"> | ||
<div className="w-full mx-auto"> | ||
{content.map((row) => ( | ||
<div | ||
key={row.title} | ||
className="w-full flex flex-col md:flex-row items-start gap-y-2 gap-x-7 py-7 md:py-9 text-left border-t border-yellow-2" | ||
> | ||
<div className="flex-none w-[212px] shrink-0 text-body-lg"> | ||
{row.title} | ||
</div> | ||
<div className="flex-1 shrink text-subtitle-lg"> | ||
{row.description} | ||
</div> | ||
</div> | ||
))} | ||
<hr className="border-yellow-2" /> | ||
</div> | ||
</div> | ||
<div className="pt-[60px] lg:pt-[120px] flex flex-col lg:flex-row gap-7"> | ||
<PageNavigationCard | ||
imageSrc="/images/icon-ink.png" | ||
enTitle="Overview" | ||
zhTitle="計劃介紹" | ||
buttonText="more" | ||
buttonLink={Routes.ABOUT.OVERVIEW} | ||
className="flex-1" | ||
/> | ||
<PageNavigationCard | ||
imageSrc="/images/icon-duck.png" | ||
enTitle="Team" | ||
zhTitle="執行團隊" | ||
buttonText="more" | ||
buttonLink={Routes.ABOUT.TEAM} | ||
className="flex-1" | ||
/> | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
|
||
export default ProgramIntroduction; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.