Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develops impact page #896

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
65d19a5
WIP: Developing impact page
sadiejay Oct 31, 2024
2a708ba
Updates develops-impact-page branch
sadiejay Nov 25, 2024
79d45af
WIP: Renames file adds draft of section
sadiejay Nov 26, 2024
8395968
WIP: Adds drafts of sections
sadiejay Nov 26, 2024
73fe9f1
Adds background image
sadiejay Dec 2, 2024
c70dc2d
WIP: Creates profile include
sadiejay Dec 2, 2024
9b1cf02
WIP: Creates impacts number include
sadiejay Dec 2, 2024
a7bfbad
WIP: Adds data for includes and updates sections
sadiejay Dec 2, 2024
2abaac2
WIP: Adds styling for impact page sectionss
sadiejay Dec 2, 2024
4e5c7cd
Adds classes to profile and impact sections
sadiejay Dec 9, 2024
cd41fea
WIP: Styles impact and profile sections
sadiejay Dec 9, 2024
7d4c268
Adds placeholder img
sadiejay Dec 17, 2024
ab9a865
Creates template for impact page info
sadiejay Dec 17, 2024
57a5563
WIP: Creates subnav component
sadiejay Dec 17, 2024
dc430ee
WIP: Styles subnav component
sadiejay Dec 17, 2024
2d493f5
Adds subnav to sections
sadiejay Dec 17, 2024
15d3cb4
Adds template yaml to sections
sadiejay Dec 17, 2024
966c132
WIP: Styles template yaml
sadiejay Dec 17, 2024
602498b
Adds page marker to css
sadiejay Dec 17, 2024
34e5d2f
WIP: Styles h2
sadiejay Dec 31, 2024
4f6ef6e
WIP: Styles year/timeline section
sadiejay Dec 31, 2024
3d7a0b4
Removes test styling
sadiejay Dec 31, 2024
95f35e2
Creates sections for years
sadiejay Dec 31, 2024
215951a
WIP: Adds div around h2
sadiejay Dec 31, 2024
d892793
WIP: Adds styles for impact page
sadiejay Jan 7, 2025
1007885
Creates two containers within year section
sadiejay Jan 7, 2025
ddcffbb
Removes inverted tag
sadiejay Jan 7, 2025
a16225f
Creates two elements in report download
sadiejay Jan 7, 2025
65dee5e
Merge pull request #895 from sadiejay/develops-impact-page
sadiejay Jan 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions _includes/impact/numbers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% assign data = include.data %}

{% for item in data %}
<div class="impact-item">
<p class="number">{{item.number}}</p>
<div class="report-details shadow-box">
<h3 class="title">{{item.title}}</h3>
<p class="info">{{item.blurb}}</p>
</div>
</div>
{% endfor %}
19 changes: 19 additions & 0 deletions _includes/impact/profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% assign data = include.data %}

{% for info in data %}
<div class="individual-info {% if info.class%}{{info.class}}{%endif%}">
<div class="info-img-container">
<img src="{{info.img.src}}" alt="{{info.img.alt}}">
</div>
<div class="info-content">
<h3>{{info.title}}</h3>
{% if info.subtitle %}
<p class="subtitle">{{info.subtitle}}</p>
{% endif %}
{% if info.org %}
<p class="org">{{info.org}}</p>
{% endif %}
<p class="blurb">{{info.blurb}}</p>
</div>
</div>
{% endfor %}
10 changes: 10 additions & 0 deletions _includes/impact/subnav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<nav id="subnav" class="display-none tablet:display-block">
<div class="nav-content-container">
<a href="{{site.baseurl}}/impact#team-intro">Note From the Team</a>
<a href="#">Through the Years</a>
<a href="{{site.baseurl}}/impact#impact-numbers">By the Numbers</a>
<a href="{{site.baseurl}}/impact#sucess">Success Stories</a>
<a href="{{site.baseurl}}/impact#broader-impact">Broader Impact</a>
<a href="{{site.baseurl}}/impact#report-download">Report Download</a>
</div>
</nav>
110 changes: 110 additions & 0 deletions css/_uswds-theme-custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1949,6 +1949,116 @@ main {
}
}

