Skip to content

Commit 650b2de

Browse files
committed
SEO: Added Helmet tags to AiChat, FocusRoom and Timetable
1 parent 2a59037 commit 650b2de

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

frontend/src/pages/AiChatPage.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState, useEffect, useRef } from 'react';
2+
import { Helmet } from 'react-helmet-async';
23
import { Send, Bot, User, Sparkles, Trash2, Brain, Zap, Clock, MessageSquare, Target, Coffee, Layout, Calendar, Flame } from 'lucide-react';
34
import API, { aiChat } from '../services/api';
45
import toast from 'react-hot-toast';
@@ -139,6 +140,10 @@ const AiChatPage = () => {
139140

140141
return (
141142
<div className="page-container animate-fade-in chat-layout" style={{ display: 'flex', gap: '1.5rem', height: '100%', maxWidth: '1400px', margin: '0 auto', overflow: 'hidden', padding: '1rem', position: 'relative' }}>
143+
<Helmet>
144+
<title>AI Study Buddy — StudyTrack</title>
145+
<meta name="description" content="Chat with your AI Study Buddy to break down tasks, learn new concepts, and build the perfect study plan." />
146+
</Helmet>
142147

143148
{/* Backdrop for mobile sidebar */}
144149
{showSidebar && (

frontend/src/pages/FocusRoomPage.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState, useEffect, useRef } from 'react';
2+
import { Helmet } from 'react-helmet-async';
23
import { Timer, Play, Pause, Coffee, BookOpen, Clock, Zap, Target, Bot, Send } from 'lucide-react';
34
import API, { addXP, aiChat } from '../services/api';
45
import toast from 'react-hot-toast';
@@ -141,6 +142,10 @@ const FocusRoomPage = () => {
141142

142143
return (
143144
<div style={{ height: 'calc(100vh - 40px)', margin: '-1.5rem', background: '#050510', position: 'relative', overflow: 'hidden' }}>
145+
<Helmet>
146+
<title>Deep Focus Room — StudyTrack</title>
147+
<meta name="description" content="Eliminate distractions and achieve flow state with Pomodoro timers and our AI Study Tutor." />
148+
</Helmet>
144149
{/* Ambient Background - Lofi video iframe (No controls, looping) */}
145150
<div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', opacity: 0.2, pointerEvents: 'none', zIndex: 0 }}>
146151
{/* Embedded Lofi Girl Radio or Similar */}

frontend/src/pages/TimetablePage.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState, useEffect } from 'react';
2+
import { Helmet } from 'react-helmet-async';
23
import { Calendar, Plus, Trash2, X, Settings, Clock, Save, RotateCcw, Bot, Sparkles } from 'lucide-react';
34
import API, { optimizeSchedule } from '../services/api';
45
import toast from 'react-hot-toast';
@@ -122,6 +123,10 @@ const TimetablePage = () => {
122123

123124
return (
124125
<div style={{ maxWidth: 1200, margin: '0 auto', padding: '2rem 1.5rem' }}>
126+
<Helmet>
127+
<title>Weekly Timetable — StudyTrack</title>
128+
<meta name="description" content="Organize your weekly schedule, set study periods, and let AI optimize your timetable." />
129+
</Helmet>
125130
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: '1.5rem' }}>
126131
<h2 style={{ display: 'flex', alignItems: 'center', gap: 8, fontSize: '1.5rem', fontWeight: 700 }}>
127132
<Calendar size={26} color="#6366f1" /> Weekly Timetable

0 commit comments

Comments
 (0)