Skip to content

Commit

Permalink
Updates front page title/intro (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
benhammondmusic committed Apr 28, 2023
1 parent 3f2145a commit a605cbe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 63 deletions.
2 changes: 1 addition & 1 deletion frontend/playwright-tests/userFlow-HomeToVaxAge.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.describe('Home to COVID Vax by Age', () => {

// Landing Page Loads
await page.goto('/', { waitUntil: "networkidle" });
await expect(page.locator('#main')).toContainText('Better Data for Equity');
await expect(page.locator('#main')).toContainText('Advancing Health Justice');

// @ts-ignore
await expect(page).toPassAxe()
Expand Down
19 changes: 1 addition & 18 deletions frontend/src/pages/Landing/LandingPage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@
@include tav300();
text-align: left;
color: $alt-green;
font-size: $bigHeader;
line-height: $lhNormal;

@media (min-width: $sm) {
font-size: $biggerHeader;
}

@media (min-width: $lg) {
padding-bottom: 20px;
}
padding: 3rem 1rem 1rem 1rem;
}

.HeaderSubtext {
Expand Down Expand Up @@ -81,13 +72,8 @@

.RecentNewsHeaderText {
@include tav300();
font-size: $header;
text-align: center;
color: $alt-green;

@media (min-width: $lg) {
font-size: $biggerHeader;
}
}

.RecentNewsHeaderSubtext {
Expand Down Expand Up @@ -115,7 +101,6 @@

.HowToHeaderText {
@include tav300();
font-size: $bigHeader;
text-align: center;
color: $alt-green;
padding-bottom: 56px;
Expand Down Expand Up @@ -170,10 +155,8 @@

.NewsletterSignUpHeader {
@include tav300();

color: $alt-green;
margin-top: 2rem;
font-size: $header;
margin-bottom: 1rem;
}

Expand Down
68 changes: 24 additions & 44 deletions frontend/src/pages/Landing/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import type { Article } from '../WhatIsHealthEquity/NewsTab'
import { ArticlesSkeleton } from '../WhatIsHealthEquity/News/AllPosts'
import { usePrefersReducedMotion } from '../../utils/hooks/usePrefersReducedMotion'
import { urlMap } from '../../utils/externalUrls'
import { Link } from 'react-router-dom'

function LandingPage() {
const { isLoading, error, data }: any = useQuery(
Expand Down Expand Up @@ -63,48 +62,31 @@ function LandingPage() {
justifyContent="center"
alignItems="center"
>
<Grid
item
className={styles.HeaderTextItem}
xs={12}
sm={12}
md={6}
lg={7}
>
<Grid item className={styles.HeaderTextItem} xs={12} sm={12} md={7}>
<Typography
id="main"
className={styles.HeaderText}
variant="h2"
variant="h3"
paragraph={true}
component="h3"
>
Better Data for Equity
</Typography>
<Typography
className={styles.HeaderSubtext}
variant="body1"
paragraph={true}
>
Our tracker puts Health Equity first. Envisioned by the Satcher
Health Leadership Institute, the Health Equity Tracker is designed
to boost inclusivity, highlight at-risk populations, alert users
to existing inequities in health data, and so much more.
Advancing Health Justice
</Typography>

<Typography
className={styles.HeaderSubtext}
variant="body1"
paragraph={true}
>
Our goal for this tool is to support the work being done by
policymakers, community leaders, researchers, and ultimately all
champions for health equity.{' '}
<Link to={EXPLORE_DATA_PAGE_LINK}>Explore our tracker today</Link>{' '}
and find data to help your community reach their best level of
health.
The Health Equity Tracker from the Satcher Health Leadership
Institute aims to address health disparities in the United States
by identifying at-risk populations and highlighting data
inequities. By providing policymakers, community leaders, and
researchers the data they need to make informed decisions, this
scalable, feature-rich platform supports efforts to achieve health
equity and justice for all.
</Typography>

<Box mt={5}>
<Box my={5}>
<Button
id="landingPageCTA"
variant="contained"
Expand All @@ -116,14 +98,7 @@ function LandingPage() {
</Button>
</Box>
</Grid>
<Grid
item
xs={12}
sm={12}
md={6}
lg={5}
className={styles.HeaderImgItem}
>
<Grid item xs={12} sm={12} md={5} className={styles.HeaderImgItem}>
<img
height="601"
width="700"
Expand All @@ -143,7 +118,7 @@ function LandingPage() {
<Grid item xs={12}>
<Typography
className={styles.RecentNewsHeaderText}
variant="h2"
variant="h4"
component="h3"
>
Recent news
Expand All @@ -155,8 +130,7 @@ function LandingPage() {
variant="subtitle1"
component="p"
>
News and stories from the Satcher Health Leadership Institute and
beyond
News and stories from Morehouse School of Medicine and beyond
</Typography>
</Grid>
<Grid item xs={12}>
Expand Down Expand Up @@ -207,7 +181,7 @@ function LandingPage() {
<Grid item xs={12}>
<Typography
className={styles.HowToHeaderText}
variant="h2"
variant="h4"
component="h3"
>
How do I use the Health Equity Tracker?
Expand Down Expand Up @@ -376,9 +350,15 @@ function LandingPage() {
component={'aside'}
>
<section className={styles.NewsletterSignUpBox}>
<h4 className={styles.NewsletterSignUpHeader}>
Sign up for our newsletter:
</h4>
<Grid item xs={12}>
<Typography
className={styles.NewsletterSignUpHeader}
variant="h4"
component="h3"
>
Sign up for our newsletter:
</Typography>
</Grid>

<form
action={urlMap.newsletterSignup}
Expand Down

0 comments on commit a605cbe

Please sign in to comment.