r/webdev • u/thdr76 • Aug 26 '23
Showoff Saturday I coded a site from zero without any libraries, it contain review of 288 item in single page, the site size just 270KB (all assets & images included).
591
Upvotes
90
u/thdr76 Aug 26 '23 edited Aug 26 '23
obviously the font & icons are not by me, but other than that, everything is from scratch.
it also doesn't use database but instead using json file to build the html, most are server render but client can render the list too from the same data, (load more & expand is render on client).
for why, because it's my personal project. I'm tired from coding bloated software for companies.
22
u/sir_bok Aug 26 '23
You might want to add this to your page
It disables double-click-to-select (you can still hold mousedown and select) so that if people rapidly open and close the drawers, the text inside doesn't get selected. You can see this effect on desktop by simply opening and closing the same drawer multiple times, the text inside ends up getting selected which can be annoying.
5
u/[deleted] Aug 26 '23
That's a lot of divs. Is there a reason you didn't want to use semantic HTML tags?
21
u/[deleted] Aug 26 '23
Why would you need a library for anything you've shown in the first place?
2
u/cyanawesome Aug 26 '23
Nice, I'd probably change the "focus" yellow border to an outline so it doesn't trigger a reflow of the layout that causes a slight stutter. Also consider using a toggled class on the element instead of using style attributes.
103
u/akmalkun Aug 26 '23
Wow fast and clean, kudos.
47
u/thoughtjester Aug 26 '23
Nice work, link for those who want to see more:
https://everythingmoe.com/
21
u/al_jakobsson Aug 26 '23
Nice job, dude.
11
u/mherchel Aug 26 '23
Looks great and +💯 on the focus on web performance!
5
u/FalconMasters Aug 26 '23
UI looks so good
14
u/JacquesHRSolutions Aug 26 '23
An accessibility checker would tell you that your website is WILDLY inaccessible. Over 1000 failures and recommendations at the AA level. Please fix. You are a building with absolutely no sidewalks, ramps, or appropriate signage.
4
u/brunofin Aug 26 '23
Vanilla JS and CSS are actually pretty neat and more powerful than most think today.
1
u/[deleted] Aug 26 '23
Wow. What's the backend structure?
1
u/bbbbbbbbbbybbbtbtb Aug 27 '23
This is great, but how much time did it take to make? How much time do you think you'd need if using some kind of framework? I'm just curious about comparison and your evaluation, not trying to start vanilla vs frameworks war
3
u/_oct0ber_ Aug 26 '23
Awesome job! This is something I can see myself and others actually using.
3
u/FenixR Aug 26 '23
Been a while since i saw just ONE script on noscript list lol
1
u/apeacezalt Aug 26 '23
Sorry but what IDE/editor is this? Maybe I would try that
2
u/elendee Aug 27 '23
the no-framework revolution is here !! I approve :) I'm currently working on a Goodreads clone in the same style.
2
u/HyFinated Aug 27 '23 edited Aug 27 '23
And now you have a visitor that has bookmarked your site. Great job, and exactly in my niche.
Feature suggestion: a toggle switch up top to force the links to open in a new tab instead. Easy enough to not worry about, but could be fun.
1
u/[deleted] Aug 26 '23
Looks nice :))
1
u/lsaz front-end Aug 26 '23
Awesome, this is what frontend should be like, simple styles that do what they are supposed to do while being a nice eye candy.
1
u/LiamBox Aug 26 '23
Reminds me of the index https://theindex.moe
Your design is oddly familair tho
1
u/jaded-potato Aug 26 '23
Kudos for keeping things simple!
1
u/alexvanr88 Aug 27 '23
🤔I’d like to learn this….JavaScript…🤔
1
u/moderatorrater Aug 27 '23
Looks like a fun exercise. I would still use libraries, but this is stinkin' awesome.
1
u/Monstermage Aug 27 '23
Good job, how it should be
1
u/alearroyodelaluz Aug 27 '23
Amazing work man! How long did it take you to build it if I may ask?
1
u/armahillo rails Aug 28 '23
As someone who's been writing HTML since 1995 -- this is how we used to do it. Well done. :100:
-16
u/[deleted] Aug 26 '23
This is how stuff was built before frameworks..😬 I can't imagine trying to update it in a few months when you forget how it works. Also, why would you build it from scratch? Do you have something against frameworks?
-5
u/mattc0m Aug 26 '23
Nice! What library did you use?
-7
u/Lolly2255 Aug 26 '23
All i can see is you wasted your time👎
-35
u/software-lover Aug 26 '23
What you think you’re better than us or something?
-6
u/superquanganh Aug 26 '23
If you post this a few years ago, people will attack you "wHy NoT uSinG a FrAmEwOrK"