Apmannen / MichaelKjellander

Upcoming michaelkjellander.se site. WORK IN PROGRESS. Built with Blazor (.NET/C#), using the Wordpress API to fetch all existing posts and pages from the old (current) site. Tailwind is used for styling.
https://new.michaelkjellander.se/
0 stars 0 forks source link

Clickable images - trigger modal #10

Open Apmannen opened 4 months ago

Apmannen commented 4 months ago

See if classes/methods can be moved to models etc.


Apmannen commented 3 months ago

This is really something you want to do on the client side...

Apmannen commented 3 months ago

https://demos.blazorbootstrap.com/modals

Apmannen commented 3 months ago

https://demos.blazorbootstrap.com/modals

Lot's of Bootstrap (probably conflicting with Tailwind) and JS dependencies.

The goal of the project is to deep dive into Blazor and .NET and minimize the usage of external plugins/libraries to a selected few.

To make use of Webassembly could be an idea, with my API endpoints I'm not using interactive server side rendering the way you're supposed to anyway:

" Blazor supports interactive server-side rendering (interactive SSR), where UI interactions are handled from the server over a real-time connection with the browser. Interactive SSR enables a rich user experience like one would expect from a client app but without the need to create API endpoints to access server resources." https://learn.microsoft.com/sv-se/aspnet/core/blazor/?view=aspnetcore-8.0

But there are reasons for everything, and I'll include them in my review afterwards.

Maybe I should convert my Guess word to use Web assembly and use interactive SSR for the upcoming Figgerits clone? Maybe have on version of each: one webassembly guess word and one SSR guess word -- for true comparison.

Apmannen commented 3 months ago

Inspiration: https://flowbite.com/docs/components/modal/