Lurker News
We 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

toto4445 replies#
> the page is entirely self-contained (except the favicon)

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

burtekd1 reply#
Pixelart images?? You sir have too much free time on your hands

Love the outcome though

burtekd#
One word to sum this up: wow
sandos#
I was wondering why the zoom was all wrong and I had to zoom out 2 steps. Turns out thats what happens when you use 125% ui scaling in windows 10.
merelysounds#
I also like self contained pages, especially how they simplify long term maintenance.

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).

iFreilicht1 reply#
Oh nice! Love that you color the characters in the editor appropriately as well, that makes working with it a lot easier. Would it be possible to have space be #00000000 by default?
memalign#
Thanks for trying this out! That’s a good idea! For now, you can manually specify “ :#00000000” in the top section.

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.

iply1 reply#
Excuse my ignorance. What does self-contained mean? I've seen a lot of people mentioning it but haven't been able to find a good source to read from and learn more about
detaro1 reply#
That it's only the HTML file, no external files (CSS, JS, images, ...) loaded/needed.
iply#
Got it. Thanks!