@@ -74,7 +78,7 @@
@@ -85,13 +89,6 @@
diff --git a/src/lib/stores/toasts.ts b/src/lib/stores/toasts.ts
index 514069580..7de537c09 100644
--- a/src/lib/stores/toasts.ts
+++ b/src/lib/stores/toasts.ts
@@ -1,6 +1,8 @@
+import { acmPaths, acmGeneral } from '$lib/constants';
import { writable } from 'svelte/store';
const MAX_TOASTS = 4;
+const TOAST_TIMEOUT = 2e3;
const numToasts = writable(0);
@@ -16,20 +18,22 @@ export interface Toast {
type?: ToastType;
dismissible?: boolean;
timeout?: number;
+ path?: string;
}
export const toasts = writable([]);
function makeToast(
id: number,
- { content, type, dismissible, timeout }: Omit
+ { content, type, dismissible, timeout, path }: Omit
): Required {
return {
id,
content: content,
type: type ?? ToastType.Info,
dismissible: dismissible ?? true,
- timeout: timeout ?? 3e3,
+ timeout: timeout ?? TOAST_TIMEOUT,
+ path: path ?? acmGeneral.slug,
};
}
diff --git a/static/global.css b/static/global.css
index 6d641916e..62da48784 100644
--- a/static/global.css
+++ b/static/global.css
@@ -34,6 +34,11 @@ body {
--acm-dark: #101315;
--acm-light: #f8f8f8;
+ --acm-general-rgb: 44, 145, 198;
+ --acm-algo-rgb: 157, 53, 231;
+ --acm-create-rgb: 255, 67, 101;
+ --acm-dev-rgb: 30, 108, 255;
+
--desktop-breakpoint: 768px;
--navbar-height: 82px;
From 0445565f7f2de7531bf04d7ec55223c890c8923a Mon Sep 17 00:00:00 2001
From: EthanThatOneKid <31261035+EthanThatOneKid@users.noreply.github.com>
Date: Thu, 3 Mar 2022 14:13:19 -0800
Subject: [PATCH 10/11] Fixed lint error, unused import
---
src/lib/stores/toasts.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/stores/toasts.ts b/src/lib/stores/toasts.ts
index 7de537c09..293c2bcb8 100644
--- a/src/lib/stores/toasts.ts
+++ b/src/lib/stores/toasts.ts
@@ -1,4 +1,4 @@
-import { acmPaths, acmGeneral } from '$lib/constants';
+import { acmGeneral } from '$lib/constants';
import { writable } from 'svelte/store';
const MAX_TOASTS = 4;
From 452efc7b6ec34d025975e9cfe086fb8bce3e2568 Mon Sep 17 00:00:00 2001
From: EthanThatOneKid <31261035+EthanThatOneKid@users.noreply.github.com>
Date: Thu, 3 Mar 2022 15:23:38 -0800
Subject: [PATCH 11/11] Fixed #313
---
src/lib/components/events/event-item.svelte | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/lib/components/events/event-item.svelte b/src/lib/components/events/event-item.svelte
index 4001b96ad..c9ed4c5cb 100644
--- a/src/lib/components/events/event-item.svelte
+++ b/src/lib/components/events/event-item.svelte
@@ -161,8 +161,14 @@
transition: all 0.15s ease-in-out;
}
- .event-body:hover .event-name {
- color: rgb(var(--highlights, --acm-general-rgb));
+ .event-body:hover {
+ .event-name {
+ color: rgb(var(--highlights, --acm-general-rgb));
+ }
+
+ .event-join:hover {
+ color: rgb(var(--highlights, --acm-general-rgb));
+ }
}
.event-body h2 {