Closed Brend-Smits closed 4 years ago
I've hidden the navigation, footer and beta notice when on an embed page.
In case of an even smaller screen width, the sidebar is placed below the main content.
This is currently done by listening to router events, but it is not how it really should be done. Because the <router-outlet>
component is part of the layout itself, I can't easily change what layout should be used through the routes definitions.
I think it would be better if done like this: https://stackblitz.com/edit/angular-multi-layout-example?file=app%2Fapp.routing.ts, in which the routes determine which layout gets loaded, with the other components being child components of this layout, making it easier to add new layouts.
That already looks way better. The tags can also be hidden btw
I have commented them out, so that they can be brought back in the future.
What does @rubenb994 think of your suggestion for a multi-layout routing setup?
Seems like a good solution, hiding all layout elements for certain routes does not feel like something we should implement
Embedding is a functionality that can be used for Fontys to easily embed projects on the Fontys.nl during an open day or something. Currently embeds look like this: https://gyazo.com/6e06161f2c8d39ac04fd09f776ca8978
I asked @MaxKorlaar to temporarily freestyle and fix this design to make it better.