From ba915f25ba0c1c504abe9f366d79700b6c5292f4 Mon Sep 17 00:00:00 2001 From: Natasha Pierre-Louis Date: Wed, 8 May 2024 22:57:39 -0600 Subject: [PATCH 1/5] Refactored the gradient hero banner The homepage markdown has been cleaned up. The gradient hero banner has been converted to a component that is shared by all pages. --- _data/assetPaths.json | 10 ++-- _includes/components/about-side-nav.html | 2 +- .../components/gradient-hero-banner.html | 27 +++++++++ _includes/components/header.html | 3 +- _includes/components/posts-list.html | 2 +- _includes/components/side-nav.html | 4 +- _includes/layouts/about-page.html | 16 +----- _includes/layouts/investment-page.html | 17 +----- _includes/layouts/investments-list.html | 14 +---- _includes/layouts/news-landing.html | 15 +---- _includes/layouts/post.html | 21 +------ _includes/layouts/submit-an-idea-page.html | 16 +----- _includes/layouts/tags-list.html | 16 +----- _includes/theme/styles/_templates.scss | 16 ++---- about/contact-us.md | 6 +- about/what-we-do.md | 6 +- .../01-investments-in-benefits-eligibility.md | 5 +- .../02-investing-in-the-power-of-data.md | 5 +- ...vesting-in-science-medicine-environment.md | 5 +- investments/04-digital-security.md | 5 +- .../05-investments-in-tools-for-feds.md | 5 +- .../06-investing-in-customer-experience.md | 5 +- .../07-investments-in-equitable-tech.md | 5 +- news/2020-lightning-talks.md | 4 +- news/2021-selected-projects.md | 6 +- ...-round-one-submission-period-priorities.md | 6 +- news/2022-selected-projects.md | 4 +- news/2023-idea-submission.md | 4 +- news/2023-selected-projects.md | 4 +- news/2024-selected-investments.md | 4 +- .../FY22-idea-submission-investment-themes.md | 4 +- news/benefits-locator-adds-life-events.md | 4 +- news/combating-bias-ai.md | 4 +- news/crowd-sourcing-new-cx-ideas.md | 4 +- ...-reinvention-venture-capitalist-mindset.md | 4 +- news/investment-approach.md | 4 +- news/multilingual-glossary-tool.md | 4 +- news/notify.md | 4 +- news/policy-as-code.md | 4 +- news/public-sector-innovation-winners.md | 4 +- news/site-scanning.md | 4 +- news/tech-investment-proving-ground.md | 4 +- ...ansforming-technology-agile-investments.md | 4 +- news/tts-director-talks-10x-investments.md | 4 +- news/us-web-design-system.md | 4 +- pages/about.md | 7 ++- pages/homepage.md | 57 ------------------- pages/news.md | 7 ++- pages/privacy-policy.md | 7 ++- pages/submit-an-idea.md | 7 ++- pages/tags.md | 7 ++- 51 files changed, 175 insertions(+), 235 deletions(-) create mode 100644 _includes/components/gradient-hero-banner.html diff --git a/_data/assetPaths.json b/_data/assetPaths.json index 8ac81eb5..01ecbf13 100644 --- a/_data/assetPaths.json +++ b/_data/assetPaths.json @@ -19,6 +19,8 @@ "callout-lilac-half-lg.png": "/assets/assets/callout-lilac-half-lg-QSVKYYFZ.png", "check--blue-60v.svg": "/assets/assets/check--blue-60v-PCQB53AU.svg", "check_circle.svg": "/assets/assets/check_circle-FKYRF36F.svg", + "checkbox-indeterminate.svg": "/assets/assets/checkbox-indeterminate-HJACJSU3.svg", + "checkbox-indeterminate-alt.svg": "/assets/assets/checkbox-indeterminate-alt-SXGAHOOI.svg", "close.svg": "/assets/assets/close-D6X4FKTZ.svg", "correct8.svg": "/assets/assets/correct8-BW6WT7U2.svg", "correct8-alt.svg": "/assets/assets/correct8-alt-M4H3GT6Q.svg", @@ -77,8 +79,8 @@ "tts-inclusive-grid-map.svg": "/assets/assets/tts-inclusive-grid-map-D5DPHQNA.svg", "unfold_more.svg": "/assets/assets/unfold_more-WL443JWS.svg", "warning.svg": "/assets/assets/warning-5OR6W6GJ.svg", - "app.js": "/assets/js/app-YVP3Q5IG.js", - "app.map": "/assets/js/app-YVP3Q5IG.js.map", - "index.css": "/assets/styles/index-DSUG5S6Q.css", - "index.map": "/assets/styles/index-DSUG5S6Q.css.map" + "app.js": "/assets/js/app-EDZES2YK.js", + "app.map": "/assets/js/app-EDZES2YK.js.map", + "index.css": "/assets/styles/index-ZLL2UEDR.css", + "index.map": "/assets/styles/index-ZLL2UEDR.css.map" } \ No newline at end of file diff --git a/_includes/components/about-side-nav.html b/_includes/components/about-side-nav.html index 411b485d..dce9c162 100644 --- a/_includes/components/about-side-nav.html +++ b/_includes/components/about-side-nav.html @@ -13,7 +13,7 @@ - {{ aboutPage.data.pageTitle }} + {{ aboutPage.data.hero_banner.title }} {%- endfor -%} diff --git a/_includes/components/gradient-hero-banner.html b/_includes/components/gradient-hero-banner.html new file mode 100644 index 00000000..bc5adeff --- /dev/null +++ b/_includes/components/gradient-hero-banner.html @@ -0,0 +1,27 @@ +{% assign formatted_category = hero_banner.category | replace: ' ', '-' | downcase %} + + \ No newline at end of file diff --git a/_includes/components/header.html b/_includes/components/header.html index 8af33d12..20742ca1 100644 --- a/_includes/components/header.html +++ b/_includes/components/header.html @@ -60,8 +60,7 @@
diff --git a/_includes/components/posts-list.html b/_includes/components/posts-list.html index 808b9bc0..8af588b2 100644 --- a/_includes/components/posts-list.html +++ b/_includes/components/posts-list.html @@ -12,7 +12,7 @@

- {{ post.data.title }} + {{ post.data.hero_banner.title }}

{% if post.data.excerpt %} diff --git a/_includes/components/side-nav.html b/_includes/components/side-nav.html index 53438fef..286f505d 100644 --- a/_includes/components/side-nav.html +++ b/_includes/components/side-nav.html @@ -1,12 +1,12 @@