feat: Dynamically set document title for Home and TravelMate pages.

This commit is contained in:
Van Leemput Dayron
2025-12-08 15:19:43 +01:00
parent 8f86da9925
commit a01c6c4356
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import { useEffect } from 'react';
import Hero from './Hero';
import About from './About';
import Skills from './Skills';
@@ -6,6 +7,10 @@ import Education from './Education';
import Contact from './Contact';
const Home = () => {
useEffect(() => {
document.title = "Portfolio - Dayron Van Leemput";
}, []);
return (
<>
<Hero />

View File

@@ -1,3 +1,4 @@
import { useEffect } from 'react';
import { motion } from 'framer-motion';
import { useLanguage } from '../contexts/LanguageContext';
import { Link, Outlet } from 'react-router-dom';
@@ -75,6 +76,10 @@ const TravelMate = () => {
}
};
useEffect(() => {
document.title = "Travel Mate";
}, []);
return (
<div className="travel-mate-page" style={{ paddingTop: '100px', minHeight: '100vh', paddingBottom: '50px' }}>
<div className="container" style={{ maxWidth: '1400px', margin: '0 auto', padding: '0 20px' }}>