18
submitted 1 week ago* (last edited 1 week ago) by _hovi_@lemmy.world to c/rust@programming.dev

Hey all, just sharing a small, single-page site I built using Leptos + TailwindCSS, mainly intended as a demo for an API I built using Axum. Hope someone also finds it interesting!

I'm sharing this site and not the API itself cause I figure it's easier to look at and understand, but if you want to roast some code I would appreciate any feedback you have on the API itself (repo here). Trying to leave the front end developer scene so this is the first API I've tried building, fairly basic but it was fun (I am a big Civ V fan - I hear it's inspired by some niche thing called human history?).

Edit: whoops, looks like the link didn't get set cause I put an image - the site is available here, and the repo for it is here. The live API is available here

top 2 comments
sorted by: hot top controversial new old
[-] Deebster@programming.dev 2 points 1 week ago

How did you find Leptos to work with? I never got further than the tutorial so I have yet to form a real opinion on it.

[-] _hovi_@lemmy.world 3 points 1 week ago

To be completely honest, I probably won't use it again, at least for a while. While it's nice to work with most of the time, I ran into a lot of weird niche issues that I had to either work around or come up with some hack to achieve the same effect, which was unfortunate. As a random example, trying to scroll to the top of the document every time a state was changed would not trigger the scroll consistently, making it pretty useless.

For a site like this, it would probably have been easier to just use a JS framework, or finally go and learn htmx

this post was submitted on 07 Sep 2024
18 points (100.0% liked)

Rust

5754 readers
12 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS