Commit 560df22
WT-334 - Build CMS Components For Advertising Pages - Part 3 (#16815)
* 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
* implement sub-navigation for advertising pages
* Bump the frontend group with 3 updates (#16769)
Bumps the frontend group with 3 updates: [@sentry/browser](https://github.com/getsentry/sentry-javascript), [caniuse-lite](https://github.com/browserslist/caniuse-lite) and [webpack](https://github.com/webpack/webpack).
Updates `@sentry/browser` from 10.12.0 to 10.17.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@10.12.0...10.17.0)
Updates `caniuse-lite` from 1.0.30001743 to 1.0.30001746
- [Commits](browserslist/caniuse-lite@1.0.30001743...1.0.30001746)
Updates `webpack` from 5.101.3 to 5.102.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.101.3...v5.102.0)
---
updated-dependencies:
- dependency-name: "@sentry/browser"
dependency-version: 10.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: frontend
- dependency-name: caniuse-lite
dependency-version: 1.0.30001746
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: frontend
- dependency-name: webpack
dependency-version: 5.102.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: frontend
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add mozfest block to homepage (fixes #16792) (#16802)
* Add mozfest block to homepage
* Add responsive images
* Add alt for image
* Update l10n/en/mozorg/home-m24.ftl
---------
Co-authored-by: Stephanie Hobson <stephaniehobson@users.noreply.github.com>
* l10n request: fix dashes (#16811)
* 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
* implement sub-navigation for AdvertisingPrinciplesPage
* reorder migrations after merge
* allow subnavigation links to look like buttons by selecting a checkbox
* add AdvertisingPrinciplesPage to the pages which are editable in Wagtail
* add AdvertisingPrinciplesPage to the pages in export db script
* 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
* 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
* 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
* remove extra text from section_anchor help_text
* updated type scale
* linting fixes
* linting fixes
* use wagtail-link-block in sub navigation for more consistent link choosing experience
* add a unit test for advertising pages sub-navigation
* 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
* update migration based on merge
* make sure TwoColumnSubpage uses correct file for sub-navigation
* fix frontend build issues
* MDN ads images added, captions revised
* replace hard-coded link in sub-navigation with page URL
* merge more changes from WT-303
* remove unused SCSS file
* remove unused HTML file
* make more updates from WT-303 changes
* make more updates from WT-303 changes
* add ContentSubpage to the project
* update SectionHeaderBlock to support ContentSubpage designs
* add FigureWithStatisticBlock to ContentSubpage
* 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
* add StatisticCalloutBlock to ContentSubpage
* add FeatureListWithModalsBlock to ContentSubpage
* allow StatisticBlocks to have a label above the value
* add RowTextAndLinkBlock to ContentSubpage
* add contact banner and notifications to ContentSubpage
* make HTML file more readable
* replace mozads with mza in template files
* replace mozads with mza in template files
* make sure to use specific page, so that navigation correctly appears
* replace mozads with mza in template files
* rename block field to be more descriptive of its function
* do not require a heading text in SectionHeaderBlocks
* require SectionHeaderBlocks to have a superheading, heading, or subheading
* add FeatureListBlock to ContentSubpage, so it can be used on the 'Impact' page
* allow feature list item heading to have line breaks
since line breaks are needed on the 'Impact' page
* allow feature list item supporting text to be rich text
since rich text is needed on the 'Impact' page
* use a more-fitting icon for RowTextAndLinkBlock
* 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
* 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
* homepage CSS revisions
* impact and solutions page revisions
* header class revisions
* prefer Wagtail Pages for each of advertising pages
* make CMS Page editing more closely match springfield
In order to make the experience of editing pages
more-closely match Springfield, we nest blocks
inside of a SectionBlock.
* move divider and background color settings from blocks to SectionBlock
* update tests based on recent page structure changes
* update navigation anchor validation logic based on recent changes to page structure
* ads work refactor for better markup/sections
* fixing line lengths
* change notifications block to be a snippet
* template revisions
* Update bedrock/mozorg/blocks/advertising.py
Co-authored-by: Steve Jalim <stevejalim@mozilla.com>
* removing advertising/why-mozilla and advertising/contact
* 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
* reorder migrations after merge
* update reference to previously renamed model
* remove twitter as field from NotificationSnippet
* remove unused notification-related blocks
* remove unused field mapping
* Merge branch 'main' into WT-334-cms-components-for-advertising-sub-navigation
* Merge branch 'main' into WT-334-cms-components-for-advertising-sub-navigation
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Luciano Ratamero <luciano@ratamero.com>
Co-authored-by: Kasey Kelly <kasey@servee.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: maureenlholland <19650432+maureenlholland@users.noreply.github.com>
Co-authored-by: Stephanie Hobson <stephaniehobson@users.noreply.github.com>
Co-authored-by: Steve Jalim <stevejalim@mozilla.com>1 parent fa972e0 commit 560df22
46 files changed
Lines changed: 3325 additions & 388 deletions
File tree
- bedrock
- mozorg
- blocks
- migrations
- templates/mozorg
- advertising
- includes
- cms
- advertising
- blocks
- includes
- snippets
- tests
- settings
- bin
- media/css
- m24
- mozorg
- ads
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 22 | | |
31 | 23 | | |
32 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | | - | |
51 | | - | |
| 47 | + | |
52 | 48 | | |
53 | | - | |
54 | | - | |
| 49 | + | |
| 50 | + | |
55 | 51 | | |
56 | 52 | | |
57 | | - | |
| 53 | + | |
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
61 | 72 | | |
62 | 73 | | |
63 | 74 | | |
| |||
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
72 | 88 | | |
73 | | - | |
| 89 | + | |
74 | 90 | | |
75 | 91 | | |
76 | 92 | | |
| |||
79 | 95 | | |
80 | 96 | | |
81 | 97 | | |
82 | | - | |
83 | | - | |
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
| |||
93 | 107 | | |
94 | 108 | | |
95 | 109 | | |
96 | | - | |
97 | | - | |
| 110 | + | |
| 111 | + | |
98 | 112 | | |
99 | 113 | | |
100 | 114 | | |
| |||
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
109 | 128 | | |
110 | 129 | | |
111 | 130 | | |
| |||
144 | 163 | | |
145 | 164 | | |
146 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
147 | 263 | | |
148 | 264 | | |
149 | 265 | | |
| |||
163 | 279 | | |
164 | 280 | | |
165 | 281 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
171 | 300 | | |
172 | 301 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
177 | 306 | | |
178 | 307 | | |
179 | 308 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
194 | 314 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
198 | 321 | | |
| 322 | + | |
199 | 323 | | |
200 | 324 | | |
201 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 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 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments