From b4a9cd9d540d42a61bee9045d41ada392305a8d5 Mon Sep 17 00:00:00 2001
From: Akash Keshav <112591754+domesticchores@users.noreply.github.com>
Date: Fri, 4 Apr 2025 14:53:32 -0400
Subject: add light/dark mode toggle, only homepage is fully functional. -ak
---
ufund-ui/public/cr.png | Bin 0 -> 1548178 bytes
ufund-ui/public/jf.png | Bin 1159826 -> 819422 bytes
ufund-ui/src/app/app.component.css | 1 -
ufund-ui/src/app/app.component.html | 7 ++--
ufund-ui/src/app/app.component.ts | 6 +++
.../components/home-page/home-page.component.css | 16 ++++++--
.../components/home-page/home-page.component.html | 10 +++--
.../components/home-page/home-page.component.ts | 16 +++++++-
ufund-ui/src/index.html | 2 +-
ufund-ui/src/styles.css | 45 ++++++++++++++++-----
10 files changed, 78 insertions(+), 25 deletions(-)
create mode 100644 ufund-ui/public/cr.png
(limited to 'ufund-ui')
diff --git a/ufund-ui/public/cr.png b/ufund-ui/public/cr.png
new file mode 100644
index 0000000..2d9a5a1
Binary files /dev/null and b/ufund-ui/public/cr.png differ
diff --git a/ufund-ui/public/jf.png b/ufund-ui/public/jf.png
index bbf95d5..94250ec 100644
Binary files a/ufund-ui/public/jf.png and b/ufund-ui/public/jf.png differ
diff --git a/ufund-ui/src/app/app.component.css b/ufund-ui/src/app/app.component.css
index f4ed668..6cb44f6 100644
--- a/ufund-ui/src/app/app.component.css
+++ b/ufund-ui/src/app/app.component.css
@@ -34,7 +34,6 @@
/*}*/
a {
- color: light-dark(black, white);
text-decoration: none;
}
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html
index f697695..a6e6e6a 100644
--- a/ufund-ui/src/app/app.component.html
+++ b/ufund-ui/src/app/app.component.html
@@ -5,12 +5,13 @@
diff --git a/ufund-ui/src/app/app.component.ts b/ufund-ui/src/app/app.component.ts
index bc0e71a..635061c 100644
--- a/ufund-ui/src/app/app.component.ts
+++ b/ufund-ui/src/app/app.component.ts
@@ -49,5 +49,11 @@ export class AppComponent implements OnInit {
location.reload()
}
+ toggleColorScheme() {
+ let newTheme = this.document.body.parentElement!.getAttribute("theme") == "light" ? "dark" : "light";
+ this.document.body.parentElement!.setAttribute("theme",newTheme);
+ console.log(newTheme, this.document.body.parentElement);
+ }
+
protected readonly userType = userType;
}
diff --git a/ufund-ui/src/app/components/home-page/home-page.component.css b/ufund-ui/src/app/components/home-page/home-page.component.css
index a10377f..f6e5631 100644
--- a/ufund-ui/src/app/components/home-page/home-page.component.css
+++ b/ufund-ui/src/app/components/home-page/home-page.component.css
@@ -6,7 +6,6 @@
justify-content: center;
overflow: clip;
}
-
#hero {
display: flex;
/*flex-direction: column;*/
@@ -19,12 +18,21 @@ h1 {
max-width: 1200px;
}
+#cr {
+ opacity: var(--opacity-cr);
+}
+
#jf {
- /*position: absolute;*/
+ opacity: var(--opacity-jf);
+}
+
+.text-highlight {
+ text-decoration: underline;
+ color: var(--highlight-color);
}
#right {
- max-width: 500px;
+ max-width: 450px;
max-height: 500px;
display: flex;
justify-content: center;
@@ -33,6 +41,6 @@ h1 {
}
#left {
- max-width: 500px;
+ max-width: 550px;
z-index: 1;
}
diff --git a/ufund-ui/src/app/components/home-page/home-page.component.html b/ufund-ui/src/app/components/home-page/home-page.component.html
index 7a7ff96..051132e 100644
--- a/ufund-ui/src/app/components/home-page/home-page.component.html
+++ b/ufund-ui/src/app/components/home-page/home-page.component.html
@@ -1,10 +1,14 @@
-
Helping fund coral reef and marine life conservation
+
Helping fund coral reef and
+ marine life conservation.
View our online cupboard holding all needs related to sea life preservation
-
+
diff --git a/ufund-ui/src/app/components/home-page/home-page.component.ts b/ufund-ui/src/app/components/home-page/home-page.component.ts
index 95e8962..71c2549 100644
--- a/ufund-ui/src/app/components/home-page/home-page.component.ts
+++ b/ufund-ui/src/app/components/home-page/home-page.component.ts
@@ -1,4 +1,5 @@
-import {Component} from '@angular/core';
+import {Component, Inject, OnInit} from '@angular/core';
+import { DOCUMENT } from '@angular/common';
@Component({
selector: 'app-home-page',
@@ -6,6 +7,17 @@ import {Component} from '@angular/core';
templateUrl: './home-page.component.html',
styleUrl: './home-page.component.css'
})
-export class HomePageComponent {
+export class HomePageComponent implements OnInit {
+
+ constructor(
+ @Inject(DOCUMENT) private document: Document
+ ) {}
+ ngOnInit(): void {
+ console.log(this.document.documentElement);
+ }
+
+
+
+
}
diff --git a/ufund-ui/src/index.html b/ufund-ui/src/index.html
index b6ae1a2..34b631c 100644
--- a/ufund-ui/src/index.html
+++ b/ufund-ui/src/index.html
@@ -1,5 +1,5 @@
-
+
UfundUi
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index 75d6b36..a1902fd 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -1,17 +1,38 @@
/* You can add global styles to this file, and also import other style files */
:root {
- color-scheme: /*light*/ dark;
+ color-scheme: dark;
}
* {
box-sizing: border-box;
+ color: var(--foreground-color);
+ transition: all ease-in-out .3s;
+}
+
+[theme="light"] {
+ --background-color: #e6e4df;
+ --foreground-color: #000000;
+ --highlight-color: #cf9451;
+ --hover-color: #d8cdc0;
+ --opacity-cr: 1;
+ --opacity-jf: 0;
+}
+
+[theme="dark"] {
+ --background-color: #000715;
+ --foreground-color: #ffffff;
+ --highlight-color: #6091e8;
+ --hover-color: #394559;
+ --opacity-cr: 0;
+ --opacity-jf: 1;
}
html, body {
margin: 0;
height: 100%;
- background-color: light-dark(white, #000715);
+ background-color: var(--background-color);
+ color: var(--foreground-color);
}
body {
@@ -25,37 +46,39 @@ input {
border-radius: 5px;
border-style: solid;
border-width: 1px;
- background-color: light-dark(#ebebeb, #3a3a3a);
+ background-color: var(--background-color);
&:hover {
- background-color: light-dark(#e1e1e1, #444444);
+ background-color: var(--hover-color);
}
}
button, input[type=button], input[type=reset], input[type=submit], .button {
- font-size: 14pt;
+ font-size: 12pt;
padding: 6px 16px;
border-radius: 9999px;
border-style: none;
- background-color: light-dark(#ebebeb, #3a3a3a);
+ font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ background-color: var(--background-color);
display: flex;
gap: 5px;
text-align: center;
justify-content: center;
&:hover {
- background-color: light-dark(#e1e1e1, #444444);
+ background-color: var(--hover-color);
}
}
.button2 {
- text-transform: uppercase;
- border: 1px solid #5cdbff;
+ /* text-transform: uppercase; */
+ border: 3px solid var(--highlight-color);
padding: 10px 25px;
+ font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 12pt;
- font-weight: 600;
+ font-weight: 700;
background-color: transparent;
- text-shadow: #5cdbff 0 0 50px;
+ text-shadow: var(--highlight-color) 0 0 50px;
}
.icon {
--
cgit v1.2.3
From ac6fa949a754778f268fb91f0b32464c153191ef Mon Sep 17 00:00:00 2001
From: Akash Keshav <112591754+domesticchores@users.noreply.github.com>
Date: Fri, 4 Apr 2025 20:49:15 -0400
Subject: refactor login-page and need-list to support light/dark mode
---
ufund-ui/public/login-cr.png | Bin 0 -> 1750592 bytes
ufund-ui/public/login-jf.png | Bin 0 -> 1978783 bytes
.../src/app/components/login/login.component.css | 54 ++++++++++++++++++---
.../src/app/components/login/login.component.html | 15 +++---
.../components/need-list/need-list.component.css | 14 ++++--
.../components/need-list/need-list.component.html | 4 +-
.../components/need-page/need-page.component.css | 2 +-
ufund-ui/src/styles.css | 10 +++-
8 files changed, 77 insertions(+), 22 deletions(-)
create mode 100644 ufund-ui/public/login-cr.png
create mode 100644 ufund-ui/public/login-jf.png
(limited to 'ufund-ui')
diff --git a/ufund-ui/public/login-cr.png b/ufund-ui/public/login-cr.png
new file mode 100644
index 0000000..6419821
Binary files /dev/null and b/ufund-ui/public/login-cr.png differ
diff --git a/ufund-ui/public/login-jf.png b/ufund-ui/public/login-jf.png
new file mode 100644
index 0000000..ef0e111
Binary files /dev/null and b/ufund-ui/public/login-jf.png differ
diff --git a/ufund-ui/src/app/components/login/login.component.css b/ufund-ui/src/app/components/login/login.component.css
index b56b4eb..fc1d9da 100644
--- a/ufund-ui/src/app/components/login/login.component.css
+++ b/ufund-ui/src/app/components/login/login.component.css
@@ -2,29 +2,60 @@
display: flex;
align-items: center;
justify-content: center;
- height: 100%;
- /*background-image: url("https://www.fineshare.com/background/jellyfish-under-fluorescent-illumination.jpg");*/
- background: rgba(0, 0, 0, .65) url("https://4kwallpapers.com/images/wallpapers/blue-jellyfish-aquarium-underwater-glowing-marine-life-1920x1080-3546.jpg");
+ width: 100vw;
+ height: 150vh;
+ overflow: hidden;
+ background-color: transparent;
background-blend-mode: darken;
- margin-top: -66px
+ margin-top: -150px;
+ overflow: hidden;
+}
+
+#bg-cr {
+ position: absolute;
+ margin-top: -150px;
+ top:0;
+ width: 100vw;
+ height: calc(100vh + 150px);
+ background: linear-gradient(to bottom, rgba(84, 45, 0, 0) 30%, rgba(84, 45, 0, 0.1) 40%), url("/login-cr.png");
+ opacity: calc(var(--opacity-cr));
+ z-index: 1;
+}
+#bg-jf {
+ position: absolute;
+ top:0;
+ width: 100vw;
+ height: 100vh;
+ background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 30%), url("/login-jf.png");
+ opacity: var(--opacity-jf);
+ z-index: 1;
}
#box {
display: flex;
flex-direction: column;
- max-width: 350px;
+ align-items: center;
+ aspect-ratio: 4/5;
+ min-height: 50vh;
+ margin-top: 15vh;
gap: 10px;
+ /* background-color: var(--background-color); */
backdrop-filter: blur(10px);
- background-color: rgba(0, 0, 0, 0.1);
- padding: 30px;
+ padding: 50px 40px;
color: white;
border-radius: 5px;
border-style: solid;
border-width: 1px;
- border-color: rgb(140, 140, 255);
+ border-color: var(--highlight-color);
+ z-index: 2;
}
+#greeting {
+ font-size: 32px;
+ /* text-decoration: underline;
+ text-decoration-color: var(--highlight-color); */
+}
.border {
border-style: solid;
border-width: 1px;
@@ -34,3 +65,10 @@
background-color: white;
box-shadow: 0 0 10px 10px black;
}
+
+#signup {
+ color: var(--highlight-color);
+ text-decoration: underline;
+ text-decoration-thickness: 1px;
+ text-decoration-color: var(--highlight-color);
+}
\ No newline at end of file
diff --git a/ufund-ui/src/app/components/login/login.component.html b/ufund-ui/src/app/components/login/login.component.html
index 1017d0f..27eab96 100644
--- a/ufund-ui/src/app/components/login/login.component.html
+++ b/ufund-ui/src/app/components/login/login.component.html
@@ -1,9 +1,12 @@
-
Login
-
-
-
-
+
+
+
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.css b/ufund-ui/src/app/components/need-list/need-list.component.css
index e17609b..0172ff4 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.css
+++ b/ufund-ui/src/app/components/need-list/need-list.component.css
@@ -5,7 +5,7 @@
}
.needEntry {
- background-color: #2e2e2e;
+ background-color: var(--tertiary-color);
display: flex;
flex-direction: column;
border-radius: 5px;
@@ -37,6 +37,14 @@ select {
}
}
+.sort-scheme {
+ background-color: var(--background-color);
+ border-style: solid;
+ border-color: var(--foreground-color);
+ border-radius: 5px;
+ border-width: 1px;
+}
+
#sortArea {
display: flex;
flex-direction: row;
@@ -86,7 +94,7 @@ select {
.clickable {
padding: 10px;
- background-color: #3a3a3a;
+ background-color: var(--secondary-color);
border-radius: 5px;
cursor: pointer;
height: 130px;
@@ -96,7 +104,7 @@ select {
}
.clickable:hover {
- background-color: #444444;
+ background-color: var(--tertiary-color);
}
.actionArea {
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html
index 84f80dc..18da39c 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.html
+++ b/ufund-ui/src/app/components/need-list/need-list.component.html
@@ -7,7 +7,7 @@
-
diff --git a/ufund-ui/src/app/components/need-page/need-page.component.css b/ufund-ui/src/app/components/need-page/need-page.component.css
index 44db4b4..47aa8b3 100644
--- a/ufund-ui/src/app/components/need-page/need-page.component.css
+++ b/ufund-ui/src/app/components/need-page/need-page.component.css
@@ -47,7 +47,7 @@
aspect-ratio: 16/9;
object-fit: cover;
border-radius: 10px;
- box-shadow: rgb(0, 40, 70) 0 0 50px;
+ box-shadow: var(--dark-highlight-clor) 0 0 50px;
}
.urgent {
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index a1902fd..9fce47d 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -1,8 +1,8 @@
/* You can add global styles to this file, and also import other style files */
-:root {
+/* :root {
color-scheme: dark;
-}
+} */
* {
box-sizing: border-box;
@@ -12,8 +12,11 @@
[theme="light"] {
--background-color: #e6e4df;
+ --secondary-color: #e0dcd4;
+ --tertiary-color: #cac6be;
--foreground-color: #000000;
--highlight-color: #cf9451;
+ --dark-highlight-clor: #582f00;
--hover-color: #d8cdc0;
--opacity-cr: 1;
--opacity-jf: 0;
@@ -21,8 +24,11 @@
[theme="dark"] {
--background-color: #000715;
+ --secondary-color: #444444;
+ --tertiary-color: #3a3a3a;
--foreground-color: #ffffff;
--highlight-color: #6091e8;
+ --dark-highlight-clor: #002846;
--hover-color: #394559;
--opacity-cr: 0;
--opacity-jf: 1;
--
cgit v1.2.3
From 1ac878b4aaa19ab889c7a98b7dab6acd57c778b3 Mon Sep 17 00:00:00 2001
From: Akash Keshav <112591754+domesticchores@users.noreply.github.com>
Date: Sat, 5 Apr 2025 22:00:00 -0400
Subject: finish styling basket and list; add persistent theme via
localStorage. -ak
---
ufund-ui/src/app/app.component.ts | 17 ++++++++++++++++-
.../funding-basket/funding-basket.component.css | 6 +++---
.../funding-basket/funding-basket.component.html | 2 +-
.../app/components/need-list/need-list.component.css | 8 --------
.../app/components/need-list/need-list.component.html | 2 +-
ufund-ui/src/styles.css | 10 +++++++++-
6 files changed, 30 insertions(+), 15 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/app.component.ts b/ufund-ui/src/app/app.component.ts
index 635061c..2fecc2d 100644
--- a/ufund-ui/src/app/app.component.ts
+++ b/ufund-ui/src/app/app.component.ts
@@ -38,6 +38,15 @@ export class AppComponent implements OnInit {
this.authService.restoreLogin(dataParsed.username, dataParsed.key)
console.log("Key found", dataParsed.key)
}
+
+ let theme = localStorage.getItem("theme")
+ if(!theme) {
+ // if no color scheme is set, get the system settings
+ let preferredTheme = this.document.defaultView?.matchMedia('(prefers-color-scheme: light)').matches ? "light" : "dark";
+ localStorage.setItem("theme",preferredTheme);
+ theme = preferredTheme;
+ }
+ this.document.body.parentElement!.setAttribute("theme",theme);
}
login() {
@@ -50,8 +59,14 @@ export class AppComponent implements OnInit {
}
toggleColorScheme() {
- let newTheme = this.document.body.parentElement!.getAttribute("theme") == "light" ? "dark" : "light";
+ let theme = localStorage.getItem("theme");
+ // fallback
+ if (!theme) {
+ theme = "light";
+ }
+ let newTheme = theme == "light" ? "dark" : "light";
this.document.body.parentElement!.setAttribute("theme",newTheme);
+ localStorage.setItem("theme", newTheme);
console.log(newTheme, this.document.body.parentElement);
}
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.css b/ufund-ui/src/app/components/funding-basket/funding-basket.component.css
index c46ef57..bd41fda 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.css
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.css
@@ -11,7 +11,7 @@
}
.needEntry {
- background-color: #2e2e2e;
+ background-color: var(--tertiary-color);
display: flex;
flex-direction: column;
border-radius: 5px;
@@ -66,13 +66,13 @@
.clickable {
padding: 10px;
- background-color: #3a3a3a;
+ background-color: var(--secondary-color);
border-radius: 5px;
cursor: pointer;
}
.clickable:hover {
- background-color: #444444;
+ background-color: var(--tertiary-color);
}
.actionArea {
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
index 52b35c1..b88ef31 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
@@ -63,7 +63,7 @@
--
cgit v1.2.3
From 6b4c2952e52ee2b8b23067688055011e393f8e4b Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 16:04:30 -0400
Subject: Increase animation speed
---
ufund-ui/src/styles.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index 44f6107..876c6f6 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -7,7 +7,7 @@
* {
box-sizing: border-box;
color: var(--foreground-color);
- transition: all ease-in-out .3s;
+ transition: color, background-color ease-in-out .1s;
}
[theme="light"] {
--
cgit v1.2.3
From e89bcbad67886174463d8e36ce16d02012881779 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 19:32:00 -0400
Subject: fix dashboard, make buttons use secondary color by default
---
.../src/app/components/dashboard/dashboard.component.css | 4 ++--
.../components/mini-need-list/mini-need-list.component.css | 6 +++---
.../src/app/components/need-list/need-list.component.css | 2 +-
ufund-ui/src/styles.css | 12 +++++-------
4 files changed, 11 insertions(+), 13 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.css b/ufund-ui/src/app/components/dashboard/dashboard.component.css
index 54f362b..cb4ad74 100644
--- a/ufund-ui/src/app/components/dashboard/dashboard.component.css
+++ b/ufund-ui/src/app/components/dashboard/dashboard.component.css
@@ -17,7 +17,7 @@
}
.card {
- background-color: #2e2e2e;
+ background-color: var(--tertiary-color);
width: 400px;
height: 130px;
border-radius: 5px;
@@ -34,7 +34,7 @@
.listCard {
display: flex;
flex-direction: column;
- background-color: #2e2e2e;
+ background-color: var(--tertiary-color);
border-radius: 5px;
padding: 10px;
gap: 10px;
diff --git a/ufund-ui/src/app/components/mini-need-list/mini-need-list.component.css b/ufund-ui/src/app/components/mini-need-list/mini-need-list.component.css
index 6dceee1..67f2094 100644
--- a/ufund-ui/src/app/components/mini-need-list/mini-need-list.component.css
+++ b/ufund-ui/src/app/components/mini-need-list/mini-need-list.component.css
@@ -9,7 +9,7 @@
height: 175px;
display: flex;
align-items: center;
- color: #878787;
+ color: gray;
}
#needList {
@@ -25,7 +25,7 @@
padding: 10px;
display: flex;
flex-direction: column;
- background-color: #3a3a3a;
+ background-color: var(--secondary-color);
border-radius: 5px;
height: 175px;
width: 200px;
@@ -41,7 +41,7 @@
}
.needEntry:hover {
- background-color: #444444;
+ background-color: var(--hover-color);
}
.needName {
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.css b/ufund-ui/src/app/components/need-list/need-list.component.css
index b3af85f..bbbb024 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.css
+++ b/ufund-ui/src/app/components/need-list/need-list.component.css
@@ -98,7 +98,7 @@
}
.clickable:hover {
- background-color: var(--tertiary-color);
+ background-color: var(--hover-color);
}
.actionArea {
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index 876c6f6..f3491e1 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -1,9 +1,5 @@
/* You can add global styles to this file, and also import other style files */
-/* :root {
- color-scheme: dark;
-} */
-
* {
box-sizing: border-box;
color: var(--foreground-color);
@@ -11,6 +7,7 @@
}
[theme="light"] {
+ color-scheme: light;
--background-color: #e6e4df;
--secondary-color: #e0dcd4;
--tertiary-color: #cac6be;
@@ -23,6 +20,7 @@
}
[theme="dark"] {
+ color-scheme: dark;
--background-color: #000715;
--secondary-color: #444444;
--tertiary-color: #3a3a3a;
@@ -66,8 +64,8 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
padding: 6px 16px;
border-radius: 9999px;
border-style: none;
- font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- background-color: var(--tertiary-color);
+ /*font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
+ background-color: var(--secondary-color);
display: flex;
gap: 5px;
text-align: center;
@@ -83,7 +81,7 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
/* text-transform: uppercase; */
border: 3px solid var(--highlight-color);
padding: 10px 25px;
- font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ /*font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
font-size: 12pt;
font-weight: 700;
background-color: transparent;
--
cgit v1.2.3
From 88865595e2735784537e076a5b8d6edbf6fb6138 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 19:52:12 -0400
Subject: Improve sort-scheme
---
.../funding-basket/funding-basket.component.html | 2 +-
ufund-ui/src/styles.css | 21 +++++++++++----------
2 files changed, 12 insertions(+), 11 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
index 6363c68..7158194 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
@@ -3,7 +3,7 @@
Funding Basket
-
+
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index f3491e1..7f3f973 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -44,7 +44,7 @@ body {
font-optical-sizing: auto;
}
-input, textarea {
+input, textarea, select {
resize: none;
font-family: Inter, sans-serif;
font-size: 14pt;
@@ -52,11 +52,16 @@ input, textarea {
border-radius: 5px;
border-style: solid;
border-width: 1px;
- background-color: var(--background-color);
+ background-color: var(--secondary-color);
&:hover {
background-color: var(--hover-color);
}
+
+ &.sort-scheme {
+ background-color: transparent;
+ border-color: var(--secondary-color);
+ }
}
button, input[type=button], input[type=reset], input[type=submit], .button {
@@ -75,6 +80,10 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
&:hover {
background-color: var(--hover-color);
}
+
+ &.sort-scheme {
+ background-color: transparent;
+ }
}
.button2 {
@@ -92,14 +101,6 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
font-family: 'Material Symbols Outlined'
}
-.sort-scheme {
- background-color: var(--background-color);
- border-style: solid;
- border-color: var(--tertiary-color);
- border-radius: 5px;
- border-width: 1px;
-}
-
h1 {
font-size: 40px;
}
--
cgit v1.2.3
From 89aad1c2631ea9d02100273bd4ab89c7792e8da7 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 19:58:03 -0400
Subject: Make need-edit dialog use variable colors
---
ufund-ui/src/app/components/need-edit/need-edit.component.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/need-edit/need-edit.component.css b/ufund-ui/src/app/components/need-edit/need-edit.component.css
index b06e061..2d04510 100644
--- a/ufund-ui/src/app/components/need-edit/need-edit.component.css
+++ b/ufund-ui/src/app/components/need-edit/need-edit.component.css
@@ -11,8 +11,8 @@
padding: 10px;
border-style: solid;
border-width: 1px;
- border-color: #6c6c6c;
- background-color: #2e2e2e;
+ border-color: var(--secondary-color);
+ background-color: var(--tertiary-color);
border-radius: 5px;
position: relative;
width: 500px;
--
cgit v1.2.3
From 1a70784c75ba26713e040bb44e9fbc6867079010 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 20:06:59 -0400
Subject: Remove color from * and fix toasts in light mode
---
ufund-ui/src/app/app.component.css | 1 +
ufund-ui/src/app/components/toast/toast.component.css | 4 +++-
ufund-ui/src/styles.css | 1 -
3 files changed, 4 insertions(+), 2 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/app.component.css b/ufund-ui/src/app/app.component.css
index 3f3d053..ff1e58c 100644
--- a/ufund-ui/src/app/app.component.css
+++ b/ufund-ui/src/app/app.component.css
@@ -54,6 +54,7 @@
/*}*/
a {
+ color: var(--foreground-color);
text-decoration: none;
}
diff --git a/ufund-ui/src/app/components/toast/toast.component.css b/ufund-ui/src/app/components/toast/toast.component.css
index 82e2ff3..5d2a7df 100644
--- a/ufund-ui/src/app/components/toast/toast.component.css
+++ b/ufund-ui/src/app/components/toast/toast.component.css
@@ -20,7 +20,8 @@
display: flex;
flex-direction: row;
padding: 3px 15px;
- background-color: #3a3a3a;
+ color: var(--foreground-color);
+ background-color: var(--secondary-color);
border-radius: 100000px;
gap: 10px;
align-items: center;
@@ -54,4 +55,5 @@
.toast.error {
background-color: #d81a1a;
+ color: white;
}
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index 7f3f973..eae5b50 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -2,7 +2,6 @@
* {
box-sizing: border-box;
- color: var(--foreground-color);
transition: color, background-color ease-in-out .1s;
}
--
cgit v1.2.3
From 512f00544e77c4e942a1813a774875bff86b5c2f Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 20:12:13 -0400
Subject: Improve contrast of urgent text
---
ufund-ui/src/app/components/need-list/need-list.component.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.css b/ufund-ui/src/app/components/need-list/need-list.component.css
index bbbb024..02e170b 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.css
+++ b/ufund-ui/src/app/components/need-list/need-list.component.css
@@ -72,7 +72,7 @@
.urgent {
font-size: 11pt;
background-color: rgba(255, 165, 0, 0.27);
- color: rgba(255, 165, 0, 1);
+ color: light-dark(rgb(138, 93, 0),rgba(255, 165, 0, 1));
padding: 2px;
border-radius: 5px;
}
--
cgit v1.2.3
From bc7a0069afac85617fa7724628aac6b3da0d0d2c Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 20:16:39 -0400
Subject: Tweak light theme for improved contrast
---
ufund-ui/src/styles.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index eae5b50..c4034ad 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -8,8 +8,8 @@
[theme="light"] {
color-scheme: light;
--background-color: #e6e4df;
- --secondary-color: #e0dcd4;
- --tertiary-color: #cac6be;
+ --secondary-color: #d7d1c7;
+ --tertiary-color: #e0dcd4;
--foreground-color: #000000;
--highlight-color: #cf9451;
--dark-highlight-clor: #582f00;
--
cgit v1.2.3
From d06ed8ce0a08896e16c353d8b165c9161095228a Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 20:43:34 -0400
Subject: Add better hover color for sort-scheme
---
ufund-ui/src/styles.css | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index c4034ad..82db502 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -21,16 +21,20 @@
[theme="dark"] {
color-scheme: dark;
--background-color: #000715;
- --secondary-color: #444444;
- --tertiary-color: #3a3a3a;
- --foreground-color: #ffffff;
- --highlight-color: #6091e8;
- --dark-highlight-clor: #002846;
- --hover-color: #394559;
+ --secondary-color: #444444; /* color of cards and buttons*/
+ --tertiary-color: #3a3a3a; /* color of dark cards */
+ --foreground-color: #ffffff; /* used on text */
+ --highlight-color: #6091e8; /* accent color */
+ --dark-highlight-clor: #002846; /* not used currently */
+ --hover-color: #394559; /* hover color for cards and buttons*/
--opacity-cr: 0;
--opacity-jf: 1;
}
+:root {
+ --background-hover: color-mix(in oklch, var(--background-color) 60%, var(--hover-color) 40%);
+}
+
html, body {
margin: 0;
height: 100%;
@@ -60,6 +64,10 @@ input, textarea, select {
&.sort-scheme {
background-color: transparent;
border-color: var(--secondary-color);
+
+ &:hover {
+ background-color: var(--background-hover);
+ }
}
}
@@ -82,6 +90,10 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
&.sort-scheme {
background-color: transparent;
+
+ &:hover {
+ background-color: var(--background-hover);
+ }
}
}
@@ -94,6 +106,10 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
font-weight: 700;
background-color: transparent;
text-shadow: var(--highlight-color) 0 0 50px;
+
+ &:hover {
+ background-color: var(--background-hover) !important;
+ }
}
.icon {
--
cgit v1.2.3
From 660d1df5b67bcedb2abc9cb9abc555e9b78ff510 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Sun, 6 Apr 2025 20:50:26 -0400
Subject: Make links follow the highlight color
---
ufund-ui/src/styles.css | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index 82db502..3e923b1 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -123,3 +123,7 @@ h1 {
progress {
min-width: 100%;
}
+
+a {
+ color: var(--highlight-color);
+}
--
cgit v1.2.3
From a8aee88cdf95eea5aaeb450b0474aa85dc556cc2 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 00:54:03 -0400
Subject: Other tweaks
---
.../components/need-page/need-page.component.css | 2 +-
ufund-ui/src/styles.css | 26 +++++++++++++++++-----
2 files changed, 21 insertions(+), 7 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/need-page/need-page.component.css b/ufund-ui/src/app/components/need-page/need-page.component.css
index 6ca1350..7f357db 100644
--- a/ufund-ui/src/app/components/need-page/need-page.component.css
+++ b/ufund-ui/src/app/components/need-page/need-page.component.css
@@ -42,7 +42,7 @@
.urgent {
font-size: 11pt;
background-color: rgba(255, 165, 0, 0.27);
- color: rgba(255, 165, 0, 1);
+ color: light-dark(rgb(138, 93, 0),rgba(255, 165, 0, 1));
padding: 2px;
border-radius: 5px;
}
diff --git a/ufund-ui/src/styles.css b/ufund-ui/src/styles.css
index 3e923b1..98e13de 100644
--- a/ufund-ui/src/styles.css
+++ b/ufund-ui/src/styles.css
@@ -21,14 +21,23 @@
[theme="dark"] {
color-scheme: dark;
--background-color: #000715;
- --secondary-color: #444444; /* color of cards and buttons*/
- --tertiary-color: #3a3a3a; /* color of dark cards */
+ --secondary-color: #3a3a3a; /* color of cards and buttons*/
+ --tertiary-color: #2e2e2e; /* color of dark cards */
--foreground-color: #ffffff; /* used on text */
--highlight-color: #6091e8; /* accent color */
--dark-highlight-clor: #002846; /* not used currently */
- --hover-color: #394559; /* hover color for cards and buttons*/
+ --hover-color: #323c4e; /* hover color for cards and buttons*/
--opacity-cr: 0;
--opacity-jf: 1;
+
+ /* Experimental blue dark theme:
+ --secondary-color: #19212e;
+ --tertiary-color: #121722;
+ --foreground-color: #ffffff;
+ --highlight-color: #6091e8;
+ --dark-highlight-clor: #002846;
+ --hover-color: #192940;
+ */
}
:root {
@@ -72,7 +81,7 @@ input, textarea, select {
}
button, input[type=button], input[type=reset], input[type=submit], .button {
- font-size: 12pt;
+ font-size: 14pt;
padding: 6px 16px;
border-radius: 9999px;
border-style: none;
@@ -83,6 +92,11 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
text-align: center;
justify-content: center;
align-items: center;
+ cursor: pointer;
+
+ &:disabled {
+ pointer-events: none;
+ }
&:hover {
background-color: var(--hover-color);
@@ -98,8 +112,8 @@ button, input[type=button], input[type=reset], input[type=submit], .button {
}
.button2 {
- /* text-transform: uppercase; */
- border: 3px solid var(--highlight-color);
+ text-transform: uppercase;
+ border: 1px solid var(--highlight-color);
padding: 10px 25px;
/*font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
font-size: 12pt;
--
cgit v1.2.3
From c2afee3111e8c84993b491711c3c4eeb6b2df6db Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 01:02:29 -0400
Subject: Remove underline from highlight text
---
ufund-ui/src/app/components/home-page/home-page.component.css | 1 -
1 file changed, 1 deletion(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/home-page/home-page.component.css b/ufund-ui/src/app/components/home-page/home-page.component.css
index 47e6ebd..c345a0b 100644
--- a/ufund-ui/src/app/components/home-page/home-page.component.css
+++ b/ufund-ui/src/app/components/home-page/home-page.component.css
@@ -27,7 +27,6 @@ h1 {
}
.text-highlight {
- text-decoration: underline;
color: var(--highlight-color);
}
--
cgit v1.2.3
From 5549a7b00b96cca229d09057bc08b55d30a0c349 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 11:25:57 -0400
Subject: Adjust spacing between needs
---
ufund-ui/src/app/components/need-list/need-list.component.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.css b/ufund-ui/src/app/components/need-list/need-list.component.css
index 02e170b..38ed4df 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.css
+++ b/ufund-ui/src/app/components/need-list/need-list.component.css
@@ -8,7 +8,7 @@
#needList {
display: flex;
flex-direction: column;
- gap: 15px
+ gap: 10px
}
.needName {
--
cgit v1.2.3
From 0d0959d6ac3e81869ba848371d9b6ea12710debc Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 11:52:24 -0400
Subject: Fix colors on login / signup pages
---
ufund-ui/src/app/components/login/login.component.css | 6 ++----
ufund-ui/src/app/components/signup/signup.component.css | 7 +++----
2 files changed, 5 insertions(+), 8 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/login/login.component.css b/ufund-ui/src/app/components/login/login.component.css
index fc1d9da..f38865b 100644
--- a/ufund-ui/src/app/components/login/login.component.css
+++ b/ufund-ui/src/app/components/login/login.component.css
@@ -8,7 +8,6 @@
background-color: transparent;
background-blend-mode: darken;
margin-top: -150px;
- overflow: hidden;
}
#bg-cr {
@@ -40,10 +39,9 @@
min-height: 50vh;
margin-top: 15vh;
gap: 10px;
- /* background-color: var(--background-color); */
+ background-color: color-mix(in srgb, var(--background-color), transparent 50%);
backdrop-filter: blur(10px);
padding: 50px 40px;
- color: white;
border-radius: 5px;
border-style: solid;
border-width: 1px;
@@ -71,4 +69,4 @@
text-decoration: underline;
text-decoration-thickness: 1px;
text-decoration-color: var(--highlight-color);
-}
\ No newline at end of file
+}
diff --git a/ufund-ui/src/app/components/signup/signup.component.css b/ufund-ui/src/app/components/signup/signup.component.css
index aa90e04..207135f 100644
--- a/ufund-ui/src/app/components/signup/signup.component.css
+++ b/ufund-ui/src/app/components/signup/signup.component.css
@@ -15,14 +15,13 @@
flex-direction: column;
max-width: 500px;
gap: 10px;
- backdrop-filter: blur(25px);
- background-color: rgba(0, 0, 0, 0.1);
+ backdrop-filter: blur(10px);
+ background-color: color-mix(in srgb, var(--background-color), transparent 50%);
padding: 30px;
- color: white;
border-radius: 5px;
border-style: solid;
border-width: 1px;
- border-color: rgb(140, 140, 255);
+ border-color: var(--highlight-color);
& > div {
display: flex;
--
cgit v1.2.3
From b6bc0e5e9be234c58ad5d8554f6614d22e2738f8 Mon Sep 17 00:00:00 2001
From: Tyler Ferrari <69283684+Sowgro@users.noreply.github.com>
Date: Mon, 7 Apr 2025 12:09:49 -0400
Subject: Fix update need bug
The current would reset to 0
---
ufund-ui/src/app/components/need-edit/need-edit.component.ts | 1 +
1 file changed, 1 insertion(+)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/need-edit/need-edit.component.ts b/ufund-ui/src/app/components/need-edit/need-edit.component.ts
index abfa543..b63d9c1 100644
--- a/ufund-ui/src/app/components/need-edit/need-edit.component.ts
+++ b/ufund-ui/src/app/components/need-edit/need-edit.component.ts
@@ -53,6 +53,7 @@ export class NeedEditComponent implements OnChanges {
}
updateNeed(need: Need) {
+ need.current = this.need?.current ?? 0
this.cupboardService.updateNeed(need.id, need)
.pipe(catchError((ex, _) => {
if (ex.status == 500) {
--
cgit v1.2.3
From d2858b59e495186d51eebd188f84534fe68fc420 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 13:37:01 -0400
Subject: Disable pagination in checkout
---
.../app/components/funding-basket/funding-basket.component.html | 2 +-
.../src/app/components/funding-basket/funding-basket.component.ts | 1 +
ufund-ui/src/app/components/need-list/need-list.component.html | 8 ++++----
ufund-ui/src/app/components/need-list/need-list.component.ts | 1 +
4 files changed, 7 insertions(+), 5 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
index 7158194..a5fec6f 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
@@ -8,7 +8,7 @@
deleteRemove from Basket
-
+
+
+
--
cgit v1.2.3
From b45f42c348d5b6ea25e0c320843e613d40c4db61 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 17:09:25 -0400
Subject: Fix alignment of color mode toggle
---
ufund-ui/src/app/app.component.css | 6 +++++-
ufund-ui/src/app/app.component.html | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/app.component.css b/ufund-ui/src/app/app.component.css
index ab1e60f..6841606 100644
--- a/ufund-ui/src/app/app.component.css
+++ b/ufund-ui/src/app/app.component.css
@@ -61,5 +61,9 @@
}
.current {
- text-decoration: underline!important;
+ text-decoration: underline !important;
+}
+
+#darkMode:hover {
+ text-decoration: none !important;
}
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html
index 7277682..03c6338 100644
--- a/ufund-ui/src/app/app.component.html
+++ b/ufund-ui/src/app/app.component.html
@@ -11,7 +11,7 @@
Basket
- brightness_7
+ brightness_7
--
cgit v1.2.3
From eeec3e68327ed5b989680a74893e2dcee3ff3e22 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 20:39:10 -0400
Subject: Fix sorting and searching bugs, save sort mode and algo to
localStorage
---
.../components/cupboard/cupboard.component.html | 4 +-
.../app/components/cupboard/cupboard.component.ts | 69 ++++++++++------------
.../components/need-list/need-list.component.ts | 2 +-
3 files changed, 34 insertions(+), 41 deletions(-)
(limited to 'ufund-ui')
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html
index 8f6901a..2d3fa7c 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.html
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html
@@ -9,8 +9,8 @@