feat(badges): modified the badges libs so you don't have to prepend the badge folder path to each badge
This commit is contained in:
parent
068e3fd823
commit
bf2f1f6998
3 changed files with 39 additions and 37 deletions
|
|
@ -1,34 +1,34 @@
|
||||||
import type BadgeInfo from "./BadgeInfo";
|
import type BadgeInfo from "./BadgeInfo";
|
||||||
|
|
||||||
const FriendBadgesPath = "/Badges/Friends/";
|
export const FriendBadgePath = "/Badges/Friends/";
|
||||||
|
|
||||||
const FriendBadges: Array<BadgeInfo> = [
|
const FriendBadges: Array<BadgeInfo> = [
|
||||||
{
|
{
|
||||||
image: FriendBadgesPath + "june-button.gif",
|
image: "june-button.gif",
|
||||||
title: "June"
|
title: "June"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: FriendBadgesPath + "astreaprtcl.png",
|
image: "astreaprtcl.png",
|
||||||
url: "https://astreaprtcl.dev",
|
url: "https://astreaprtcl.dev",
|
||||||
title: "⌬-0x7e5ac6"
|
title: "⌬-0x7e5ac6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: FriendBadgesPath + "ceressees.gif",
|
image: "ceressees.gif",
|
||||||
url: "https://ceressees.dev",
|
url: "https://ceressees.dev",
|
||||||
title: "Ceres"
|
title: "Ceres"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: FriendBadgesPath + "girlkissing.png",
|
image: "girlkissing.png",
|
||||||
url: "https://girlkissing.tips",
|
url: "https://girlkissing.tips",
|
||||||
title: "Luna"
|
title: "Luna"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: FriendBadgesPath + "autumnvleaves.jpg",
|
image: "autumnvleaves.jpg",
|
||||||
url: "https://autumnvleaves.neocities.org/",
|
url: "https://autumnvleaves.neocities.org/",
|
||||||
title: "Autumn"
|
title: "Autumn"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: FriendBadgesPath + "eva_poti_chat.png",
|
image: "eva_poti_chat.png",
|
||||||
url: "https://www.poti.chat",
|
url: "https://www.poti.chat",
|
||||||
title: "Eva"
|
title: "Eva"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,140 +1,140 @@
|
||||||
import type BadgeInfo from "./BadgeInfo";
|
import type BadgeInfo from "./BadgeInfo";
|
||||||
|
|
||||||
const OtherBadgePath = "/Badges/Other/"
|
export const OtherBadgePath = "/Badges/Other/"
|
||||||
|
|
||||||
const OtherBadges: Array<BadgeInfo> = [
|
const OtherBadges: Array<BadgeInfo> = [
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "riley-button.jpg",
|
image: "riley-button.jpg",
|
||||||
url: "https://foxgirlriley.neocities.org",
|
url: "https://foxgirlriley.neocities.org",
|
||||||
title: "meeeeeeeee",
|
title: "meeeeeeeee",
|
||||||
alt: "riley :3"
|
alt: "riley :3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "fops.png",
|
image: "fops.png",
|
||||||
url: "https://tumblr.com/sashasurname",
|
url: "https://tumblr.com/sashasurname",
|
||||||
title: "I'm a fops!!! (click for the artist!)",
|
title: "I'm a fops!!! (click for the artist!)",
|
||||||
alt: "The word fops on a badge that looks like a fox tail"
|
alt: "The word fops on a badge that looks like a fox tail"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "tumblr.png",
|
image: "tumblr.png",
|
||||||
url: "https://tumblr.com/foxgirlriley",
|
url: "https://tumblr.com/foxgirlriley",
|
||||||
title: "my tumbs :3",
|
title: "my tumbs :3",
|
||||||
alt: "tumblr"
|
alt: "tumblr"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "fediverse.gif",
|
image: "fediverse.gif",
|
||||||
title: "I am on transfem.social!",
|
title: "I am on transfem.social!",
|
||||||
alt: "The word Fediverse in front of the fediverse logo which is slowly spinning",
|
alt: "The word Fediverse in front of the fediverse logo which is slowly spinning",
|
||||||
url: "https://transfem.social/@foxgirlriley"
|
url: "https://transfem.social/@foxgirlriley"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "join-the-fediverse.gif",
|
image: "join-the-fediverse.gif",
|
||||||
title: "Join Transfem.Social!!!",
|
title: "Join Transfem.Social!!!",
|
||||||
alt: "The words Join the fediverse next to the fediverse logo",
|
alt: "The words Join the fediverse next to the fediverse logo",
|
||||||
url: "https://transfem.social"
|
url: "https://transfem.social"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "pronouns_sheher.gif",
|
image: "pronouns_sheher.gif",
|
||||||
title: "i'm a tranny :D",
|
title: "i'm a tranny :D",
|
||||||
alt: "trans flag with she/her pronouns"
|
alt: "trans flag with she/her pronouns"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "flag-pan.png",
|
image: "flag-pan.png",
|
||||||
title: "i'm a faggot! :D",
|
title: "i'm a faggot! :D",
|
||||||
alt: "pansexual flag"
|
alt: "pansexual flag"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "hrt-e2.gif",
|
image: "hrt-e2.gif",
|
||||||
title: "hopefully soon!",
|
title: "hopefully soon!",
|
||||||
alt: "powered by estrogen with spinning estrogen pill"
|
alt: "powered by estrogen with spinning estrogen pill"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "trans-your-gender.gif",
|
image: "trans-your-gender.gif",
|
||||||
title: "trans your gender",
|
title: "trans your gender",
|
||||||
alt: "trans your gender"
|
alt: "trans your gender"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "trans-bouncy.gif",
|
image: "trans-bouncy.gif",
|
||||||
alt: "trans"
|
alt: "trans"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "maia.crimew.gay.png",
|
image: "maia.crimew.gay.png",
|
||||||
url: "https://maia.crimew.gay",
|
url: "https://maia.crimew.gay",
|
||||||
title: "the crime kitty",
|
title: "the crime kitty",
|
||||||
alt: "maia dot crimew dot gay"
|
alt: "maia dot crimew dot gay"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "firefox.gif",
|
image: "firefox.gif",
|
||||||
url: "https://www.firefox.com/en-GB/",
|
url: "https://www.firefox.com/en-GB/",
|
||||||
alt: "firefox now!"
|
alt: "firefox now!"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "anythingbut.gif",
|
image: "anythingbut.gif",
|
||||||
alt: "anything but chrome",
|
alt: "anything but chrome",
|
||||||
title: "this is a chrome haters website >:("
|
title: "this is a chrome haters website >:("
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "same-shit-different-arsehole.gif",
|
image: "same-shit-different-arsehole.gif",
|
||||||
alt: "same shit different arsehole",
|
alt: "same shit different arsehole",
|
||||||
title: "it's all chrome!!!!!"
|
title: "it's all chrome!!!!!"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "linux_mint.gif",
|
image: "linux_mint.gif",
|
||||||
url: "https://www.linuxmint.com",
|
url: "https://www.linuxmint.com",
|
||||||
alt: "linux mint",
|
alt: "linux mint",
|
||||||
title: "my current flavour :3"
|
title: "my current flavour :3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "88x31.gif",
|
image: "88x31.gif",
|
||||||
alt: "88 by 31",
|
alt: "88 by 31",
|
||||||
url: "https://88x31.kate.pet/",
|
url: "https://88x31.kate.pet/",
|
||||||
title: "moar badges :D"
|
title: "moar badges :D"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "piracy.gif",
|
image: "piracy.gif",
|
||||||
alt: "piracy now",
|
alt: "piracy now",
|
||||||
title: "for legal reasons this is a joke"
|
title: "for legal reasons this is a joke"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "i-was-on-cohost.gif",
|
image: "i-was-on-cohost.gif",
|
||||||
alt: "i was on cohost",
|
alt: "i was on cohost",
|
||||||
title: "rip eggbug"
|
title: "rip eggbug"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "jellyfin.gif",
|
image: "jellyfin.gif",
|
||||||
alt: "jellyfin"
|
alt: "jellyfin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "kde.gif",
|
image: "kde.gif",
|
||||||
alt: "kde now!"
|
alt: "kde now!"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "proxmox.gif",
|
image: "proxmox.gif",
|
||||||
alt: "proxmox"
|
alt: "proxmox"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "docker.png",
|
image: "docker.png",
|
||||||
alt: "powered by docker"
|
alt: "powered by docker"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "qbittorrent.png",
|
image: "qbittorrent.png",
|
||||||
alt: "don't forget to seed!",
|
alt: "don't forget to seed!",
|
||||||
title: "don't forget to seed!"
|
title: "don't forget to seed!"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "steam.gif",
|
image: "steam.gif",
|
||||||
alt: "play with steam"
|
alt: "play with steam"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "ubo.png",
|
image: "ubo.png",
|
||||||
alt: "ublock origin now!"
|
alt: "ublock origin now!"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "vlc.png",
|
image: "vlc.png",
|
||||||
alt: "vlc media player"
|
alt: "vlc media player"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: OtherBadgePath + "vscbutton.gif",
|
image: "vscbutton.gif",
|
||||||
alt: "visual studio code"
|
alt: "visual studio code"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ import WavyText from "../components/WavyText/WavyText";
|
||||||
import FriendBadges from "../lib/FriendBadges";
|
import FriendBadges from "../lib/FriendBadges";
|
||||||
import OtherBadges from "../lib/OtherBadges";
|
import OtherBadges from "../lib/OtherBadges";
|
||||||
import Badge from "../components/Badge.astro";
|
import Badge from "../components/Badge.astro";
|
||||||
|
import { OtherBadgePath } from "../lib/OtherBadges";
|
||||||
|
import { FriendBadgePath } from "../lib/FriendBadges";
|
||||||
import "../styles/Badge.scss";
|
import "../styles/Badge.scss";
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -21,12 +23,12 @@ import "../styles/Badge.scss";
|
||||||
</Panel>
|
</Panel>
|
||||||
<Panel title="My Friens :3">
|
<Panel title="My Friens :3">
|
||||||
<div class="badgeBanner">
|
<div class="badgeBanner">
|
||||||
{FriendBadges.map((badge) => <Badge image={badge.image} url={badge.url} title={badge.title} alt={badge.alt} />)}
|
{FriendBadges.map((badge) => <Badge image={`${FriendBadgePath}${badge.image}`} url={badge.url} title={badge.title} alt={badge.alt} />)}
|
||||||
</div>
|
</div>
|
||||||
</Panel>
|
</Panel>
|
||||||
<Panel title="Other Badges">
|
<Panel title="Other Badges">
|
||||||
<div class="badgeBanner">
|
<div class="badgeBanner">
|
||||||
{OtherBadges.map((badge) => <Badge image={badge.image} url={badge.url} title={badge.title} alt={badge.alt} />)}
|
{OtherBadges.map((badge) => <Badge image={`${OtherBadgePath}${badge.image}`} url={badge.url} title={badge.title} alt={badge.alt} />)}
|
||||||
</div>
|
</div>
|
||||||
</Panel>
|
</Panel>
|
||||||
<Panel title="Webring!">
|
<Panel title="Webring!">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue