Skip to content

Commit f8cbf43

Browse files
author
Chad $yntax
committed
add privacy policy to navigation
1 parent 794c9e1 commit f8cbf43

File tree

4 files changed

+31
-18
lines changed

4 files changed

+31
-18
lines changed

components/Footer.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import Link from 'next/link';
2+
13
export const Footer = () => {
24
return (
3-
<div className="py-4">
5+
<div className="py-4 w-full text-center">
6+
<div>
7+
<Link className="text-xs hover:underline" href="/privacy-policy">
8+
Privacy Policy
9+
</Link>
10+
</div>
411
<p className="text-xs">© {new Date().getFullYear()} Chad Syntax LLC</p>
512
</div>
613
);

components/HeroHeader.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import Link from 'next/link';
2+
import { ThemeSwitcher } from './theme-switcher';
3+
4+
type HeroHeaderProps = {
5+
title?: string;
6+
};
7+
8+
export const HeroHeader = ({ title = 'Agentsmith' }: HeroHeaderProps) => {
9+
return (
10+
<div className="flex justify-between items-center mb-4 md:mb-12">
11+
<Link href="/">
12+
<h2 className="text-2xl md:text-5xl font-bold">{title}</h2>
13+
</Link>
14+
<ThemeSwitcher />
15+
</div>
16+
);
17+
};

components/landing-pages/LandingHero.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { ThemeSwitcher } from '../theme-switcher';
1010
import { useRef, useState } from 'react';
1111
import { usePostHog } from 'posthog-js/react';
1212
import Link from 'next/link';
13+
import { HeroHeader } from '../HeroHeader';
1314

1415
type LandingHeroProps = {
1516
withAlphaClub?: boolean;
@@ -41,12 +42,7 @@ export const LandingHero = (props: LandingHeroProps) => {
4142

4243
return (
4344
<div className="mb-16">
44-
<div className="flex justify-between items-center mb-4 md:mb-12">
45-
<Link href="/">
46-
<h2 className="text-2xl md:text-5xl font-bold">Agentsmith</h2>
47-
</Link>
48-
<ThemeSwitcher />
49-
</div>
45+
<HeroHeader />
5046
<div className="flex justify-start items-center md:items-start flex-col lg:flex-row">
5147
<div className="flex flex-col">
5248
<h1 className="max-w-[400px] md:max-w-none text-5xl md:text-8xl font-bold leading-tight mb-10 leading-[1] md:leading-[90px]">

page-components/PrivacyPolicyPage.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
import { ThemeSwitcher } from '@/components/theme-switcher';
1+
import { HeroHeader } from '@/components/HeroHeader';
22

33
export const PrivacyPolicyPage = () => {
44
return (
55
<main>
6-
<article className="mx-auto px-4 max-w-[1400px] py-16">
7-
<nav
8-
className="flex justify-between items-center"
9-
aria-label="Top navigation"
10-
>
11-
<h1 className="text-4xl font-bold mb-6">Privacy Policy</h1>
12-
<ThemeSwitcher />
13-
</nav>
14-
6+
<article className="mx-auto px-4 max-w-[1400px] py-4 md:py-12">
7+
<HeroHeader />
8+
<h1 className="text-2xl md:text-4xl font-bold mb-4">Privacy Policy</h1>
159
<div className="space-y-4">
1610
<p>
1711
<strong>Last updated:</strong> 2-7-2025
1812
</p>
19-
2013
<section aria-label="Introduction">
2114
<p className="pt-6">
2215
This Privacy Policy describes how Chad Syntax LLC (the

0 commit comments

Comments
 (0)