|
| 1 | +import type { Meta, StoryObj } from '@storybook/react-vite'; |
| 2 | + |
| 3 | +import { PortfolioList } from './PortfolioList'; |
| 4 | + |
| 5 | +import bcuImg from '../assets/bcu-screenshot.svg'; |
| 6 | +import imgStyling from '../assets/styling.png'; |
| 7 | +import imgTheming from '../assets/theming.png'; |
| 8 | + |
| 9 | +const meta = { |
| 10 | + title: 'jorgecalderon.codes/Modules/Portfolio List', |
| 11 | + component: PortfolioList, |
| 12 | + parameters: { |
| 13 | + layout: 'fullscreen', |
| 14 | + backgrounds: { |
| 15 | + default: 'charcoal', |
| 16 | + values: [{ name: 'charcoal', value: '#2D2D2D' }], |
| 17 | + }, |
| 18 | + }, |
| 19 | + tags: ['autodocs'], |
| 20 | +} satisfies Meta<typeof PortfolioList>; |
| 21 | + |
| 22 | +export default meta; |
| 23 | +type Story = StoryObj<typeof meta>; |
| 24 | + |
| 25 | +const sampleProjects = [ |
| 26 | + { |
| 27 | + title: 'Blood Cancer United', |
| 28 | + type: 'Full-Time Role', |
| 29 | + description: |
| 30 | + 'The digital platform for Blood Cancer United, supporting patients and families through research, financial assistance, and advocacy resources. Built on Drupal, serving millions of visitors annually.', |
| 31 | + imageSrc: bcuImg, |
| 32 | + imageAlt: 'Blood Cancer United website homepage', |
| 33 | + buttonLabel: 'Visit Site', |
| 34 | + buttonHref: 'https://bloodcancerunited.org/', |
| 35 | + }, |
| 36 | + { |
| 37 | + title: 'jorgecalderon.codes', |
| 38 | + type: 'Personal Project', |
| 39 | + description: |
| 40 | + 'A component-driven personal website built with React, TypeScript, and Storybook. Every component is designed, documented, and tested inside Storybook before integration.', |
| 41 | + imageSrc: imgStyling, |
| 42 | + imageAlt: 'jorgecalderon.codes in Storybook', |
| 43 | + buttonLabel: 'View Source', |
| 44 | + buttonHref: 'https://github.com/jorgecalderon', |
| 45 | + }, |
| 46 | + { |
| 47 | + title: 'Enterprise CMS Platform', |
| 48 | + type: 'Client Project', |
| 49 | + description: |
| 50 | + 'A headless Drupal architecture powering a multi-site content platform with custom modules, automated deployments, and performance-tuned infrastructure on AWS.', |
| 51 | + imageSrc: imgTheming, |
| 52 | + imageAlt: 'Enterprise CMS dashboard', |
| 53 | + }, |
| 54 | +]; |
| 55 | + |
| 56 | +export const Default: Story = { |
| 57 | + render: () => ( |
| 58 | + <PortfolioList |
| 59 | + heading={ |
| 60 | + <> |
| 61 | + <span className="portfolio-list__heading-accent">More</span>{' '} |
| 62 | + <span className="portfolio-list__heading-light">Projects.</span> |
| 63 | + </> |
| 64 | + } |
| 65 | + projects={sampleProjects} |
| 66 | + /> |
| 67 | + ), |
| 68 | + args: { |
| 69 | + projects: sampleProjects, |
| 70 | + }, |
| 71 | +}; |
| 72 | + |
| 73 | +export const NoHeading: Story = { |
| 74 | + args: { |
| 75 | + projects: sampleProjects, |
| 76 | + }, |
| 77 | +}; |
0 commit comments