File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3,29 +3,34 @@ import type { BestPractice } from '~/types';
33export const bestPractices : BestPractice [ ] = [
44 {
55 title : 'Before Coding' ,
6- meme : 'distracted-boyfriend.jpg' ,
6+ meme : 'distracted-boyfriend' ,
7+ ext : 'jpg' ,
78 caption :
89 'Developer looking at "New Feature" while ignoring "Existing Bugs"' ,
910 } ,
1011 {
1112 title : 'Pull Request Feedback' ,
12- meme : 'drake-hotline-bling.jpg' ,
13+ meme : 'drake-hotline-bling' ,
14+ ext : 'jpg' ,
1315 caption :
1416 'Drake rejecting "Messy Code" and approving "Clean, Refactored Code"' ,
1517 } ,
1618 {
1719 title : 'Daily Stand-up' ,
18- meme : 'hide-the-pain-harold.jpg' ,
20+ meme : 'hide-the-pain-harold' ,
21+ ext : 'jpg' ,
1922 caption : '"Finally fixed that bug!"' ,
2023 } ,
2124 {
2225 title : 'Retrospective' ,
23- meme : 'sus-fry.jpg' ,
26+ meme : 'sus-fry' ,
27+ ext : 'jpg' ,
2428 caption : '"Carrying over stories for the third sprint in a row"' ,
2529 } ,
2630 {
2731 title : 'Sprint Review' ,
28- meme : 'one-does-not-simply.jpg' ,
32+ meme : 'one-does-not-simply' ,
33+ ext : 'jpg' ,
2934 caption : 'Discussing "what is a story point" for the tenth time this month' ,
3035 } ,
3136] ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { bestPractices } from "~/memes/memes";
1919 class = " w-full h-64 object-cover rounded-lg shadow-lg mb-2"
2020 width = " 500"
2121 height = " 400"
22- src = { import (` ../memes/${item .meme } ` )}
22+ src = { import (` ../memes/${item .meme }.${ item . ext } ` )}
2323 alt = { item .title }
2424 />
2525 <div class = " text-xs italic mt-1" >{ item .caption } </div >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export interface IconDetails {
1313export interface BestPractice {
1414 title : string ;
1515 meme : string ;
16+ ext : 'jpg' | 'png' | 'svg' ;
1617 caption : string ;
1718}
1819
You can’t perform that action at this time.
0 commit comments