News for hackers. Stuff that matters.
Re:Tell HN: I let my 6-year-old daughter design my website by toto444 on Tuesday February 15, 2022 @07:17AM (#30345473)
> 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

Re:Tell HN: I let my 6-year-old daughter design my website by merelysounds on Tuesday February 15, 2022 @09:02AM (#30346508)
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).

Re:Tell HN: I let my 6-year-old daughter design my website by memalign on Tuesday February 15, 2022 @01:23PM (#30350520)
I’ve been working on something similar - embedding pixel art as ASCII with some JavaScript to render it as images:

https://memalign.github.io/m/pceimage/index.html

Re:Tell HN: I let my 6-year-old daughter design my website by iFreilicht on Wednesday February 16, 2022 @01:58AM (#30357080)
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?
Re:Tell HN: I let my 6-year-old daughter design my website by memalign on Wednesday February 16, 2022 @05:36PM (#30366790)
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.

Re:Tell HN: I let my 6-year-old daughter design my website by burtekd on Tuesday February 15, 2022 @08:14AM (#30345951)
Pixelart images?? You sir have too much free time on your hands

Love the outcome though

Re:Tell HN: I let my 6-year-old daughter design my website by toto444 on Tuesday February 15, 2022 @08:18AM (#30345985)
The reason we write software is to save us time :-). The way I do it is :

- 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/

Re:Tell HN: I let my 6-year-old daughter design my website by burtekd on Tuesday February 15, 2022 @05:42PM (#30353883)
One word to sum this up: wow
Re:Tell HN: I let my 6-year-old daughter design my website by sandos on Tuesday February 15, 2022 @08:14AM (#30345952)
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.
Re:Tell HN: I let my 6-year-old daughter design my website by iply on Tuesday February 15, 2022 @05:55PM (#30354036)
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
Re:Tell HN: I let my 6-year-old daughter design my website by detaro on Tuesday February 15, 2022 @05:58PM (#30354064)
That it's only the HTML file, no external files (CSS, JS, images, ...) loaded/needed.
Re:Tell HN: I let my 6-year-old daughter design my website by iply on Tuesday February 15, 2022 @06:04PM (#30354134)
Got it. Thanks!