aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/images/responsive-image.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace ResponsiveImage with Figure componentArmand Philippot2023-11-111-91/+0
| | | | | | | | The styles applied to ResponsiveImage are related to the figure and figcaption elements. Those elements could be use with other contents than images. So I extracted them in a Figure component. The ResponsiveImage component is no longer useful: the consumer should use the Image component from `next` and wrap it in a link if needed.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-10/+6
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-1/+1
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: make Links and Images compliant with Next.js 13Armand Philippot2023-01-231-13/+9
|
* chore: use image title as figure label if no caption is providedArmand Philippot2022-06-071-2/+6
|
* chore: update images stylesArmand Philippot2022-05-201-1/+13
|
* chore: add a CV pageArmand Philippot2022-05-031-2/+4
|
* refactor: support React 18Armand Philippot2022-04-161-5/+5
| | | | | | | | I replaced the deprecated VFC type with FC type and made all children explicits. Formatjs is still not compatible with React 18 so I need to skip type checking when comitting. There are some type errors because of IntlProvider in Storybook stories.
* chore: add a Card componentArmand Philippot2022-04-131-1/+4
|
* chore: add a Summary componentArmand Philippot2022-04-121-2/+12
|
* refactor: use a consistent classname prop and avoid children propArmand Philippot2022-04-081-3/+3
| | | | | | | | I was using the FunctionComponent type for some component that do not use children. So I change the type to VoidFunctionComponent to avoid mistakes. I also rename all the "classes" or "additionalClasses" props to "className" to keep consistency between each components.
* chore: add a ResponsiveImage componentArmand Philippot2022-04-061-0/+68