Dynamically display an events sponsors on an events website.
This PR enables that to occur in two ways
First through a '/sponsors' page that displays all of an events published sponsors
Second with a sponsors-footer controller that can be added to any of the events static pages.
In order to add the dynamic sponsors footer component to a static page, the page editor will need to create the following element in the page body
<div data-controller="sponsors-footer"
data-sponsors-footer-event-slug-value="{ ENTER EVENT SLUG }"
</div>
Changes
Adds a route at '/website/sponsors' that displays an events sponsors
Creates controller methods for both the sponsors page, and the sponsors footer
Adds 'description', 'offer_headline', 'offer_text', 'offer_url' to the event sponsor model
Also enforces primary_logo presence.
simple toggle visibility controller
Additional Notes
The Sponsor Model is still lacking data validations. I need to sit down with someone from RubyCentral and go over what validations on that model should look like.
I need to write some feature tests on this.
Who doesn't love a preview
Yes. I know the flow on my Footer components is a little cringe worthy.... I need to check in with Gina about what she was envisioning there. But for now it does the job.
_preview made with production data in a local env
Reason for Change
Dynamically display an events sponsors on an events website. This PR enables that to occur in two ways
In order to add the dynamic sponsors footer component to a static page, the page editor will need to create the following element in the page body
Changes
Additional Notes
Who doesn't love a preview
Yes. I know the flow on my Footer components is a little cringe worthy.... I need to check in with Gina about what she was envisioning there. But for now it does the job. _preview made with production data in a local env