Skip to content

Commit

Permalink
Merge branch 'next' of github.com:CDCgov/phdi-site into header-style-…
Browse files Browse the repository at this point in the history
…pages
  • Loading branch information
nickbristow committed Nov 20, 2024
2 parents 98f21cc + 575bd17 commit 2345b90
Show file tree
Hide file tree
Showing 10 changed files with 706 additions and 35 deletions.
Binary file added public/images/ecr-viewer_how-it-works.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Footer() {
<NavigationLink key="one" href="/" onClick={onClick}>
Home
</NavigationLink>,
<NavigationLink key="two" href="/our-products" onClick={onClick}>
<NavigationLink key="two" href="/products" onClick={onClick}>
Our products
</NavigationLink>,
<NavigationLink key="three" href="/case-studies" onClick={onClick}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const heroContent: HeroContent = {
const navigationItems = [
{
key: 'products',
href: '/our-products',
href: '/products',
text: 'Our products',
},
{
Expand Down
10 changes: 8 additions & 2 deletions src/app/components/NavigationLink/NavigationLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ export function NavigationLink({
onClick,
}: NavigationLinkProps) {
const pathname = usePathname();
const isActive = pathname === href;
const isActive = pathname.includes(href.toString());

return (
<Link href={href} passHref onClick={onClick}>
<Link
href={href}
passHref
onClick={onClick}
{...(isActive ? { 'aria-current': 'page' } : {})}
>
<span
className={classNames('text-white', {
underline: isActive,
Expand Down
8 changes: 2 additions & 6 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const homeContent = {
description:
'DIBBs products help jurisdictions make the most of their data. From improving the usability of electronic case reporting (eCR) data to streamlining data collection from healthcare providers without the need for a direct connection, our products save jurisdictions time and effort for case investigation and analysis.',
ctaText: 'Find out more about our products',
ctaHref: '/our-products',
ctaHref: '/products',
},
jurisdictions: {
title: 'Jurisdictions working with DIBBs',
Expand Down Expand Up @@ -104,11 +104,7 @@ function ValueSection() {
<p className="text-base font-normal leading-relaxed text-[#224a58] xl:max-w-[28.13rem]">
{valueSection.description}
</p>
<LinkButton
href={valueSection.ctaHref}
variant="primary"
className="justify-self-start"
>
<LinkButton href={valueSection.ctaHref} variant="primary">
{valueSection.ctaText}
</LinkButton>
</div>
Expand Down
23 changes: 0 additions & 23 deletions src/app/product-detail/page.tsx

This file was deleted.

Loading

0 comments on commit 2345b90

Please sign in to comment.