As a designer I'd like some pages to be linked to in the footer of the site navigation, to take advantage of that real estate on a screen.
I'd like to be able to group these pages into categories and have them displayed under their respective categories.
This PR attempts to satisfy the desire for grouping footer links to pages under categories in the footer with some minimal data modeling. For simplicity just a string array field was added for configuration on the website which populates a select list to choose from for a page. There is a slight cost of brittleness should category names need to be changed at some point but should hopefully be sufficient for MVP.
This was also a good opportunity to more fully wire up the footer and header to better match the current design. Some improvements to image handling when missing and resizing for svgs was included as well.
Changes
adds Website#footer_categories string array field populated with help
of selectized js tags
adds Page#footer_category to indicate that a page should be linked in
a footer category
wires up the footer category/links and other dynamic content and
elements as well
wires up the header navigation to more closely match the design
fixes image resizing for svgs with resize_image_tag helper method
ensures pages don't blow up with images are not attached
Link some pages from footer
Reason For Change
From Miro Card:
This PR attempts to satisfy the desire for grouping footer links to pages under categories in the footer with some minimal data modeling. For simplicity just a string array field was added for configuration on the website which populates a select list to choose from for a page. There is a slight cost of brittleness should category names need to be changed at some point but should hopefully be sufficient for MVP.
This was also a good opportunity to more fully wire up the footer and header to better match the current design. Some improvements to image handling when missing and resizing for svgs was included as well.
Changes
Link some pages from footer