Skip to content

Commit c4d0efc

Browse files
committed
feat: politics! ✨
Stand united against oppression! ✨
1 parent 96b865d commit c4d0efc

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed
5.67 KB
Loading
5.2 KB
Loading

src/components/FooterNote.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<template>
22
<footer
33
id="disclaimer"
4-
class="text-ctp-subtext0/40 text-center text-xs flex flex-col gap-1 lg:bg-ctp-mantle lg:py-8 lg:border-t-2 border-ctp-crust"
4+
class="text-ctp-subtext0 text-center text-xs flex flex-col gap-1 lg:bg-ctp-mantle lg:py-8 lg:border-t-2 border-ctp-crust"
55
>
66
<p class="">
77
Built with
8-
<span class="text-transparent text-shadow-2xs text-shadow-(color:--catppuccin-color-mauve)/75">💜</span>
9-
by <a class="text-ctp-mauve/50" href="https://unseen.ninja/">lemon</a>.
8+
<span class="text-transparent text-shadow-2xs text-shadow-(color:--catppuccin-color-mauve)/75">💜</span> and
9+
political takes by <a class="text-ctp-mauve" href="https://unseen.ninja/">lemon</a>.
1010
</p>
1111
<p class="mt-3">
12-
<b>Disclaimer</b>: This project is an independent work and is <b>not affiliated with</b>, or sponsored by
13-
<a class="text-ctp-mauve/50" href="https://catppuccin.com/">Catppuccin</a>.
12+
<b class="text-ctp-red">Disclaimer</b>:<br />
13+
This project is an independent work and is not affiliated with, nor does it reflect the views of
14+
<a class="text-ctp-mauve" href="https://catppuccin.com/">Catppuccin</a>.
1415
</p>
1516
</footer>
1617
</template>

src/components/GeneratorPreview.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,25 @@ async function draw() {
2828
2929
if (!flagPath.value) return
3030
31+
let customBowtie = false
32+
const customBowties = async (currentFlag) => {
33+
if (currentFlag.includes("israel")) {
34+
customBowtie = true
35+
return await loadImage("/flags/tpl-bowtie-palestine.png")
36+
}
37+
if (currentFlag.includes("russia")) {
38+
customBowtie = true
39+
return await loadImage("/flags/tpl-bowtie-ukraine.png")
40+
}
41+
return ""
42+
}
43+
3144
try {
32-
const [pepperjackImg, flagImg, outlineImg, flagOverlay] = await Promise.all([
45+
const [pepperjackImg, bowtieOverride, flagImg, outlineImg, flagOverlay] = await Promise.all([
3346
props.flavour === "latte"
3447
? loadImage("/flags/tpl-pepperjack-latte.png")
3548
: loadImage("/flags/tpl-pepperjack-mocha.png"),
49+
customBowties(flagPath.value),
3650
loadImage(flagPath.value),
3751
props.outlined
3852
? props.flavour === "latte"
@@ -44,6 +58,7 @@ async function draw() {
4458
4559
if (outlineImg) ctx.drawImage(outlineImg, 0, 0, canvas.width, canvas.height)
4660
ctx.drawImage(pepperjackImg, 0, 0, canvas.width, canvas.height)
61+
if (customBowtie) ctx.drawImage(bowtieOverride, 0, 0, canvas.width, canvas.height)
4762
4863
ctx.save()
4964
const scaleFactor = 0.7

0 commit comments

Comments
 (0)