Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/privacy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Metadata } from 'next';
import { SITE_URL } from '../../lib/projectPages';
import { EMAIL } from '../../lib/siteProfile';
import StandaloneBar from '../../standalone/StandaloneBar';
import PageTitle from '../../standalone/PageTitle';
import Contents from '../../standalone/Contents';
import '../../standalone/standalone.css';
import '../../standalone/privacy.css';
Expand Down Expand Up @@ -90,7 +91,7 @@ export default function Privacy() {
<StandaloneBar current="privacy" />
<main className="pv">
<header className="pv-hero pj-page-heading">
<div className="pj-heading-title"><h1 className="pj-display">Privacy &amp; terms</h1><svg className="pj-title-stroke" viewBox="0 0 360 20" fill="none" aria-hidden="true"><path d="M4 13C83 3 188 4 271 9S332 12 355 6M36 17C118 11 208 12 287 14" stroke="currentColor" strokeWidth="4" strokeLinecap="round" /></svg></div>
<PageTitle>Privacy &amp; terms</PageTitle>
<p className="pv-lead">The short version: this site keeps a simple record of visits to see what people read, and keeps what you send through its forms so it can reply. Nothing is sold or shared for advertising, and there are no ad or tracking networks on it.</p>
</header>

Expand Down
3 changes: 2 additions & 1 deletion src/app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from 'next';
import { SITE_URL, projectPages, projectPageUrl, tagsDoc, contributorsDoc, profileRows } from '../../lib/projectPages';
import { baseGraph, jsonLd, personRef, websiteRef, SHARE_CARD } from '../../lib/siteProfile';
import StandaloneBar from '../../standalone/StandaloneBar';
import PageTitle from '../../standalone/PageTitle';
import ProjectsList from '../../standalone/ProjectsList';
import type { FirestoreProject } from '../../home/projects/shape';
import '../../standalone/standalone.css';
Expand Down Expand Up @@ -62,7 +63,7 @@ export default function ProjectsIndex() {
<StandaloneBar current="list" />
<main>
<header className="pj-list-head pj-page-heading">
<div className="pj-heading-title"><h1 className="pj-display">Projects</h1><svg className="pj-title-stroke" viewBox="0 0 360 20" fill="none" aria-hidden="true"><path d="M4 13C83 3 188 4 271 9S332 12 355 6M36 17C118 11 208 12 287 14" stroke="currentColor" strokeWidth="4" strokeLinecap="round" /></svg></div>
<PageTitle>Projects</PageTitle>
<p className="pj-intro">Things I designed and built: web apps, AI tools, a desktop system and UI designs. Each one has its live site and source code.</p>
</header>
<ProjectsList projects={gridProjects} tagsDoc={tagsDoc} contributorsDoc={contributorsDoc} profiles={profileRows} />
Expand Down
30 changes: 30 additions & 0 deletions src/standalone/PageTitle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'use client';

import { useEffect, useRef } from 'react';
import { enter } from '../home/entrance';
import { handwrite } from '../lib/handwrite';

/** The same heading entrance and pen timing used in the homepage sections. */
export default function PageTitle({ children }: { children: string }) {
const headingRef = useRef<HTMLHeadingElement>(null);
const inkRef = useRef<SVGSVGElement>(null);

useEffect(() => {
const heading = enter(headingRef.current, { x: -30 }, { duration: 800, delay: 150 });
const ink = handwrite(inkRef.current, { delay: 150 });
return () => {
heading?.stop();
ink.forEach(animation => animation.cancel());
};
}, []);

return (
<div className="pj-heading-title">
<h1 ref={headingRef} className="pj-display">{children}</h1>
<svg ref={inkRef} className="pj-title-stroke" viewBox="0 0 360 20" fill="none" aria-hidden="true">
<path d="M4 13C83 3 188 4 271 9S332 12 355 6" pathLength="1" data-pen="8" stroke="currentColor" strokeWidth="4" strokeLinecap="round" />
<path d="M36 17C118 11 208 12 287 14" pathLength="1" data-pen="5" stroke="currentColor" strokeWidth="4" strokeLinecap="round" />
</svg>
</div>
);
}
Loading