Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create ProgramIntroduction section on Philosophy section #110

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nextjs-app/app/about/philosophy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Breadcrumb from "@/components/common/Breadcrumb";
import MarqueeTitle from "@/components/common/MarqueeTitle";
import WhatWeDoPhilosophy from "@/components/pages/about/philosophy/WhatWeDoPhilosophy";
import CorePhilosophy from "@/components/pages/about/philosophy/CorePhilosophy";
import ProgramIntroduction from "@/components/pages/about/philosophy/ProgramIntroduction";
import type { Metadata } from "next";

export const metadata: Metadata = {
Expand All @@ -15,6 +16,7 @@ export default async function PhilosophyPage() {
<MarqueeTitle zhTitle="曼陀號理念" enTitle="Philosophy" />
<WhatWeDoPhilosophy />
<CorePhilosophy />
<ProgramIntroduction />
</div>
);
}
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: "計劃名稱", 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;
Binary file added nextjs-app/public/images/icon-ink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading