Add Unhead

This commit is contained in:
Alex Gleason committed 2025-06-07 15:19:21 -05:00
1 parent b3bc9d45e0
commit d1a4e26f79
6 files changed
+79 -21

No files matched your search

+7
View File
@@ -1,6 +1,13 @@
import { useSeoMeta } from '@unhead/react';
// FIXME: Update this page (the content is just a fallback if you fail to update the page)
const Index = () => {
useSeoMeta({
title: 'Welcome to Your Blank App',
description: 'A modern Nostr client application built with React, TailwindCSS, and Nostrify.',
});
return (
<div className="min-h-screen flex items-center justify-center bg-gray-100 dark:bg-gray-900">
<div className="text-center">
+6
View File
@@ -1,9 +1,15 @@
import { useSeoMeta } from "@unhead/react";
import { useLocation } from "react-router-dom";
import { useEffect } from "react";
const NotFound = () => {
const location = useLocation();
useSeoMeta({
title: "404 - Page Not Found",
description: "The page you are looking for could not be found. Return to the home page to continue browsing.",
});
useEffect(() => {
console.error(
"404 Error: User attempted to access non-existent route:",