Skip to content

Commit b033e27

Browse files
author
Scott Murray
committed
add rss feed button
1 parent e92f2cb commit b033e27

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/components/BlogList.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react";
22
import { useNavigate } from "react-router-dom";
33
import { useBlogPosts, usePrefetchBlogPost } from "../hooks/useBlog";
4+
import { Rss } from "lucide-react";
45
import PlantPot from "./PlantPot";
56

67
interface BlogListProps {
@@ -34,9 +35,21 @@ const BlogList: React.FC<BlogListProps> = ({ onPostSelect }) => {
3435
<div className="min-h-screen py-8">
3536
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
3637
<div className="text-center mb-12">
37-
<h1 className="text-xl text-gray-600">
38-
Thoughts, insights, and updates from my journey
39-
</h1>
38+
<div className="flex items-center justify-center gap-4 mb-4">
39+
<h1 className="text-xl text-gray-600">
40+
Thoughts, insights, and updates from my journey
41+
</h1>
42+
<a
43+
href="https://blog-api.murray.kiwi/rss"
44+
target="_blank"
45+
rel="noopener noreferrer"
46+
className="inline-flex items-center gap-2 px-3 py-2 bg-orange-500 hover:bg-orange-600 text-white text-sm font-medium rounded-lg transition-colors duration-200"
47+
title="Subscribe to RSS feed"
48+
>
49+
<Rss className="w-4 h-4" />
50+
RSS
51+
</a>
52+
</div>
4053
</div>
4154

4255
{loading ? (

0 commit comments

Comments
 (0)