Second version of my personal website. luccaromaniello.com/
css personal-website bun tailwindcss portflio design typescript code ux-ui astro javascript
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

style: updates chips

+16 -7
+1 -1
src/components/content/ExperienceItem.astro
··· 50 50 </p> 51 51 ) 52 52 } 53 - <ChipGroup chips={experience.technologies} /> 53 + <ChipGroup chips={experience.technologies} variant="neutral" /> 54 54 </div> 55 55 </div> 56 56 <div class="relative hidden xl:flex flex-col items-center">
+12 -4
src/components/ui/Chip.astro
··· 1 1 --- 2 2 interface Props { 3 3 label: string; 4 + variant?: "primary" | "neutral"; 4 5 } 5 6 6 - const { label } = Astro.props; 7 + const { label, variant = "primary" } = Astro.props; 8 + 9 + const variantClasses = { 10 + primary: 11 + "bg-primary-light/3 text-primary shadow-[0_1px_0_0_rgba(174,30,95,0.15)]", 12 + neutral: "bg-white text-neutral-primary border border-neutral-primary/10", 13 + }; 7 14 --- 8 15 9 16 <span 10 - class="md:w-auto inline-block py-1 px-3 rounded-full 11 - text-xs text-center font-light tracking-wide bg-primary-light/3 text-primary 12 - shadow-[0_1px_0_0_rgba(174,30,95,0.15)]" 17 + class:list={[ 18 + "md:w-auto inline-block py-1 px-3 rounded-full text-xs text-center tracking-wide", 19 + variantClasses[variant], 20 + ]} 13 21 > 14 22 {label} 15 23 </span>
+3 -2
src/components/ui/ChipGroup.astro
··· 3 3 4 4 interface Props { 5 5 chips: string[]; 6 + variant?: "primary" | "neutral"; 6 7 } 7 8 8 - const { chips } = Astro.props; 9 + const { chips, variant = "primary" } = Astro.props; 9 10 --- 10 11 11 12 <div class="flex flex-row flex-wrap items-start gap-2 py-2 text-white"> 12 - {chips.map((chip) => <Chip label={chip} />)} 13 + {chips.map((chip) => <Chip label={chip} variant={variant} />)} 13 14 </div>