// Impact page ----------------- //
.page-impact {
div.content-container, .shadow-box {
padding: 52.64px 30.08px;

@include at-media('tablet') {
padding: 52.64px 67.68px;
}

@include at-media('desktop') {
padding: 112px 127.5px;
}
}
.grid-background {
background: url("../img/impact-page/backgrounds/desktop_broader-impact_background.png") no-repeat 0 0;
background-size: cover;
background-color: #FAF3E9;

h2 {
color: white;
background: orangered;
width: fit-content;
padding: 4px 24px;
box-shadow: -4px 4px 2px 1px #7A1B00;
}
}
.shadow-box {
background-color: white;
border: black solid .6px;
box-shadow: 12px 12px 2px 1px #13192F;
}

.nav-content-container {
padding: 10px 25px;
display: flex;
justify-content: space-evenly;
border: .5px black solid;
border-radius: 200px;

a {
color: black;
}
}

.impact-numbers div.content-container {

@include at-media("tablet") {
display: grid;

}
}

.individual-info {
// background-color: red;
.info-img-container {
width: fit-content;
}
.info-content {
width: 125%;
}
@include at-media("tablet") {
display: flex;

&.inverted {
flex-direction: row-reverse;
}
}
}

.success {
background: color('base-darkest');
color: white;
.nav-content-container {
border-color: white;

a {
color: white;
}
}
}

.years {
color: white;
.year-counter-container{
background: color('blue-warm-60v');
.nav-content-container {
border-color: white;
a {
color: white;
}
}
}
.year-timeline-container {
background: color('base-darkest');
}
}

.report-download {
background: color('blue-warm-60v');
color: white;
.nav-content-container {
border-color: white;

a {
color: white;
}
}
}
}


// TOOLKITS ----------------- //

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
193 changes: 193 additions & 0 deletions pages/impact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
---
title: Impact
permalink: /impact/
layout: default
class: impact

# hero section
background: banner-background
hero:
text: Impact
subtext: Learn more about The Opportunity Project sprint process and participant roles.

#years section
years:
- title: 2015
subtitle: Dui sapien eget mi proin sed
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
class: inverted
img:
src: /assets/img/impact-page/timeline/desktop-timeline-2015.jpg
alt: something
- title: 2016
subtitle: Dui sapien eget mi proin sed
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
img:
src: /assets/img/impact-page/timeline/desktop-timeline-2016.jpg
alt: something
- title: 2017
subtitle: Dui sapien eget mi proin sed
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
class: inverted
img:
src: /assets/img/impact-page/timeline/desktop-timeline-2017.jpg
alt: something


#impact numbers
impact_numbers:
- number: 200+
title: products in use
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl rhoncus.
- number: 1300+
title: Total Users
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl rhoncus.
- number: XXX
title: Economic Impact
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl rhoncus.

#sucess stories section
companies:
- title: company
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
img:
src: /assets/img/impact-page/headshots/desktop-broader-community-headshot.jpg
alt: smiling headshot
- title: Company
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
class: inverted
img:
src: /assets/img/impact-page/headshots/desktop-broader-data-headshot.jpg
alt: smiling headshot
- title: Company
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
img:
src: /assets/img/impact-page/headshots/desktop-broader-federal-headshot.jpg
alt: smiling headshot

