NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
11 stars 33 forks source link

Create Mini Landing Page Template #4356

Open sarinapadilla opened 3 weeks ago

sarinapadilla commented 3 weeks ago

As a user, I want to have NCIDS components available for my mini landing page, so that I can feature content.

The Mini Landing Page content type needs to be updated to allow for the new NCIDS page template style. The Mini Landing Page Style dropdown field will have two options: Standard/Default/something and NCIDS. (wordsmith these later)

Additionally, we are updating usa-section on MLPs:

  1. First component on an MLP page should get:
    • Top Padding: None
    • Bottom Padding:
      • 2 rem on desktop
      • 1.5 rem on mobile
  2. All other components in the MLP page should get:
    • Top and Bottom Padding:
      • 2 rem on desktop
      • 1.5 rem on mobile
  3. The last component on the MLP page should get:
    • Top Padding:
      • 2 rem on desktop
      • 1.5 rem on mobile
    • Bottom Padding:
      • 4 rem on desktop
      • 3 rem on mobile
  4. Within two column, the first component will get no top padding, then follow spacing convention for the rest of the components on the page

DoR Tasks

DoD Tasks

Acceptance Criteria

Scenario: Mini Landing Page Style field displays on Mini Landing Page content type
  Given the user is logged in as an editor 
    And the user adds new content 
    And selects Mini Landing Page as the content type 
  Then the edit screen for a new Mini Landing Page content item displays
    And the Mini Landing Page Style field appears
    And the field displays under the Language field and above the Site Section field
    And the field is a dropdown
    And under the dropdown the tooltip text appears that reads "Select a template for the page"
    And the dropdown defaults to "Standard" 
    And the dropdown has the option "NCIDS"
    And the field is required 

Test Content

Create the following pages to help test that the template is working as expected:

English: https://www-dev-ac.cancer.gov/test/ncids-mini-landing/template Spanish: https://www-dev-ac.cancer.gov/espanol/test-es/ncids-mini-landing-es/template

Resources:

Notes

Some complementary notes if necessary:


Solution

Prerequisites

Tasks

Technical Notes

dev-rana-publicis commented 4 days ago

Approach