similarly create a section to display my certifications with images , for now use some…
- User
similarly create a section to display my certifications with images , for now use some dummy online image links , and some dummy data, 6 certifications with image and beside that details regarding it like name etc issuing org must be displayed on the page , match the theme and ui must be amazing "// src/components/AchievementsList.js
import React, { useEffect } from 'react'; import { useStaticQuery, graphql } from 'gatsby'; import styled from 'styled-components'; import { srConfig } from '@config'; import sr from '@utils/sr'; import { usePrefersReducedMotion } from '@hooks';
// Styled Components
const StyledAchievementsSection = styled.section` max-width: 900px; margin: 0 auto; padding: 2rem 1rem; /* Reduced padding for compactness */
.heading { text-align: center; margin-bottom: 2rem; /* Reduced margin / font-size: 2rem; / Slightly smaller font size */ position: relative;
code&::after { content: ''; width: 50px; /* Slightly smaller line */ height: 3px; background: var(--green); display: block; margin: 0.5rem auto 0; border-radius: 2px; }} `;
const AchievementsList = styled.ul
list-style: none; padding: 0; margin: 0;;const AchievementItem = styled.li` background: var(--lightest-navy); margin-bottom: 0.75rem; /* Reduced margin / padding: 1rem 1.25rem; / Reduced padding */ border-radius: var(--border-radius); position: relative; transition: background 0.3s ease, box-shadow 0.3s ease; cursor: pointer; overflow: hidden;
&:hover, &:focus-within { background: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-left: 4px solid var(--green); }
.header { display: flex; justify-content: space-between; align-items: center;
code.title { font-size: var(--fz-md); font-weight: 600; color: var(--green); } .company { font-size: var(--fz-sm); color: var(--slate); }}
.range-location { display: flex; justify-content: space-between; margin-top: 0.25rem; /* Reduced margin */
code.range { font-size: var(--fz-sm); color: var(--light-slate); } .location { font-size: var(--fz-sm); color: var(--light-slate); }}
.description { margin-top: 0.5rem; /* Reduced margin */ font-size: var(--fz-sm); color: var(--light-slate); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
- Assistant