Skip to content

Commit 694858a

Browse files
home temp
1 parent 237e2d0 commit 694858a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/layouts/SubPageLayout.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState, useRef, useEffect } from 'react';
22
import { Outlet, useNavigate, Link } from 'react-router-dom';
33
import { FiArrowLeft, FiSettings, FiLogOut, FiLogIn } from 'react-icons/fi';
4+
import { FaHome } from 'react-icons/fa';
45
import { motion, AnimatePresence } from 'framer-motion';
56
import { FiBookOpen } from 'react-icons/fi';
67
import Footer from './Footer';
@@ -37,13 +38,22 @@ export default function SubPageLayout() {
3738
<div className="bg-slate-50 min-h-screen">
3839
<header className="bg-white/80 backdrop-blur-lg border-b border-slate-200 sticky top-0 z-30">
3940
<div className="container mx-auto px-6 py-2 flex items-center justify-between">
41+
<div>
4042
<button
4143
onClick={() => navigate(-1)}
4244
className="font-semibold text-slate-600 hover:text-blue-600 transition-colors inline-flex items-center gap-2 cursor-pointer"
4345
>
4446
<FiArrowLeft />
4547
Back
4648
</button>
49+
<button
50+
onClick={() => navigate('/')}
51+
className="ml-4 font-semibold text-slate-600 hover:text-blue-600 transition-colors inline-flex items-center gap-2 cursor-pointer"
52+
>
53+
<FaHome />
54+
Home
55+
</button>
56+
</div>
4757

4858
{/* User Profile / Login Section */}
4959
{isAuthenticated && user ? (

0 commit comments

Comments
 (0)