We are implementing a website using JSS in Code First approach. There is a requirement to have two different layouts in the site,
- Layout1 - for all the pre-login pages
- Layout2 - for all post login pages
Just wondering on how we can create multiple layouts in code first approach. Is it possible to implement easily, may be with minimal code/customization.? If not I think I can use the single layout or follow the Single page application concept and tweak the display based on some parameters. for ex,
- if user authenticated show the components which I want to show in post login and hide pre-login specific components etc.
- if user is not authenticated hide the post-login components and show the pre-login specific components
Any help much appreciated, Thanks.