News for hackers. Stuff that matters.
Re:Ask HN: How do you make sure your servers are up as a sin... by apankrat on Wednesday November 06, 2019 @04:30PM (#21467590)
Indeedly!

Very clean and simple, but not trivial or bare. Really good job, jmstfv.

Re:Ask HN: How do you make sure your servers are up as a sin... by vmurthy on Wednesday November 06, 2019 @07:32PM (#21469212)
From this link [0], it appears that the site uses Netlify. I'd love for the OP to point us in the direction of the theme and/or setup details as I am fairly new to Netlify

[0]https://tryhexadecimal.com/costs

Re:Ask HN: How do you make sure your servers are up as a sin... by jmstfv on Thursday November 07, 2019 @03:58AM (#21471570)
It is just static HTML and CSS files, with sprinkles of JS when necessary. I don't like using third-party frameworks or themes because they tend to get in my way. I designed it all from scratch.

I've been experimenting with functional (atomic) CSS lately and built a small framework that ended up using in Hexadecimal (if you peek at the source code, you can see weird classes like m-0, p-0, etc..). I liked it, but one should be careful in not overusing it, otherwise, it is an unmaintainable mess, yet again.

Below, I linked my Netlify config [0]. My static files live in the src/ folder, so you should probably change that if you have them in a different folder. If you don't know what Content-Security-Policy (CSP) or Strict-Transport-Security (HSTS) headers do, leave them out. It is easy to shoot yourself in the foot if you don't know what you're doing.

[0] https://privatebin.net/?c794ba90771f6e10#GSnJJ3dnd5r3ZDGgi9R...