Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looking at the source code, I have never seen so many files for such a simple HTML page.


I 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/f46725d3e9e9d055da40b3de...


Really 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/d121ae5377a0d09b0133b7b0...


What were the main difficulties?


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


You have improved nothing.


Joke obviously lost on some…


I'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.


Surely a html web page and maybe 5 lines of JS could have accomplished the same thing?

Or am I missing something?


No. See lifthrasiir‘s answer above.


Astro[0]: wrong tool for this job.

https://astro.build/


I assume the author is good at quickly whipping stuff up with Astro, which makes it an excellent tool for the job.


Wtf, there's a great irony in this right here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: