Add rss feed with latest 10 artworks
This commit is contained in:
@ -3,12 +3,20 @@ import {
|
||||
siLinktree,
|
||||
siMastodon,
|
||||
siPaypal,
|
||||
siRss,
|
||||
siTelegram,
|
||||
siTwitch,
|
||||
type SimpleIcon,
|
||||
} from "simple-icons";
|
||||
|
||||
type SocialKey = "paypal" | "telegram" | "mastodon" | "bluesky" | "linktree" | "twitch";
|
||||
type SocialKey =
|
||||
| "paypal"
|
||||
| "telegram"
|
||||
| "mastodon"
|
||||
| "bluesky"
|
||||
| "linktree"
|
||||
| "twitch"
|
||||
| "rss";
|
||||
|
||||
const SOCIALS: Record<
|
||||
SocialKey,
|
||||
@ -43,7 +51,12 @@ const SOCIALS: Record<
|
||||
label: "Twitch",
|
||||
icon: siTwitch,
|
||||
href: "https://www.twitch.tv/gaertan_art",
|
||||
}
|
||||
},
|
||||
rss: {
|
||||
label: "RSS",
|
||||
icon: siRss,
|
||||
href: "/rss.xml",
|
||||
},
|
||||
};
|
||||
|
||||
function BrandSvg({ icon }: { icon: SimpleIcon }) {
|
||||
@ -60,7 +73,15 @@ function BrandSvg({ icon }: { icon: SimpleIcon }) {
|
||||
}
|
||||
|
||||
export function SocialLinks({
|
||||
items = ["paypal", "telegram", "mastodon", "bluesky", "linktree", "twitch"],
|
||||
items = [
|
||||
"paypal",
|
||||
"telegram",
|
||||
"mastodon",
|
||||
"bluesky",
|
||||
"linktree",
|
||||
"twitch",
|
||||
"rss",
|
||||
],
|
||||
size = "md",
|
||||
}: {
|
||||
items?: SocialKey[];
|
||||
@ -99,4 +120,4 @@ export function SocialLinks({
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user