Commit fa972e0
WT-334 - Build CMS Components For Advertising Pages - Part 2 (#16814)
* Stylelint
* WIP: add new solutions page
* Stylelint
* Move base styles from the home-solutions to the advertising and main-dark-section css files
* Add base advertising template for next pages
* Remove unused code
* Prevent specific issues with white lines below the sticky subnav
* Add base why mozilla view and template
* Update ads notification bar to make arrow clickable
* Add why mozilla, contact, notification, and highlight text to the why mozilla page
* Wrap why mozilla content on #mozads-main
* Add sample gallery section
* Redirect formats page to the WIP solutions page
* solutions template fix
* First step toward refactoring typography to align advertising, protocol, and m24 sizing.
* finished refactoring font sizes
* Move shared css from principles page to a generic two-column css file
* Add new contact sales page
* Change url for the contact page
* Add link to the contact sales page
* Wrap contact and principles pages with #mozads-main
* Add required field indicators to the contact sales form fields
* Add base static content to the ads solutions page
* Add placeholder modal implementation to ads solutions page
* Add accordion component using the details and summary html tags
* add an AdvertisingIndexPage to the project, with template identical to mozorg/advertising/landing.html
* make sure that AdvertisingIndexPage is included in db export script
* turn advertising index page hero into a block
* turn advertising section heading into a block
* Migrate ads solutions to an es6 file
* Add skeleton for carousels in modals on ads solutions page
* turn advertising statistics sections into a block
* turn advertising feature list section into a block
* turn advertising contact banner into a snippet
* turn advertising notification into a page field
* add an AdvertisingPrinciplesPage to the project
* make AdvertisingPrinciplesPage fields editable in Wagtail
* make code DRYer by using include template in in feature_list_item_block.html
* add AdvertisingPrinciplesPage to the pages which are editable in Wagtail
* add AdvertisingPrinciplesPage to the pages in export db script
* avoid confusion by making sure that AdvertisingPrinciplesPage can only be a child of AdvertisingIndexPage
* be more specific about rendered image dimensions
* be more specific about rendered image dimensions
* add a unit test for the AdvertisingIndexPage
* design revisions
* modal FE finished
* solutions PDF, contact link updated
* minor FE edits to account for predictable CMS behavior
* Revert "Merge branch 'wt-303-ads-solutions-page' into WT-334-cms-components-for-advertising-subpage"
This reverts commit ed6183b, reversing
changes made to 0759a63.
* copy and design revisions
* update for design revisions
* design revisions
* fixing linting
* prettier JS updates
* carousel caption JS updates
* new Impact page design
* add ability to add top divider to section heading block
* allow image alt text to be set on page, but also have default if page has not alt text
* typography revisions
* use image description for alt-text
simplify user editing experience by limiting the
number of editable fields; since the images will
likely be used only 1 time, the alt text can be
defined at the image level
* use wagtail-link-block to create consistent link choosing experience
* test
* make advertising subpage more generically-named
* for clarity, rename list_items field to be second_column
* make sure that template variables have a value when using include
* do not require elements in two column subpage's second column to be a list
* add rich text block to two column subpage's second column
* add a unit test for TwoColumnSubpage
* update test for AdvertisingIndexPage based on changes to fields
* fix typo and add missing '}'
* fix lint error
* updated type scale
* linting fixes
* linting fixes
* fix formatting error
* make page more reusable by putting content into a two-column block in a streamfield
* allow FigureWithStatisticBlock to have a link
* fix reference to new_window property in link
* update CSS classes used to match work in WT-303
* allow FigureWithStatisticBlock to have a link
* update blocks and CSS classes to match work in WT-303
* new images, another round of design QA
* advertising index page can have multiple links for a notification
* new copy added
* update tests based on recent changes to TwoColumnSubpage blocks
* fix frontend build issues
* MDN ads images added, captions revised
* merge more changes from WT-303
* remove unused SCSS file
* make more updates from WT-303 changes
* Mozilla Ads and Web Docs find/replace
* CSS prefix revision to remove "mozads" in favor of "mza"
* replacing mozads with mza in template files
* Solutions refactor in prep for CMS work
* replace mozads with mza in template files
* undo accidental changes to github actions code from merge revert commit
* photo update
* undo accidental changes from merge revert
* undo more accidental changes from merge revert
* make sure to refer to correct CTA attribute in template
* add rel noopener attribute to links that open in a new tab
* "nearly" removed. Apostrophes fixed. Principles added to nav.
* precommit installed and run on all relevant files
* Update bedrock/mozorg/blocks/advertising.py
Co-authored-by: Steve Jalim <stevejalim@mozilla.com>
* add migration for label text change
* remove twitter as a social icon choice
* reorder migrations after merge
* for better usage clarity, rename TwoColumnSubpage to AdvertisingTwoColumnSubpage
---------
Co-authored-by: Luciano Ratamero <luciano@ratamero.com>
Co-authored-by: Kasey Kelly <kasey@servee.com>
Co-authored-by: Steve Jalim <stevejalim@mozilla.com>1 parent acb8f16 commit fa972e0
18 files changed
Lines changed: 368 additions & 21 deletions
File tree
- bedrock
- mozorg
- blocks
- migrations
- templates/mozorg
- advertising
- includes
- cms/advertising
- blocks
- includes
- tests
- settings
- bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
119 | 166 | | |
120 | 167 | | |
121 | 168 | | |
| |||
133 | 180 | | |
134 | 181 | | |
135 | 182 | | |
136 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
137 | 192 | | |
138 | 193 | | |
139 | 194 | | |
| |||
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
134 | 144 | | |
135 | 145 | | |
136 | 146 | | |
137 | | - | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
169 | 179 | | |
170 | 180 | | |
171 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments