File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11import React , { useState , useEffect } from 'react' ;
2+ import { Link } from 'react-router-dom' ;
23import PostItem from '../components/PostItem' ;
4+ import { FaArrowLeft } from 'react-icons/fa' ;
35
46const BlogPage = ( ) => {
57 const [ posts , setPosts ] = useState ( [ ] ) ;
@@ -14,6 +16,9 @@ const BlogPage = () => {
1416 < div className = "py-16 sm:py-24" >
1517 < div className = "mx-auto max-w-7xl px-6 lg:px-8" >
1618 < div className = "mx-auto max-w-2xl text-center" >
19+ < Link to = "/" className = "text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4" >
20+ < FaArrowLeft className = "text-xl" /> Back to Home
21+ </ Link >
1722 < h1 className = "text-4xl font-semibold tracking-tight text-white sm:text-6xl" >
1823 From the Blog
1924 </ h1 >
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import { Link } from 'react-router-dom' ;
23import ProjectCard from '../components/ProjectCard' ;
34import { useProjects } from '../utils/projectParser' ;
5+ import { FaArrowLeft } from 'react-icons/fa' ;
46
57const ProjectsPage = ( ) => {
68 const { projects, loading, error } = useProjects ( ) ;
@@ -17,6 +19,9 @@ const ProjectsPage = () => {
1719 < div className = "py-16 sm:py-24" >
1820 < div className = "mx-auto max-w-7xl px-6 lg:px-8" >
1921 < div className = "mx-auto max-w-2xl text-center" >
22+ < Link to = "/" className = "text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4" >
23+ < FaArrowLeft className = "text-xl" /> Back to Home
24+ </ Link >
2025 < h1 className = "text-4xl font-semibold tracking-tight text-white sm:text-6xl" >
2126 My Projects
2227 </ h1 >
You can’t perform that action at this time.
0 commit comments