Skip to content

Commit

Permalink
Use ADEME images as icons on cards, fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaburgan committed Oct 28, 2024
1 parent 8ad1e66 commit f2c5294
Show file tree
Hide file tree
Showing 204 changed files with 12,616 additions and 48 deletions.
12 changes: 5 additions & 7 deletions components/item-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ export default function ItemCard(props: Props) {
<header className={styles.top}>
<h2 className={styles.label}>{capitalize(item.label)}</h2>
</header>
<main
// className={styles.image}
// style={{
// backgroundImage: `url("${item.image}")`,
// }}
dangerouslySetInnerHTML={{__html: "<div>" + item.description + "</div><div>" + item.image + "</div>"}}
>
<main>
<div className={styles.description} dangerouslySetInnerHTML={{__html: item.description}}></div>
<div>
<img src={`./images/ademe/${item.id}.svg`} />
</div>
</main>
<div
className={classNames(styles.bottom, {
Expand Down
47 changes: 47 additions & 0 deletions public/images/ademe/abricot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions public/images/ademe/ail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions public/images/ademe/alimentationordinateur.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions public/images/ademe/alimentationsmartphone.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f2c5294

Please sign in to comment.