src/pages/feeds.astro 2.2 K raw
1
---
2
import PageLayout from "@/layouts/Base.astro";
3
import { RSS_FEEDS } from "@/data/constants";
4
5
const meta = {
6
	title: "/feeds",
7
	description: "RSS feeds available on this site",
8
};
9
---
10
<PageLayout meta={meta}>
11
  <div class="space-y-6">
12
    <h1 class="title">/feeds</h1>
13
    <p>RSS feeds available on this site and some of my other apps. Drop any of these into your reader of choice.</p>
14
    <ul class="list-none pl-0 grid grid-cols-1 sm:grid-cols-2 gap-4">
15
      {RSS_FEEDS.map((feed) => {
16
        const absHref = feed.href.startsWith("http")
17
          ? feed.href
18
          : `https://stevedylan.dev${feed.href}`;
19
        return (
20
          <li class="group relative flex flex-col gap-2 border border-zinc-700 hover:border-zinc-500 rounded-md p-4 transition-colors">
21
            <div class="flex items-center gap-2">
22
              <svg
23
                xmlns="http://www.w3.org/2000/svg"
24
                width="18"
25
                height="18"
26
                viewBox="0 0 256 256"
27
                class="shrink-0 text-accent-2"
28
                aria-hidden="true"
29
              >
30
                <path
31
                  fill="currentColor"
32
                  d="M106.91 149.09A71.53 71.53 0 0 1 128 200a8 8 0 0 1-16 0a56 56 0 0 0-56-56a8 8 0 0 1 0-16a71.53 71.53 0 0 1 50.91 21.09M56 80a8 8 0 0 0 0 16a104 104 0 0 1 104 104a8 8 0 0 0 16 0A120 120 0 0 0 56 80m118.79 1.21A166.9 166.9 0 0 0 56 32a8 8 0 0 0 0 16a151 151 0 0 1 107.48 44.52A151 151 0 0 1 208 200a8 8 0 0 0 16 0a166.9 166.9 0 0 0-49.21-118.79M60 184a12 12 0 1 0 12 12a12 12 0 0 0-12-12"
33
                />
34
              </svg>
35
              <p class="font-bold m-0">{feed.name}</p>
36
            </div>
37
            {feed.description && (
38
              <p class="m-0 text-zinc-400">{feed.description}</p>
39
            )}
40
            <div class="flex items-center gap-2 mt-auto pt-2">
41
              <a
42
                href={feed.href}
43
                target="_blank"
44
                rel="noreferrer"
45
                class="style-link truncate text-xs"
46
              >
47
                {feed.href}
48
              </a>
49
            </div>
50
          </li>
51
        );
52
      })}
53
    </ul>
54
    <p>If you're looking for the list of blogs I follow, check out <a class="style-link" href="/blogroll">/blogroll</a></p>
55
  </div>
56
</PageLayout>