From 694faf72a698da5bc8f4e69c33b37c4f5e0efae5 Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Wed, 19 Feb 2025 14:54:49 +0000 Subject: [PATCH] Update landing page example - A more realistic example, with breadcrumbs, nav groups, a theme, and a lot of blocks. --- .../landing_page/frontend/landing_page.json | 334 ++++++++++++++++++ 1 file changed, 334 insertions(+) diff --git a/content_schemas/examples/landing_page/frontend/landing_page.json b/content_schemas/examples/landing_page/frontend/landing_page.json index c1ea86005b..efee5c9e94 100644 --- a/content_schemas/examples/landing_page/frontend/landing_page.json +++ b/content_schemas/examples/landing_page/frontend/landing_page.json @@ -12,6 +12,340 @@ "updated_at": "2024-10-08T15:37:00Z", "links": { }, + "theme": "default", "details": { + "breadcrumbs": [ + { + "title": "Some breadcrumb", + "href": "/some-breadcrumb" + }, + { + "title": "Some other breadcrumb", + "href": "/some-other-breadcrumb" + } + ], + "navigation_groups": [ + { + "id": "Top Menu", + "name": "Some menu", + "links": [ + { + "text": "Heading", + "links": [ + { + "href": "/homepage", + "text": "Homepage" + }, + { + "href": "/goals", + "text": "Goals" + } + ] + }, + { + "text": "Heading 2", + "links": [ + { + "href": "/homepage", + "text": "Homepage 2" + }, + { + "href": "/goals", + "text": "Goals 2" + } + ] + } + ] + }, + { + "id": "Sidebar", + "links": [ + { + "href": "/a", + "text": "Child a" + }, + { + "href": "/b", + "text": "Child b" + } + ] + } + ], + "blocks": [ + { + "type": "main_navigation", + "navigation_group_id": "Top Menu" + }, + { + "type": "hero", + "image": { + "sources": { + "desktop": "landing_page/placeholder/desktop.png", + "desktop_2x": "landing_page/placeholder/desktop_2x.png", + "mobile": "landing_page/placeholder/mobile.png", + "mobile_2x": "landing_page/placeholder/mobile_2x.png", + "tablet": "landing_page/placeholder/tablet.png", + "tablet_2x": "landing_page/placeholder/tablet_2x.png" + } + }, + "hero_content": { + "blocks": [ + { + "type": "heading", + "content": "This is a heading" + }, + { + "type": "govspeak", + "content": "

Lorem ipsum...

\n" + }, + { + "type": "action_link", + "text": "See the missions", + "href": "todo" + } + ] + } + }, + { + "type": "does_not_exist", + "content": "replace me with a block-error block" + }, + { + "type": "featured", + "image": { + "alt": "example alt text", + "sources": { + "desktop": "landing_page/placeholder/desktop.png", + "desktop_2x": "landing_page/placeholder/desktop_2x.png", + "mobile": "landing_page/placeholder/mobile.png", + "mobile_2x": "landing_page/placeholder/mobile_2x.png", + "tablet": "landing_page/placeholder/tablet.png", + "tablet_2x": "landing_page/placeholder/tablet_2x.png" + } + }, + "featured_content": { + "blocks": [ + { + "type": "heading", + "content": "Title of the content" + }, + { + "type": "govspeak", + "content": "

Lorem ipsum dolor sit amet. In voluptas dolorum vel veniam nisi et voluptate dolores id voluptatem distinctio. Et quia accusantium At ducimus quis aut voluptates iusto aut esse suscipit.

\n" + } + ] + } + }, + { + "type": "heading", + "content": "Here's a heading" + }, + { + "type": "govspeak", + "content": "

Here's some content!

\n

Here's some more content

\n\nVisit sub-page 1\n" + }, + { + "type": "govspeak", + "content": "

Here's some more content!

" + }, + { + "type": "quote", + "text": "Here's a quote!", + "cite": "I said this" + }, + { + "type": "two_column_layout", + "theme": "two_thirds_one_third", + "blocks": [ + { + "type": "govspeak", + "content": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" + }, + { + "type": "govspeak", + "content": "

Right content!

" + } + ] + }, + { + "type": "heading", + "content": "Statistics" + }, + { + "type": "columns_layout", + "blocks": [ + { + "type": "card", + "image": { + "alt": "Placeholder alt text", + "source": "landing_page/placeholder/chart.png" + }, + "card_content": { + "blocks": [ + { + "type": "heading", + "content": "Title 1 govspeak title goes here", + "path": "http://gov.uk" + } + ] + } + }, + { + "type": "card", + "image": { + "alt": "Placeholder alt text", + "source": "landing_page/placeholder/chart.png" + }, + "card_content": { + "blocks": [ + { + "type": "heading", + "content": "Title 2 govspeak title goes here", + "path": "http://gov.uk" + } + ] + } + }, + { + "type": "card", + "image": { + "alt": "Placeholder alt text", + "source": "landing_page/placeholder/chart.png" + }, + "card_content": { + "blocks": [ + { + "type": "heading", + "content": "Title 3 govspeak title goes here", + "path": "http://gov.uk" + } + ] + } + } + ] + }, + { + "type": "two_column_layout", + "theme": "one_third_two_thirds", + "blocks": [ + { + "type": "side_navigation", + "navigation_group_id": "Sidebar", + "title": "Alternate title", + "alternative_line_style": true + }, + { + "type": "blocks_container", + "blocks": [ + { + "type": "card", + "image": { + "alt": "Placeholder alt text", + "source": "landing_page/placeholder/chart.png" + }, + "card_content": { + "blocks": [ + { + "type": "heading", + "content": "Title 1 govspeak title goes here", + "path": "http://gov.uk" + } + ] + } + }, + { + "type": "card", + "image": { + "alt": "Placeholder alt text", + "source": "landing_page/placeholder/chart.png" + }, + "card_content": { + "blocks": [ + { + "type": "heading", + "content": "Title 2 govspeak title goes here", + "path": "http://gov.uk" + } + ] + } + } + ] + } + ] + }, + { + "type": "document_list", + "taxon_base_path": "/a-taxon", + "items": [ + { + "text": "An example link", + "path": "https://www.gov.uk", + "document_type": "Press release", + "public_updated_at": "2016-06-27 10:29:44 +0000" + }, + { + "text": "Another example link", + "path": "https://www.gov.uk", + "document_type": "News article", + "public_updated_at": "2021-01-16 11:34:12 +0000" + }, + { + "text": "A third example link", + "path": "https://www.gov.uk", + "document_type": "Consultation", + "public_updated_at": "2024-02-01 09:00:11 +0000" + } + ] + }, + { + "type": "columns_layout", + "ga4_tracking": true, + "ga4_type": "box", + "blocks": [ + { + "type": "box", + "href": "/landing-page/be-kinder", + "content": "Preview pickles", + "theme_colour": 1, + "box_content": { + "blocks": [ + { + "type": "govspeak", + "content": "

Yorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis class.

\n" + } + ] + } + }, + { + "type": "box", + "href": "/landing-page/be-kinder", + "content": "Empower elephants", + "theme_colour": 2, + "box_content": { + "blocks": [ + { + "type": "govspeak", + "content": "

Subtitle here

\n

Yorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis class.

\n

Subtitle here

\n

Yorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis class.

\n" + } + ] + } + }, + { + "type": "box", + "href": "/landing-page/be-kinder", + "content": "Celebrate Caribou", + "theme_colour": 3, + "box_content": { + "blocks": [ + { + "type": "govspeak", + "content": "

Yorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis class.

\n" + } + ] + } + } + ] + } + ] } }