Tell HN: I let my 6-year-old daughter design my website
923 pointsWe had some free time during the Chinese New Year vacation (we live in Taiwan). So I thought it would be fun to work with my daughter on a little web project.
She did all the drawings. I digitized them and added them to the page as inline SVGs. Then I wrote the code. Nothing fancy — it's just one HTML page with a few links. But I like the end result (yes, I'm 100% biased): https://kevin.tw
Fun technical facts: the page is entirely self-contained (except the favicon). It doesn't have any JavaScript at all. And it weighs 35Kb total (52Kb if you include the favicon).
Comments (182) 88 threads
Show all comments
Showing thread 7 of 88
I have made a self contained page as well a few days ago. This is oddly satisfying. I use pixel art to make the illustrations (it's all CSS though).
If you want to take a look at it : https://drdru.github.io/pixel_art_book/pixel-art(1).html
Love the outcome though
- download (free) video game tiles
- upload them to https://www.pixelartcss.com/ to turn them into CSS
- use this tool (kindly made by thecodingfox a few days ago) to place the tiles on a grid and create the whole image from the CSS returned by pixelartcss : https://www.thecodingfox.com/interactive/pixel-world-editor/
For images I do a different hack, I encode images to base64 and embed them via CSS `background: url('data:image/jpeg;base64,/...')`, or img src. The base64 encoding is not very efficient though, so I wouldn't do this for larger images.
Example: https://merely.xyz (page background has a subtle "concrete" pattern).
https://memalign.github.io/m/pceimage/index.html
One reason I’ve been using “.” as the background in my own PCEImages so far is so it’s easy to see that all the lines are the right width.