2. The new she coded page needs to be configured with a slug url of (maybe) shecoded2020. Once it's configured and ready, test this page. Thereafter the PR https://github.com/thepracticaldev/dev.to/pull/6357 (which removes the existing she coded pages) needs to be merged and deployed. Once we've deployed the PR we can then go to the internal pages config and change the slug on the pages to shecoded.
3. The following images need to first be uploaded manually to our amazon server so that they can be referenced from the html files:
Add the body html from the file /She Coded Campaign HTML Files/hero_banner.html
Remember to replace the 3 assets in the html file based on your the urls for your images
Group should be campaign
Publish and Approve once it’s ready to go live (on my development environment the approved button wasn’t showing up and I had to go into the console, not sure if that’s the case on prod or just something weird with my dev environment) Once approved it will show up.
If you do end up needing to use the console, it will be something along the lines of:
h = HtmlVariant.last //double check this is the right object
h.approved = true
h.save!
NOTE: don’t worry that the campaign width of the banner is 310px on the preview within the internal interface, we need to most likely remove it but this will not affect the display to the user.
4. The banner will not pop up until you have set the config to use the hero banner:
Navigate to https://dev.to/internal/config
Go the the Campaign section
Enter in the unique name that you had given the HTMLVariant in 3a.
Save the config
The hero banner should now pop up on the homepage as follows:
Expected Behaviour:
When you click on the close button, the campaign banner will not show up again. If you’re testing and want it to show up again, then set document.cookie = 'heroBanner=true' in your console.
Phase 2 Sidebar with articles
HTML File: None Required
Assets required: shecoded_sidebar_header_2020.png
Component to edit: Campaign Config
Steps:
Go to https://dev.to/internal/config
Make sure you have the right permissions to edit
Go to the campaign section
Add the link for the shecoded_sidebar_header_2020.png asset (the url for the image that you uploaded) to Campaign sidebar image
Tick Campaign sidebar enabled
Add some tags that you want to show up in the sidear
Then update the config
Remember that only approved shecoded tags will show up on the tags page.