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

Fix: Contact link does not work properly in the footer #38

Closed
2 changes: 1 addition & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function Footer() {
];

return (
<footer className="bg-primary-100 mt-20">
<footer className="bg-primary-100 mt-20" id="contact">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="grid grid-cols-1 lg:grid-cols-[1fr,auto,auto] gap-8 lg:gap-16">
<div className="max-w-sm">
Expand Down
4 changes: 0 additions & 4 deletions components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,9 @@ export default function Header(props: { fixed?: boolean }) {
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
if (path === item.page) {
document
.getElementById(item.id)
?.scrollIntoView({ behavior: "smooth" });
} else {
router.push(item.page + "#" + item.id);
}
}}
>
{item.content}
Expand Down
1 change: 0 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ export default function Home() {
</section>
<CommitLayout>{null}</CommitLayout>
<section
id="contact"
aria-label="Join Our Open Healthcare Network Slack Community"
>
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
Expand Down