4 ms·
Looking at the source code, I have never seen so many files for such a simple HTML page.
by edweis 2y ago
Looking at the source code, I have never seen so many files for such a simple HTML page.
- abdusco 2y agoAstro[0]: wrong tool for this job. https://astro.build/ https://astro.build/
- skrebbel 2y agoI assume the author is good at quickly whipping stuff up with Astro, which makes it an excellent tool for the job.
- rpigab 2y agoI'd advise a complete rewrite of Astro to Rust+WASM, then add most of what Angular does inside the framework, then usenothing will benefit from it.
- lifthrasiir 2y agoI was also quite surprised, and I took a bit of challenge to make it a single file that faithfully reproduces the exact behavior and embeds all dependencies including the web font, besides from Inter which is only used for toasts and barely distinguishable from Arial in this context. It weighs 3,123 bytes without the specifically subsetted font which takes additional 10,433 bytes. https://gist.github.com/lifthrasiir/f46725d3e9e9d055da40b3de4b3a3232 https://gist.github.com/lifthrasiir/f46725d3e9e9d055da40b3de...
- deleted 2y ago[deleted]
- archargelod 2y agoReally cool. I know almost nothing about web dev, but that looked like a nice quick challenge. So I spent maybe 20 minutes to get it 90% there. It's missing a portion of text below the timer and a toast. 1948 bytes https://gist.github.com/Archargelod/d121ae5377a0d09b0133b7b016973a1b https://gist.github.com/Archargelod/d121ae5377a0d09b0133b7b0...
- alex_suzuki 2y agoYou have improved nothing.
- alex_suzuki 2y agoJoke obviously lost on some…
- Gooblebrai 2y agoWhat were the main difficulties?
- lifthrasiir 2y agoImplementing absolutely everything, because I wasn't sure which part was intentional or not. My version even replicates some bugs and subtle behaviors: for example the toast animation lasts 5 seconds, which is measured from the beginning of fade-in animation to the beginning of fade-out animation.
- noobermin 2y agoWtf, there's a great irony in this right here.
- jonwinstanley 2y agoSurely a html web page and maybe 5 lines of JS could have accomplished the same thing? Or am I missing something?
- alex_suzuki 2y agoNo. See lifthrasiir‘s answer above.