import Image from "next/image"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faMedal, faGraduationCap, faTrophy, faAward, faChevronDown, faChevronUp, } from "@fortawesome/free-solid-svg-icons"; import { motion, AnimatePresence } from "framer-motion"; import { useState } from "react"; import Me4 from "@/public/image/me4.jpeg"; function Wrapper({ children }) { return (
{children}
); } export default function Education() { const [isExpanded, setIsExpanded] = useState(false); const achievementsByYear = { 2025: [ { icon: faMedal, title: "1st place (Gold Medal)", subtitle: "Fesmaro IT Business Competition", date: "Apr 2025", color: "from-yellow-400 to-orange-500", }, ], 2024: [ { icon: faTrophy, title: "Special Award | Gold Medal | Incubation Opportunity", subtitle: "Indonesia Inventor Day 2024 (IID)", date: "Aug 2024", color: "from-yellow-400 to-orange-500", }, { icon: faMedal, title: "3rd place (Bronze Medal)", subtitle: "Student Digital Innovation Competition (LIDM)", date: "Jun 2024", color: "from-amber-600 to-yellow-600", }, { icon: faMedal, title: "3rd place (Bronze Medal)", subtitle: "Fesmaro UI/UX Design", date: "Jun 2024", color: "from-amber-600 to-yellow-600", }, ], 2023: [ { icon: faAward, title: "Finalist", subtitle: "36th National Student Science Week (PIMNAS)", date: "Nov 2023", color: "from-blue-500 to-purple-600", }, { icon: faMedal, title: "3rd place (Bronze Medal)", subtitle: "FORKAFEST 3.0 Web Development competition", date: "Jan 2023", color: "from-amber-600 to-yellow-600", }, ], }; // Flatten all achievements into a single array for easier limiting const allAchievements = Object.entries(achievementsByYear) .sort(([a], [b]) => parseInt(b) - parseInt(a)) .flatMap(([year, achievements]) => achievements.map((achievement) => ({ ...achievement, year })) ); const visibleAchievements = isExpanded ? allAchievements : allAchievements.slice(0, 4); const hasMoreAchievements = allAchievements.length > 4; return (
{" "} {/* Header */}

Education

Get to know more about my educational background.

{/* Main Content */}
{/* Education Section - Left */}
2022 - Present

Universitas Negeri Malang

S1 Teknik Informatika | Computer Science

University
University
University

Aspiring to be a software engineer, I am currently pursuing a bachelor's degree in computer science at Universitas Negeri Malang. Fascinated by the world of technology, I am eager to learn and explore new things in the field of computer science.

GPA: 3.9 out of 4
{" "} {/* Achievements Section - Right */}

Achievements

Some of my achievements during my study.

{/* Achievements Container with transparent bottom effect */}
{/* Show visible achievements */} {visibleAchievements.map((achievement, index) => ( {/* Year indicator for first achievement of each year */} {index === 0 || visibleAchievements[index - 1]?.year !== achievement.year ? (
{achievement.year}
) : null} {/* Glassmorphism achievement card with monochrome to color effect */}

{achievement.title}

{achievement.subtitle}

{achievement.date}
))}
{/* Transparent bottom overlay when not expanded */} {!isExpanded && hasMoreAchievements && (
)} {/* Expand/Collapse Button */} {hasMoreAchievements && ( )}
); }