-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into jw/our-products-layout
- Loading branch information
Showing
24 changed files
with
515 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["esbenp.prettier-vscode"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"css.format.enable": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[scss]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[css]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[html]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Hero from '../components/Hero/Hero'; | ||
|
||
export default function CaseStudies() { | ||
return ( | ||
<div> | ||
<Hero | ||
header="See how DIBBs solutions have helped others" | ||
subheader="Explore our case studies to see the impact of DIBBs." | ||
/> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { GridContainer } from '@trussworks/react-uswds'; | ||
import classNames from 'classnames'; | ||
|
||
interface ContentContainerProps { | ||
children: React.ReactNode; | ||
align?: boolean; | ||
} | ||
export function ContentContainer({ | ||
children, | ||
align = false, | ||
}: ContentContainerProps) { | ||
return ( | ||
<section> | ||
<GridContainer | ||
className={classNames('px-14 py-20', { | ||
'px-32': !align, | ||
})} | ||
> | ||
{children} | ||
</GridContainer> | ||
</section> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@media (min-width: 1024px) { | ||
.navbarLogoText { | ||
font-size: 22px; | ||
} | ||
} | ||
|
||
@media (max-width: 1024px) { | ||
.navbarLogoText { | ||
font-size: 13px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
'use client'; | ||
import { PrimaryNav } from '@trussworks/react-uswds'; | ||
import Image from 'next/image'; | ||
import React from 'react'; | ||
import { NavigationLink } from '../NavigationLink/NavigationLink'; | ||
import classNames from 'classnames'; | ||
import { basePath } from '../../utils/constants'; | ||
import styles from './Footer.module.scss'; | ||
|
||
export default function Footer() { | ||
const [expanded, setExpanded] = React.useState(false); | ||
const onClick = () => { | ||
if (window.innerWidth < 1024) setExpanded((prvExpanded) => !prvExpanded); | ||
}; | ||
|
||
const testItemsMenu = [ | ||
<NavigationLink key="one" href="/" onClick={onClick}> | ||
Home | ||
</NavigationLink>, | ||
<NavigationLink key="two" href="/our-products" onClick={onClick}> | ||
Our products | ||
</NavigationLink>, | ||
<NavigationLink key="three" href="/case-studies" onClick={onClick}> | ||
Case studies | ||
</NavigationLink>, | ||
<NavigationLink key="four" href="/engage-with-us" onClick={onClick}> | ||
Engage with us | ||
</NavigationLink>, | ||
]; | ||
|
||
return ( | ||
<footer className="usa-header--basic bg-background-teal"> | ||
<div className="usa-nav-container flex-vertical-center"> | ||
<div className="usa-navbar"> | ||
<div className="usa-logo"> | ||
<em className="usa-logo__text"> | ||
<a href="http://cdc.gov" title="<Project title>"> | ||
<span className={classNames('sr-only', styles.navbarLogoText)}> | ||
CDC US center for disease control and prevention | ||
</span> | ||
<Image | ||
width={200} | ||
height={40} | ||
alt="" | ||
className="margin-x-0" | ||
src={`${basePath}/images/CDC.svg`} | ||
/> | ||
</a> | ||
</em> | ||
</div> | ||
<button type="button" className="usa-menu-btn"> | ||
Menu | ||
</button> | ||
</div> | ||
<PrimaryNav | ||
items={testItemsMenu} | ||
mobileExpanded={expanded} | ||
onToggleMobileNav={onClick} | ||
/> | ||
</div> | ||
</footer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@media (min-width: 1024px) { | ||
.navbarLogoText { | ||
font-size: 22px; | ||
} | ||
} | ||
|
||
@media (max-width: 1024px) { | ||
.navbarLogoText { | ||
font-size: 13px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.content { | ||
display: flex; | ||
padding: 0px 30px; | ||
align-items: center; | ||
gap: 60px; | ||
max-width: 1200px; | ||
} | ||
|
||
.heading { | ||
max-width: 58.75rem; | ||
color: #224a58; | ||
font-size: 40px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
margin: 0px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { GridContainer } from '@trussworks/react-uswds'; | ||
import styles from './Hero.module.scss'; | ||
|
||
interface HeroProps { | ||
header: string; | ||
subheader: string; | ||
} | ||
|
||
export default function Hero({ header, subheader }: HeroProps) { | ||
return ( | ||
<section className="usa-graphic-list usa-section usa-section--light-blue"> | ||
<GridContainer> | ||
<div className={styles.content}> | ||
<div className="flex flex-col items-start gap-3 self-start"> | ||
<h1 className={styles.heading}>{header}</h1> | ||
<p className="m-0 max-w-[53.9rem] text-[1.38rem] font-light leading-[2rem] text-[#224a58]"> | ||
{subheader} | ||
</p> | ||
</div> | ||
</div> | ||
</GridContainer> | ||
</section> | ||
); | ||
} |
2 changes: 1 addition & 1 deletion
2
src/app/components/MarkdownComponent.tsx → ...s/MarkdownComponent/MarkdownComponent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/app/components/NavigationLink/NavigationLink.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@media (min-width: 1024px) { | ||
.navbarItemText { | ||
color: #f0f0f0; | ||
} | ||
} | ||
|
||
@media (max-width: 1024px) { | ||
.navbarItemText { | ||
color: #565c65; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/app/components/NavigationLink.tsx → ...ponents/NavigationLink/NavigationLink.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.