Update website to reflect a more personal and welcoming message for users
Updates SEO title and description in constants.tsx and home-page.tsx, also adds Open Graph meta tags. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d004b9e1-f9be-46e2-acda-f440ccd644a9 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/af8dabca-e746-4e53-9c29-d8d4d9cf30f5/f95d9a57-1b95-4ef2-b18b-e8d99518f710.jpg
This commit is contained in:
parent
25d10ff78d
commit
c7ec039e0e
|
|
@ -76,8 +76,8 @@ export const CLASS_TYPES = {
|
||||||
// SEO metadata
|
// SEO metadata
|
||||||
export const SEO = {
|
export const SEO = {
|
||||||
home: {
|
home: {
|
||||||
title: "Pilates with Fadia | Find Balance, Strength & Inner Peace",
|
title: "Pilates with Fadia - Feel at Home in Your Body",
|
||||||
description: "Transform your body and mind through the art of Pilates. Join our serene studio for personalized sessions that promote harmony, flexibility, and strength."
|
description: "Online pilates classes to help you feel stronger and more connected to your body and breath."
|
||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
title: "About Fadia | Pilates with Fadia",
|
title: "About Fadia | Pilates with Fadia",
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,33 @@ import { useEffect } from "react";
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
// Set meta data for SEO
|
// Set meta data for SEO
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = "Pilates with Fadia | Find Balance, Strength & Inner Peace";
|
document.title = "Pilates with Fadia - Feel at Home in Your Body";
|
||||||
|
|
||||||
|
// Update meta description
|
||||||
|
let metaDescription = document.querySelector('meta[name="description"]');
|
||||||
|
if (!metaDescription) {
|
||||||
|
metaDescription = document.createElement('meta');
|
||||||
|
metaDescription.setAttribute('name', 'description');
|
||||||
|
document.head.appendChild(metaDescription);
|
||||||
|
}
|
||||||
|
metaDescription.setAttribute('content', 'Online pilates classes to help you feel stronger and more connected to your body and breath.');
|
||||||
|
|
||||||
|
// Add Open Graph tags for better social sharing
|
||||||
|
let ogTitle = document.querySelector('meta[property="og:title"]');
|
||||||
|
if (!ogTitle) {
|
||||||
|
ogTitle = document.createElement('meta');
|
||||||
|
ogTitle.setAttribute('property', 'og:title');
|
||||||
|
document.head.appendChild(ogTitle);
|
||||||
|
}
|
||||||
|
ogTitle.setAttribute('content', 'Pilates with Fadia - Feel at Home in Your Body');
|
||||||
|
|
||||||
|
let ogDescription = document.querySelector('meta[property="og:description"]');
|
||||||
|
if (!ogDescription) {
|
||||||
|
ogDescription = document.createElement('meta');
|
||||||
|
ogDescription.setAttribute('property', 'og:description');
|
||||||
|
document.head.appendChild(ogDescription);
|
||||||
|
}
|
||||||
|
ogDescription.setAttribute('content', 'Online pilates classes to help you feel stronger and more connected to your body and breath.');
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue