From c7ec039e0e93b0daa77c591a353ac9aed468ec2e Mon Sep 17 00:00:00 2001 From: JeffEmmett <20747463-JeffEmmett@users.noreply.replit.com> Date: Wed, 21 May 2025 14:35:38 +0000 Subject: [PATCH] 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 --- client/src/lib/constants.tsx | 4 ++-- client/src/pages/home-page.tsx | 28 +++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/client/src/lib/constants.tsx b/client/src/lib/constants.tsx index 8ca57a0..96c507d 100644 --- a/client/src/lib/constants.tsx +++ b/client/src/lib/constants.tsx @@ -76,8 +76,8 @@ export const CLASS_TYPES = { // SEO metadata export const SEO = { home: { - title: "Pilates with Fadia | Find Balance, Strength & Inner Peace", - description: "Transform your body and mind through the art of Pilates. Join our serene studio for personalized sessions that promote harmony, flexibility, and strength." + title: "Pilates with Fadia - Feel at Home in Your Body", + description: "Online pilates classes to help you feel stronger and more connected to your body and breath." }, about: { title: "About Fadia | Pilates with Fadia", diff --git a/client/src/pages/home-page.tsx b/client/src/pages/home-page.tsx index 780aad5..c974c48 100644 --- a/client/src/pages/home-page.tsx +++ b/client/src/pages/home-page.tsx @@ -11,7 +11,33 @@ import { useEffect } from "react"; export default function HomePage() { // Set meta data for SEO 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 (