Skip to content

Commit 553da12

Browse files
committed
back to home
1 parent ff995e5 commit 553da12

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/pages/BlogPage.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React, { useState, useEffect } from 'react';
2+
import { Link } from 'react-router-dom';
23
import PostItem from '../components/PostItem';
4+
import { FaArrowLeft } from 'react-icons/fa';
35

46
const 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>

src/pages/ProjectsPage.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react';
2+
import { Link } from 'react-router-dom';
23
import ProjectCard from '../components/ProjectCard';
34
import { useProjects } from '../utils/projectParser';
5+
import { FaArrowLeft } from 'react-icons/fa';
46

57
const 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>

0 commit comments

Comments
 (0)