aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Tools/ActivityHistory.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Tools/ActivityHistory.svelte')
-rw-r--r--src/lib/Tools/ActivityHistory.svelte26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/lib/Tools/ActivityHistory.svelte b/src/lib/Tools/ActivityHistory.svelte
index 8194ad0a..e0ad7e58 100644
--- a/src/lib/Tools/ActivityHistory.svelte
+++ b/src/lib/Tools/ActivityHistory.svelte
@@ -18,7 +18,6 @@
let activityHistoryData: Promise<ActivityHistoryEntry[]>;
let currentUserIdentity = { name: '', id: -1 };
- let baseHue = Math.floor(Math.random() * 360);
let generated = false;
onMount(async () => {
@@ -39,12 +38,6 @@
// return date;
// };
- const gradientColour = (amount: number, maxAmount: number, baseHue: number) => {
- const lightness = 100 - Math.round((amount / maxAmount) * 50);
-
- return `hsl(${baseHue}, 100%, ${lightness}%)`;
- };
-
const screenshot = async () => {
let element = document.querySelector('.grid') as HTMLElement;
@@ -122,22 +115,3 @@
{/if}
{/await}
{/if}
-
-<style>
- .grid {
- display: grid;
- grid-template-columns: repeat(52, 1fr);
- grid-template-rows: repeat(7, 1fr);
- /* gap: 2px; */
- grid-auto-flow: column;
- width: min-content;
- background-color: white;
- }
- .grid-item {
- width: 20px;
- height: 20px;
- /* width: 3.25vw; */
- /* height: 3.25vw; */
- /* border: 1px solid #ccc; */
- }
-</style>