diff --git a/public/images/achievements/ioai-winner.png b/public/images/achievements/ioai-winner.png new file mode 100644 index 0000000..b9d3094 Binary files /dev/null and b/public/images/achievements/ioai-winner.png differ diff --git a/src/components/Achievements/LatestAchievements.astro b/src/components/Achievements/LatestAchievements.astro new file mode 100644 index 0000000..bef7484 --- /dev/null +++ b/src/components/Achievements/LatestAchievements.astro @@ -0,0 +1,161 @@ +--- +import type { LatestAchievement } from "@/data/achievements"; +import styles from "./LatestAchievements.module.css"; + +interface Props { + achievements: LatestAchievement[]; +} + +const { achievements } = Astro.props; +--- + + + LATEST ACHIEVEMENTS + + + + + + + + + + + { + achievements.map((item, idx) => ( + + + {item.showOverlay !== false && ( + + {item.award} + {item.title} + + )} + + )) + } + + + + + + + + + + + + + + {achievements[0]?.teamName} + + + { + achievements[0]?.members.map((member) => ( + {member} + )) + } + + + + + + {achievements[0]?.description} + + + + + + + diff --git a/src/components/Achievements/LatestAchievements.module.css b/src/components/Achievements/LatestAchievements.module.css new file mode 100644 index 0000000..de13c49 --- /dev/null +++ b/src/components/Achievements/LatestAchievements.module.css @@ -0,0 +1,239 @@ +.latest_section { + width: 100%; + display: flex; + flex-direction: column; + align-items: flex-start; +} + +.heading { + font-family: inherit; + font-size: clamp(2rem, 4.5vw, 3.25rem); + font-weight: 900; + font-style: italic; + letter-spacing: -0.02em; + text-transform: uppercase; + color: var(--fg-text-normal); + margin: 0; + margin-block-end: 1.75rem; + line-height: 1.15; + text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9); +} + +/* ── Carousel Track Bar ── */ +.carousel_bar { + position: relative; + width: 100%; + border-radius: var(--border-radius-3); + background: var(--glass-bg); + border: var(--glass-border); + backdrop-filter: var(--glass-blur); + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); + display: grid; + grid-template-columns: auto minmax(0, 1fr) auto; + align-items: center; + gap: clamp(0.5rem, 2vw, 1.5rem); + padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem); + min-height: clamp(220px, 28vw, 300px); + box-sizing: border-box; +} + +.nav_button { + background: transparent; + border: none; + color: var(--fg-text-normal); + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + padding: 0.75rem; + border-radius: 50%; + transition: + transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), + color 0.2s ease, + background-color 0.2s ease; + z-index: 5; + user-select: none; + -webkit-tap-highlight-color: transparent; +} + +.nav_button:hover { + transform: scale(1.15); + background: rgba(255, 255, 255, 0.12); +} + +.nav_button:active { + transform: scale(0.95); +} + +.nav_icon { + width: clamp(20px, 2.5vw, 32px); + height: clamp(20px, 2.5vw, 32px); + fill: currentColor; +} + +/* ── Center Card Container ── */ +.cards_viewport { + position: relative; + justify-self: center; + width: 100%; + max-width: clamp(260px, 36vw, 440px); + aspect-ratio: 16 / 10; + z-index: 3; +} + +.slide_card { + position: absolute; + inset: 0; + border-radius: 24px; + overflow: hidden; + box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75); + border: 1px solid rgba(255, 255, 255, 0.2); + background: var(--bg-frame); + opacity: 0; + pointer-events: none; + transform: scale(0.94); + transition: + opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), + transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); +} + +.slide_card[data-active="true"] { + opacity: 1; + pointer-events: auto; + transform: scale(1); +} + +.card_image { + width: 100%; + height: 100%; + object-fit: cover; + display: block; +} + +.card_overlay { + position: absolute; + inset: 0; + background: linear-gradient( + to bottom, + rgba(0, 0, 0, 0.35) 0%, + transparent 40%, + rgba(0, 0, 0, 0.75) 100% + ); + display: flex; + flex-direction: column; + justify-content: space-between; + padding: clamp(0.75rem, 1.5vw, 1.25rem); + box-sizing: border-box; + pointer-events: none; +} + +.card_award { + align-self: flex-end; + font-family: inherit; + font-size: clamp(1.05rem, 1.8vw, 1.5rem); + font-weight: 900; + font-style: italic; + letter-spacing: -0.01em; + text-transform: uppercase; + color: var(--fg-text-normal); + text-shadow: + 0 2px 10px rgba(0, 0, 0, 0.9), + 0 0 20px rgba(0, 0, 0, 0.7); +} + +.card_title { + align-self: center; + font-family: inherit; + font-size: clamp(1rem, 1.6vw, 1.35rem); + font-weight: 900; + letter-spacing: -0.01em; + color: var(--fg-text-normal); + text-align: center; + text-shadow: + 0 2px 12px rgba(0, 0, 0, 0.95), + 0 0 24px rgba(0, 0, 0, 0.85); +} + +/* ── Details Row (Team + Description) ── */ +.details_row { + display: grid; + grid-template-columns: 1fr 1.65fr; + gap: clamp(1.5rem, 4vw, 3.5rem); + width: 100%; + margin-block-start: clamp(2rem, 4vh, 3rem); + box-sizing: border-box; +} + +.team_col { + display: flex; + flex-direction: column; +} + +.team_name { + font-family: inherit; + font-size: clamp(1.2rem, 1.8vw, 1.55rem); + font-weight: 800; + letter-spacing: -0.01em; + color: var(--fg-text-normal); + margin: 0; + margin-block-end: 0.65rem; +} + +.member_list { + list-style: decimal; + margin: 0; + padding-left: 1.25rem; + display: flex; + flex-direction: column; + gap: 0.25rem; +} + +.member_item { + font-family: inherit; + font-size: clamp(0.88rem, 1.2vw, 0.98rem); + line-height: 1.6; + color: rgba(255, 255, 255, 0.9); +} + +.desc_col { + display: flex; + flex-direction: column; + justify-content: flex-start; +} + +.description_text { + font-family: inherit; + font-size: clamp(0.85rem, 1.15vw, 0.95rem); + line-height: 1.65; + color: rgba(255, 255, 255, 0.85); + margin: 0; +} + +/* ── Responsive Mobile/Tablet ── */ +@media (max-width: 768px) { + .carousel_bar { + min-height: 220px; + padding-inline: 0.25rem; + gap: 0.25rem; + } + + .nav_button { + padding: 0.25rem; + } + + .nav_icon { + width: 16px; + height: 16px; + } + + .details_row { + grid-template-columns: 1fr; + gap: 1.25rem; + margin-block-start: 1.75rem; + } + + .heading { + font-size: min(8.5vw, 3.25rem); + margin-block-end: 1.25rem; + } +} diff --git a/src/components/Achievements/YearlyAchievements.astro b/src/components/Achievements/YearlyAchievements.astro new file mode 100644 index 0000000..f41e967 --- /dev/null +++ b/src/components/Achievements/YearlyAchievements.astro @@ -0,0 +1,47 @@ +--- +import type { YearGroup } from "@/data/achievements"; +import styles from "./YearlyAchievements.module.css"; + +interface Props { + yearGroups: YearGroup[]; +} + +const { yearGroups } = Astro.props; +--- + + + YEARLY ACHIEVEMENTS + + { + yearGroups.map((group) => ( + + {group.year} + + + {group.items.map((item) => ( + + + + + + + + {item.title} + + ))} + + + )) + } + diff --git a/src/components/Achievements/YearlyAchievements.module.css b/src/components/Achievements/YearlyAchievements.module.css new file mode 100644 index 0000000..3cf67bb --- /dev/null +++ b/src/components/Achievements/YearlyAchievements.module.css @@ -0,0 +1,135 @@ +.yearly_section { + width: 100%; + display: flex; + flex-direction: column; + align-items: flex-start; +} + +.heading { + font-family: inherit; + font-size: clamp(2rem, 4.5vw, 3.25rem); + font-weight: 900; + font-style: italic; + letter-spacing: -0.02em; + text-transform: uppercase; + color: var(--fg-text-normal); + margin: 0; + margin-block-start: clamp(3.5rem, 6vh, 5.5rem); + margin-block-end: 2rem; + line-height: 1.15; + text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9); +} + +.year_group { + display: flex; + flex-direction: column; + width: 100%; + margin-block-end: clamp(2rem, 4vh, 3.25rem); +} + +.year_label { + font-family: inherit; + font-size: clamp(1.85rem, 3.2vw, 2.5rem); + font-weight: 900; + color: var(--fg-text-normal); + margin: 0; + margin-block-end: 1.25rem; + letter-spacing: -0.02em; + text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8); +} + +.cards_grid { + display: grid; + grid-template-columns: repeat(5, 1fr); + gap: clamp(0.75rem, 1.4vw, 1.25rem); + width: 100%; +} + +.card { + background: var(--bg-card-light); + border-radius: clamp(16px, 1.8vw, 24px); + aspect-ratio: 1 / 1; + display: flex; + flex-direction: column; + justify-content: flex-end; + align-items: center; + padding: clamp(0.75rem, 1.2vw, 1.25rem) clamp(0.5rem, 1vw, 0.85rem); + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); + border: 1px solid rgba(255, 255, 255, 0.6); + transition: + transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), + box-shadow 0.25s ease; + position: relative; + overflow: hidden; + user-select: none; + cursor: pointer; +} + +.card:hover { + transform: translateY(-5px); + box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); +} + +.card_placeholder { + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + width: 100%; +} + +.card_icon { + width: clamp(28px, 3.5vw, 42px); + height: clamp(28px, 3.5vw, 42px); + color: var(--fg-icon-muted); + transition: + color 0.25s ease, + transform 0.25s ease; +} + +.card:hover .card_icon { + color: var(--accent-gold-deep); + transform: scale(1.12); +} + +.card_title { + font-family: inherit; + font-size: clamp(0.72rem, 0.95vw, 0.88rem); + font-weight: 700; + color: var(--fg-text-inverse); + text-align: center; + line-height: 1.25; + margin: 0; + word-break: break-word; +} + +/* ── Responsive Grid ── */ +@media (max-width: 1024px) { + .cards_grid { + grid-template-columns: repeat(4, 1fr); + } +} + +@media (max-width: 768px) { + .cards_grid { + grid-template-columns: repeat(3, 1fr); + gap: 0.75rem; + } + + .heading { + font-size: min(8.5vw, 3.25rem); + margin-block-start: 2.75rem; + margin-block-end: 1.5rem; + } + + .year_label { + margin-block-end: 0.85rem; + } +} + +@media (max-width: 480px) { + .cards_grid { + grid-template-columns: repeat(2, 1fr); + gap: 0.65rem; + } +} diff --git a/src/data/achievements.ts b/src/data/achievements.ts new file mode 100644 index 0000000..50d9737 --- /dev/null +++ b/src/data/achievements.ts @@ -0,0 +1,116 @@ +export interface LatestAchievement { + id: string; + title: string; + award: string; + image: string; + teamName: string; + members: string[]; + description: string; + showOverlay?: boolean; +} + +export interface YearlyAchievement { + id: string; + title: string; + award?: string; + year: number; +} + +export interface YearGroup { + year: number; + items: YearlyAchievement[]; +} + +export const latestAchievements: LatestAchievement[] = [ + { + id: "ioai-2024", + title: "Lomba Lorem Ipsum", + award: "JUARA 1", + image: "/images/achievements/ioai-winner.png", + teamName: "Team Lorem Ipsum", + members: [ + "Lorem IK'26", + "Ipsum IK KKI'26", + "Dolor SI'26", + "Sit Amet AI'26", + ], + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", + showOverlay: false, // ioai-winner.png already incorporates the Figma artwork typography + }, + { + id: "icpc-2024", + title: "ICPC Regional Asia", + award: "JUARA 1", + image: "/images/achievements/ioai-winner.png", + teamName: "Team Lorem Ipsum 2", + members: [ + "Alpha IK'26", + "Beta IK'26", + "Gamma SI'26", + "Delta AI'26", + ], + description: + "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", + showOverlay: true, + }, + { + id: "gemastik-2024", + title: "Gemastik Divisi UX", + award: "JUARA 1", + image: "/images/achievements/ioai-winner.png", + teamName: "Team Lorem Ipsum 3", + members: [ + "Prada SI'26", + "Sigma IK'26", + "Omega AI'26", + "Zeta KKI'26", + ], + description: + "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", + showOverlay: true, + }, +]; + +export const yearlyAchievementsByYear: YearGroup[] = [ + { + year: 2030, + items: Array.from({ length: 15 }, (_, i) => ({ + id: `2030-${i + 1}`, + title: "Lomba Lorem Ipsum", + year: 2030, + })), + }, + { + year: 2029, + items: Array.from({ length: 10 }, (_, i) => ({ + id: `2029-${i + 1}`, + title: "Lomba Lorem Ipsum", + year: 2029, + })), + }, + { + year: 2028, + items: Array.from({ length: 10 }, (_, i) => ({ + id: `2028-${i + 1}`, + title: "Lomba Lorem Ipsum", + year: 2028, + })), + }, + { + year: 2027, + items: Array.from({ length: 5 }, (_, i) => ({ + id: `2027-${i + 1}`, + title: "Lomba Lorem Ipsum", + year: 2027, + })), + }, + { + year: 2026, + items: Array.from({ length: 5 }, (_, i) => ({ + id: `2026-${i + 1}`, + title: "Lomba Lorem Ipsum", + year: 2026, + })), + }, +]; diff --git a/src/images/achievements/ioai-winner.png b/src/images/achievements/ioai-winner.png new file mode 100644 index 0000000..b9d3094 Binary files /dev/null and b/src/images/achievements/ioai-winner.png differ diff --git a/src/pages/achievements/index.astro b/src/pages/achievements/index.astro index 92a1b93..1787e2e 100644 --- a/src/pages/achievements/index.astro +++ b/src/pages/achievements/index.astro @@ -3,11 +3,26 @@ import "@styles/global.css"; import BaseLayout from "@layouts/BaseLayout.astro"; import { Strings } from "@/strings"; import { RootRoutes } from "@/routes"; +import { + latestAchievements, + yearlyAchievementsByYear, +} from "@/data/achievements"; +import LatestAchievements from "@/components/Achievements/LatestAchievements.astro"; +import YearlyAchievements from "@/components/Achievements/YearlyAchievements.astro"; +import styles from "./index.module.css"; const title = `${Strings.SlugTitles.Achievements} - ${Strings.SiteTitle}`; --- - {Strings.SlugTitles.Achievements} - Coming soon... + + + + + + diff --git a/src/pages/achievements/index.module.css b/src/pages/achievements/index.module.css new file mode 100644 index 0000000..bef600c --- /dev/null +++ b/src/pages/achievements/index.module.css @@ -0,0 +1,29 @@ +.achievements_page { + --glass-bg: rgba(0, 0, 0, 0.44); + --glass-border: 1px solid rgba(255, 255, 255, 0.18); + --glass-blur: blur(var(--blur-radius)); + + width: 100%; + max-width: 1100px; + margin-inline: auto; + padding-inline: max(2rem, 5vw); + padding-block-start: 120px; + padding-block-end: 120px; + display: flex; + flex-direction: column; + box-sizing: border-box; + animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); + position: relative; + min-height: 100vh; +} + +@keyframes fadeIn { + from { + opacity: 0; + transform: translateY(12px); + } + to { + opacity: 1; + transform: translateY(0); + } +} diff --git a/src/styles/colors.css b/src/styles/colors.css index 706fee8..727b342 100644 --- a/src/styles/colors.css +++ b/src/styles/colors.css @@ -1,14 +1,22 @@ :root { --accent-blue: #0011ff; --accent-red: #ff0000; + --accent-gold: #f59e0b; + --accent-gold-deep: #b45309; --accent-blue-lighter: color-mix(in oklch, var(--accent-blue), white 25%); --accent-red-lighter: color-mix(in oklch, var(--accent-red), white 25%); --fg-text-normal: white; + --fg-text-inverse: #000000; + --fg-icon-muted: #64748b; --bg-grad-overlay-start: black; --bg-grad-overlay-end: rgba(0, 0, 0, 0.25); + --bg-page-deep: #030007; + --bg-frame: #0b0f19; + --bg-card-light: #ffffff; + --bg-boardwall: #fff697; }
+ {achievements[0]?.description} +
{item.title}
Coming soon...