Add favicon and related assets #14
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
thayen/portfolio-site!14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added a favicon svg and an svg to generate app icons (in the unlikely event that someone saves it as an app).
Additionally added a script to automatically generate the requisite pngs for various platforms to avoid carrying the images themselves around in this repo.
NOTE: the SVGs are imperfect rn and will need to be edited later to be 'perfect'
Code Review
This pull request implements a comprehensive icon system, introducing SVG source files, a web manifest, and a shell script to generate various icon formats using ImageMagick. The site layout has been updated to reference these new assets, and a related TODO was removed. Feedback focuses on improving the robustness of the icon generation script by adding error handling and optimizing the apple-touch-icon size to reduce bandwidth usage on mobile devices.
@ -0,0 +1,15 @@#!/bin/bashIt is recommended to add
set -eto the script to ensure it exits immediately if any command (likemagick) fails. This prevents the script from continuing in an inconsistent state if ImageMagick is not installed or if an error occurs during icon generation.@ -8,7 +8,10 @@ const { title, description } = Astro.props;<html lang="en">The
apple-touch-iconis currently pointing to a 1024x1024 image. This is significantly larger than the standard 180x180 size recommended by Apple, leading to unnecessary bandwidth usage on mobile devices. Using the 192x192 version instead would be more efficient while still providing high quality for high-density displays.