ClimateTown / knowledge-hub

Your one-stop shop in the fight against climate change, containing important climate resources you wish you knew about yesterday.
https://hub.climatetownproductions.com
Creative Commons Attribution 4.0 International
35 stars 25 forks source link

[OVERHAUL] Ambitious site overhaul (into Svelte) #25

Closed VeckoTheGecko closed 1 year ago

VeckoTheGecko commented 1 year ago

There are some pain points with the current implementation of the website in Hugo using the Hugo Learn theme. Although the theme provides good styling out the box, that's pretty much all it is doing in our favour as it isn't well tailored to our purposes. The website being built isn't really a blog (at least, not in this iteration; and likely not in any future iteration) so the choice of Hugo (and this theme) is a bit suspect. "Learning the theme" is also really annoying, as it doesn't leave much room for customisation and any customisation comes through the TOML by setting specific variables.

Two of the main core features of the website (#15 and #24) are fundamentally web applications. I feel that the integration of a UI framework would provide tangible benefit and would make the development of these applications easier as well as easier to maintain.

Describe your suggested improvement For these issues, I intend to use Svelte as the UI framework to develop these applications easily (as from what I have seen it is really intuitive and a pleasure to work in; video).

Although I think that Svelte can be directly integrated into Hugo, I think migrating accross to Svelte-kit would also be beneficial. This is a more intuitive approach for the server component, and would provide much more flexibility for the development of features that are outside the more rigid "blog-like" confines that are Hugo.

The drawback with all this would be that the styling would need to be done up from scratch, however I'm sure that Tailwind (or other "batteries included" styling approaches will result in a really good looking website).

Would you be capable/willing to implement the improvement? ¯\(ツ)/¯ I sure hope so. I've heard Svelte is really fun, so it'll be a good time either way

VeckoTheGecko commented 1 year ago

https://youtu.be/O0mNU0maItY

VeckoTheGecko commented 1 year ago

Closed with merging of #42 and #44