Conversation
|
Hi @carterm, I finished converting the HTML State Template over to MVC including all the CSS, fonts and javascript. Some of my changes were subjective, for example how I organized the views and controllers, so if you could review and give me feedback I'd appreciate it. Note that for most of the components I just used Html.Raw, but for 5 of them I created partial views and some ViewModels to go along with them (Accordion, Alert, Breadcrumb, Card, SideNav, SideNavItems). Also note that I couldn't find the main_banner10.jpg referenced on the banner component, but I found it on https://office-of-digital-services.github.io/California-State-Web-Template-HTML/samples/banner.html so I downloaded it and added it. Going forward, next steps would be to convert the rest of the components into partials and create corresponding ViewModels to go along with them. |
|
@carterm Just to clarify it's not just the components that use Html.Raw but also the views, but I did convert the main shared layout files into .cshtml (under Views/Shared) |
carterm
left a comment
There was a problem hiding this comment.
We shouldn't be seeing the wwwroot folder in this at all. Template source should come from JSDelivr or NPM
No description provided.