Skip to content

Commit

Permalink
⚡ Switch image format from PNG to WEBP to reduce file size
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Jul 19, 2024
1 parent 65a81d4 commit c3f081f
Show file tree
Hide file tree
Showing 30 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/App/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ showcase { flags } num page =
[ div [ class "column is-12 showcase" ]
[ article [ class "columns featured" ]
([ div [ class "column is-7 showcase-img" ]
[ img [ src <| interpolate "{0}{1}.png" [ flags.basePath, pageHash page ], width 450 ]
[ img [ src <| interpolate "{0}{1}.webp" [ flags.basePath, pageHash page ], width 450 ]
[]
]
, div [ class "column is-5 featured-content va" ]
Expand Down
8 changes: 4 additions & 4 deletions src/Page/About.elm
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ view (Model model) =
content =
[ { title = "Simple"
, text = "Fairly simple and understandable. Every showcase is implemented in a single elm file."
, img = "about-simple.png"
, img = "about-simple.webp"
}
, { title = "Exploratory"
, text = "Highlight some aspects of the elm language, like immutability, reactiveness, performance and interoperability with other JS libraries. Explore some architectural/design patterns around reactive static/serverless SPA."
, img = "about-exploratory.png"
, img = "about-exploratory.webp"
}
, { title = "Playable"
, text = "As much as possible, provides a useful and functional content."
, img = "about-playable.png"
, img = "about-playable.webp"
}
, { title = "Scalable"
, text = "The structure of the playground is designed to easily accommodate additional examples and showcases. Contributors can effortlessly expand the repository, ensuring it remains a relevant and up-to-date resource for learners and enthusiasts."
, img = "about-scalable.png"
, img = "about-scalable.webp"
}
]
in
Expand Down
Binary file removed static/about-exploratory.png
Binary file not shown.
Binary file added static/about-exploratory.webp
Binary file not shown.
Binary file removed static/about-playable.png
Binary file not shown.
Binary file added static/about-playable.webp
Binary file not shown.
Binary file removed static/about-scalable.png
Binary file not shown.
Binary file added static/about-scalable.webp
Binary file not shown.
Binary file removed static/about-simple.png
Binary file not shown.
Binary file added static/about-simple.webp
Binary file not shown.
Binary file removed static/about.png
Binary file not shown.
Binary file added static/about.webp
Binary file not shown.
Binary file removed static/asteroids.png
Binary file not shown.
Binary file added static/asteroids.webp
Binary file not shown.
Binary file removed static/calc.png
Binary file not shown.
Binary file added static/calc.webp
Binary file not shown.
Binary file removed static/dapp.png
Binary file not shown.
Binary file added static/dapp.webp
Binary file not shown.
Binary file removed static/digital-clock.png
Binary file not shown.
Binary file added static/digital-clock.webp
Binary file not shown.
Binary file removed static/lissajous.png
Binary file not shown.
Binary file added static/lissajous.webp
Binary file not shown.
Binary file removed static/maze.png
Binary file not shown.
Binary file added static/maze.webp
Binary file not shown.
Binary file removed static/physics-engine.png
Binary file not shown.
Binary file added static/physics-engine.webp
Binary file not shown.
Binary file removed static/sound-wave-toggle.png
Binary file not shown.
Binary file added static/sound-wave-toggle.webp
Binary file not shown.
Binary file removed static/term.png
Binary file not shown.
Binary file added static/term.webp
Binary file not shown.

0 comments on commit c3f081f

Please sign in to comment.