From a307e061110e6b42367c7a7cfcbedb0359d0a25d Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 12 Nov 2023 23:56:21 -0800
Subject: feat(wrapped): optional watermark

---
 src/lib/Tools/Wrapped.svelte | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'src/lib/Tools/Wrapped.svelte')

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index bbec5ad5..bc20f274 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -24,6 +24,7 @@
 	let maxAbbreviateLength = 40;
 	let transparency = false;
 	let darkTheme = true;
+	let watermark = false;
 
 	onMount(async () => {
 		if (user !== undefined) {
@@ -300,6 +301,9 @@
 					{/if}
 				</div>
 			</div>
+			{#if watermark}
+				<div class="category-grid pure-category" id="watermark">due.moe/wrapped</div>
+			{/if}
 		</div>
 
 		<br />
@@ -310,6 +314,9 @@
 		</p>
 
 		<ul>
+			<li>
+				<input type="checkbox" bind:checked={watermark} /> Enable watermark
+			</li>
 			<li>
 				<a href={'#'} on:click={() => screenshot(true)}>Generate dark themed image</a>
 			</li>
@@ -426,4 +433,8 @@
 	ol {
 		margin: 0 !important;
 	}
+
+	#watermark {
+		color: rgb(61, 180, 242) !important;
+	}
 </style>
-- 
cgit v1.2.3

