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

feat: improve accessibility and layout on home page #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
73 changes: 50 additions & 23 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,63 @@ import Link from "next/link";
export default function Home() {
return (
<div className="flex min-h-screen flex-col justify-between p-8 font-[family-name:var(--font-geist-sans)] sm:p-20">
<main className="flex flex-grow flex-col items-center justify-center">
<div>
Hi. I&apos;m{" "}
<a
href="https://twitter.com/t3dotgg"
target="_blank"
rel="noopener noreferrer"
className="hover:underline"
<main
className="flex flex-grow flex-col items-center justify-center gap-4"
role="main"
>
<section className="text-center" aria-labelledby="introduction">
<h1 id="introduction">
Hi. I&apos;m{" "}
<a
href="https://twitter.com/t3dotgg"
target="_blank"
rel="noopener noreferrer"
className="hover:underline"
aria-label="Theo's Twitter profile"
>
Theo
</a>
. I built these tools because I was annoyed they did not exist.
</h1>
</section>

<nav className="flex flex-col text-center" aria-label="Main navigation">
<Link
href="/svg-to-png"
className="text-blue-500 hover:underline"
aria-label="SVG to PNG converter"
>
SVG to PNG converter
</Link>

<Link
href="/square-image"
className="text-blue-500 hover:underline"
aria-label="Square image generator"
>
Theo
</a>
. I built these tools because I was annoyed they did not exist.
</div>
<div className="mt-4"></div>
<Link href="/svg-to-png" className="text-blue-500 hover:underline">
SVG to PNG converter
</Link>
<Link href="/square-image" className="text-blue-500 hover:underline">
Square image generator
</Link>
<Link href="/rounded-border" className="text-blue-500 hover:underline">
Corner Rounder
</Link>
Square image generator
</Link>

<Link
href="/rounded-border"
className="text-blue-500 hover:underline"
aria-label="Corner Rounder"
>
Corner Rounder
</Link>
</nav>
</main>
<footer className="mt-8 text-center text-sm text-gray-500">

<footer
className="mt-8 text-center text-sm text-gray-500"
aria-label="Footer"
>
<a
href="https://github.com/t3dotgg/quickpic"
target="_blank"
rel="noopener noreferrer"
className="hover:underline"
aria-label="View the project on GitHub"
>
View on GitHub
</a>
Expand Down