#profile section
profiles:
- title: On Communities
subtitle: name
org: org
class: inverted
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
img:
src: /assets/img/impact-page/headshots/desktop-broader-community-headshot.jpg
alt: smiling headshot
- title: On Data
subtitle: name
org: org
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
img:
src: /assets/img/impact-page/headshots/desktop-broader-data-headshot.jpg
alt: smiling headshot
- title: On Federal Agencies
subtitle: name
org: org
class: inverted
blurb: Dui sapien eget mi proin sed libero enim. Proin sagittis nisl
img:
src: /assets/img/impact-page/headshots/desktop-broader-federal-headshot.jpg
alt: smiling headshot
---
{% include hero.html %}
<section id="team-intro" class="team-intro grid-background">
<div class="content-container grid-container">
{% include impact/subnav.html %}
<nav id="subnav" class="tablet:display-none">
<div class="nav-content-container">
<a href="{{site.baseurl}}/impact#team-intro">Note From the Team</a>
<a href="{{site.baseurl}}/impact#years">Through the Years</a>
<a href="{{site.baseurl}}/impact#impact-numbers">By the Numbers</a>
<a href="{{site.baseurl}}/impact#sucess">Success Stories</a>
<a href="{{site.baseurl}}/impact#broader-impact">Broader Impact</a>
<a href="{{site.baseurl}}/impact#report-download">Report Download</a>
</div>
</nav>
<h2>Note from the Team</h2>
<div class="shadow-box">
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Architecto, voluptatum reprehenderit. Vel, assumenda, eum maiores dignissimos rerum non sequi natus beatae fugiat, ea ipsa sunt blanditiis molestias aliquam asperiores esse!</p>
<p>Lorem ipsum dolor sit</p>
</div>
<div class="display-flex flex-justify-center margin-top-4">
<a href="https://opportunity.census.gov/our-process/" target="_blank"
class="usa-button text-ink margin-top-2 tablet:padding-y-2 padding-x-205 usa-button--outline .outline-1px.outline-black tablet:margin-top-4 site-button bg-white text-underline">
Learn more about the TOP Sprint Process
</a>
</div>
</div>
</section>

<section id="years" class="years">
<div class="year-counter-container">
<div class="grid-container content-container">
{% include impact/subnav.html %}
<div class="">
<h2>Through the Years</h2>
</div>
</div>
</div>
<div class="year-timeline-container">
<div class="grid-container content-container">
{% assign section = page.years %}
{% include impact/profile.html data=section %}
</div>
</div>
</section>

<section id="impact-numbers" class="grid-background impact-numbers">
<div class="content-container grid-container">
{% include impact/subnav.html %}
<h2>By the Numbers</h2>
{% assign section = page.impact_numbers %}
{% include impact/numbers.html data=section %}
</div>
</section>

<section id="success" class="success">
<div class="content-container grid-container">
{% include impact/subnav.html %}
<h2>Success Stories</h2>
<div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dui sapien eget mi proin sed libero enim.</p>
</div>
<div class="profiles-container">
{% assign section = page.companies %}
{% include impact/profile.html data=section %}
</div>
</div>
</section>

<section id="broader-impact" class="broader-impact grid-background">
<div class="content-container grid-container">
{% include impact/subnav.html %}
<div>
<h2>Broader Impact</h2>
</div>
<div class="shadow-box">
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Architecto, voluptatum reprehenderit. Vel, assumenda, eum maiores dignissimos rerum non sequi natus beatae fugiat, ea ipsa sunt blanditiis molestias aliquam asperiores esse!</p>
</div>
<div class="profiles-container">
{% assign section = page.profiles %}
{% include impact/profile.html data=section %}
</div>
</div>
</section>

<section id="report-download" class="report-download">
<div class="content-container grid-container">
{% include impact/subnav.html %}
<h2>Report Download</h2>
<div>
<p>Placeholder text</p>
<p>Placeholder img</p>
<div class="display-flex flex-justify-center margin-top-4">
<a href="https://opportunity.census.gov/our-process/" target="_blank"
class="usa-button text-ink margin-top-2 tablet:padding-y-2 padding-x-205 usa-button--outline .outline-1px.outline-black tablet:margin-top-4 site-button bg-white text-underline">
Learn more about the TOP Sprint Process
</a>
</div>
</div>
</div>
</section>
Loading