-
Notifications
You must be signed in to change notification settings - Fork 3
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 #54 from sitcon-tw/feature/staff-list
feature/staff list
- Loading branch information
Showing
6 changed files
with
161 additions
and
31 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,3 +1,99 @@ | ||
"use client"; | ||
|
||
import TableOfContent from "@/app/cfp/(submission)/_components/table-of-content"; | ||
// import TableOfContentMobile from "@/app/cfp/(submission)/_components/table-of-content-mobile"; | ||
import staffJson from "./staff.json"; | ||
import Link from "next/link"; | ||
import { motion } from "framer-motion"; | ||
|
||
export default function Page() { | ||
return <p>SITCON 團隊</p>; | ||
const sections = staffJson.map((group) => ({ | ||
id: group.group, | ||
title: group.group, | ||
})); | ||
|
||
return ( | ||
<div className="flex items-start gap-8 py-8 text-normal-mobile md:text-normal"> | ||
<div className="w-[95%]"> | ||
<h1 className="mb-2 text-h1-mobile font-bold md:mb-4 md:text-h1"> | ||
SITCON 團隊 | ||
</h1> | ||
<p className="-mt-[60px] mb-3 space-y-4 pt-[80px] leading-[200%] md:mb-8"> | ||
SITCON | ||
年會每年皆是許多志工奉獻時間與精神所舉辦,沒有大家的付出,就不可能會有如此內容豐富且高品質的年會, | ||
希望大家在參加之餘,也不要忘記背後工作人員的付出。 | ||
<br /> | ||
若你對參與 SITCON 年會的籌備有興趣,歡迎填寫跳坑表單或是關注 SITCON | ||
的郵件論壇,明年的籌備開始時,你就會收到相關的資訊! | ||
</p> | ||
<div className="mb-4 flex flex-row gap-6"> | ||
<Link | ||
className="flex h-[60px] w-[190px] items-center justify-center self-center rounded-full bg-primary text-black transition hover:bg-foreground max-[1024px]:active:scale-95 max-sm:px-3 md:mb-10 md:w-[153px] md:self-start min-[1024px]:active:bg-primary" | ||
href="https://forms.gle/rr93tuxJ9m9uStDf9" | ||
target="_blank" | ||
> | ||
跳坑表單 | ||
</Link> | ||
<Link | ||
className="flex h-[60px] w-[190px] items-center justify-center self-center rounded-full bg-primary text-black transition hover:bg-foreground max-[1024px]:active:scale-95 max-sm:px-3 md:mb-10 md:w-[153px] md:self-start min-[1024px]:active:bg-primary" | ||
href="https://groups.google.com/g/sitcon" | ||
target="_blank" | ||
> | ||
郵件論壇 | ||
</Link> | ||
</div> | ||
{/* <TableOfContentMobile theme="light" sections={sections} submitUrl="" /> */} | ||
{staffJson.map((group) => ( | ||
<motion.div | ||
key={group.group} | ||
initial={{ opacity: 0, filter: "blur(0.5em)" }} | ||
whileInView={{ | ||
opacity: 1, | ||
filter: "blur(0)", | ||
transition: { duration: 0.25 }, | ||
}} | ||
viewport={{ once: true }} | ||
> | ||
<section id={group.group} key={group.group} className="mb-8"> | ||
<h2 className="text-h2-mobile font-bold md:text-h2"> | ||
{group.group} | ||
</h2> | ||
<p>{group.description}</p> | ||
<div className="mt-6 grid grid-cols-[repeat(auto-fill,minmax(78px,1fr))] gap-6 md:gap-12 md:gap-y-8"> | ||
{group.staff.map((member) => ( | ||
<div key={member.name}> | ||
<div className="flex flex-col items-center gap-4 text-center"> | ||
<motion.img | ||
initial={{ | ||
scale: 1, | ||
filter: | ||
"drop-shadow(0px 0px 0px rgba(201,235,255,70))", | ||
}} | ||
whileHover={{ | ||
scale: 1.2, | ||
filter: | ||
"drop-shadow(0px 0px 5px rgba(201,235,255,70))", | ||
}} | ||
src={`https://gravatar.com/avatar/${member.email}?s=512&d=https://sitcon.org/2022/imgs/deafult_avatar.jpg&r=g`} | ||
className="h-20 w-20 rounded-full" | ||
/> | ||
<div> | ||
<h3 className="text-[16px] font-bold md:text-[19px]"> | ||
{member.name} | ||
</h3> | ||
<p className="text-[12px] md:text-[14px]"> | ||
{member.role} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</section> | ||
</motion.div> | ||
))} | ||
</div> | ||
<TableOfContent theme="light" sections={sections} submitUrl="" /> | ||
</div> | ||
); | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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