|
| 1 | +"use client"; |
| 2 | +import { useContext } from "react"; |
| 3 | +import { LanguageContext } from "contexts/con/LanguageContext"; |
| 4 | +import SectionTitle from "components/con/common/typography/SectionTitle"; |
| 5 | +import Button from "components/con/common/Button"; |
| 6 | +import SectionSubTitle from "components/con/common/typography/SectionSubtitle"; |
| 7 | + |
| 8 | +export default function Informations() { |
| 9 | + const { t, getLocaleDictionary } = useContext(LanguageContext); |
| 10 | + const categories = getLocaleDictionary?.()[2026].cfp.subject.categories || []; |
| 11 | + return ( |
| 12 | + <div className="bg-grey pb-12 relative z-20"> |
| 13 | + <div className="container flex flex-col items-center"> |
| 14 | + <SectionTitle small lined> |
| 15 | + <strong>{t("2026.cfp.subject.title")}</strong> |
| 16 | + </SectionTitle> |
| 17 | + <SectionSubTitle>{t("2026.cfp.subject.subtitle")}</SectionSubTitle> |
| 18 | + <div className="flex flex-wrap justify-center gap-8 md:gap-3"> |
| 19 | + {categories.map((c) => { |
| 20 | + return ( |
| 21 | + <div |
| 22 | + key={c.icon} |
| 23 | + className="flex flex-col md:flex-row text-center md:text-left md:odd:translate-x-4 md:even:-translate-x-4 md:odd:rotate-2 md:even:-rotate-1 md:even:flex-row-reverse gap-4 md:gap-12 items-center bg-white w-full max-w-3xl p-8 shadow-floating" |
| 24 | + > |
| 25 | + <div className="rounded-full bg-white size-28 md:size-40 relative flex items-center justify-center"> |
| 26 | + <img |
| 27 | + src={`/images/con/2026/cfp/${c.icon}.png`} |
| 28 | + className="rounded-full" |
| 29 | + alt="" |
| 30 | + /> |
| 31 | + <div className="size-[110%] absolute max-w-none bg-circle bg-no-repeat left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" /> |
| 32 | + </div> |
| 33 | + <div className="flex-1"> |
| 34 | + <p className="font-title text-lg text-blue font-extrabold mb-4 uppercase"> |
| 35 | + {c.title} |
| 36 | + </p> |
| 37 | + <div className="text-left flex flex-col gap-2"> |
| 38 | + {c.points.map((p, i) => ( |
| 39 | + <div key={i} className="flex flex-row items-baseline"> |
| 40 | + <span className="text-blue icon-circle-chevron-right mr-2" /> |
| 41 | + <p |
| 42 | + dangerouslySetInnerHTML={{ |
| 43 | + __html: p, |
| 44 | + }} |
| 45 | + /> |
| 46 | + </div> |
| 47 | + ))} |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + </div> |
| 51 | + ); |
| 52 | + })} |
| 53 | + </div> |
| 54 | + <Button |
| 55 | + className="mt-12" |
| 56 | + size="large" |
| 57 | + external |
| 58 | + to="https://conference-hall.io/api-platform-conference-2026-lille-and-online" |
| 59 | + > |
| 60 | + {t("2026.cfp.subject.button_subscribe")} |
| 61 | + </Button> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + ); |
| 65 | +} |
0 commit comments