Skip to content

docs: multi-page app example#292

Merged
LittleLittleCloud merged 17 commits intoRazorConsole:mainfrom
Marcin-Lach:docs/multi-page-example
Feb 6, 2026
Merged

docs: multi-page app example#292
LittleLittleCloud merged 17 commits intoRazorConsole:mainfrom
Marcin-Lach:docs/multi-page-example

Conversation

@Marcin-Lach
Copy link
Contributor

@Marcin-Lach Marcin-Lach commented Jan 29, 2026

Example application for showing how to use Blazor's routing to achieve cleaner page navigation than relying on switch statement in App.razor.
Credits for slider in settings page to Skuzzle-UK, I just wrapped it into a component.

presentation

@Marcin-Lach Marcin-Lach force-pushed the docs/multi-page-example branch from af2ea49 to 34e9086 Compare January 29, 2026 17:30
@TeseySTD
Copy link
Member

TeseySTD commented Jan 29, 2026

Align-center causing buttons to be rendered 1 line below it's position and leaving a line at the top when switching pages

The problem is in that Align component centers your modal using spaces and newlines, so it creates redundant characters that affect on render result. Do not use Align component around positioned element, only inside its container, like Panel for example.
Now, I'm preparing the ModalWindow component, that centers itself using position. It calculates its size and counts canvas size so it is positioned correctly without that side effects.

modal not preventing the focus from going to button outside of modal

Because every positioned elements in VDom. They are separated from common rendering but they are registered as usual components. Don't think that it is a big problem actually, but it can be fixed using some stack of that overlay items.

@Marcin-Lach Marcin-Lach marked this pull request as ready for review February 1, 2026 10:49
@Marcin-Lach Marcin-Lach changed the title (WIP) docs: multi-page app example docs: multi-page app example Feb 1, 2026
@Marcin-Lach Marcin-Lach mentioned this pull request Feb 1, 2026
@ParadiseFallen
Copy link
Collaborator

Im not sure that we need this example at all.
Gallery already uses routing.
Also routing is simply the same as in web blazor. There are many guides about routing in web blazor.

Cons about this sample is:

  • It dosen't bring anything new (like concepts) bc it works the same as in web
  • extra codebase

@LittleLittleCloud
Copy link
Member

@ParadiseFallen
I still think it's positive to have more examples, even if there's already alternatives case exists elsewhere
.

Copy link
Collaborator

@ParadiseFallen ParadiseFallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lacking examples on Layout. Need to shouw at least 2 layouts and page without layout

@TeseySTD
Copy link
Member

TeseySTD commented Feb 1, 2026

Looks very good, I made the PR with modal window component so you can get rid of the Align wrapping approach.

@Marcin-Lach
Copy link
Contributor Author

Lacking examples on Layout. Need to shouw at least 2 layouts and page without layout

I'd rather adding this as a separate example, focusing just on different layout options.

@Marcin-Lach Marcin-Lach marked this pull request as draft February 3, 2026 15:30
@Marcin-Lach Marcin-Lach marked this pull request as ready for review February 4, 2026 22:41
@Marcin-Lach
Copy link
Contributor Author

Looks very good, I made the PR with modal window component so you can get rid of the Align wrapping approach.

I pushed version using ModalWindow

@LittleLittleCloud LittleLittleCloud merged commit 93c27f3 into RazorConsole:main Feb 6, 2026
6 checks passed
@github-actions github-actions bot added this to the v0.4.0 milestone Feb 6, 2026
@Marcin-Lach Marcin-Lach deleted the docs/multi-page-example branch February 6, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants