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/src/app/app.component.css | 1 -
ufund-ui/src/app/app.component.html | 7 ++++---
ufund-ui/src/app/app.component.ts | 6 ++++++
.../src/app/components/home-page/home-page.component.css | 16 ++++++++++++----
.../app/components/home-page/home-page.component.html | 10 +++++++---
.../src/app/components/home-page/home-page.component.ts | 16 ++++++++++++++--
6 files changed, 43 insertions(+), 13 deletions(-)
(limited to 'ufund-ui/src/app')
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);
+ }
+
+
+
+
}
--
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
---
.../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 +-
5 files changed, 69 insertions(+), 20 deletions(-)
(limited to 'ufund-ui/src/app')
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 {
--
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 +-
5 files changed, 21 insertions(+), 14 deletions(-)
(limited to 'ufund-ui/src/app')
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 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
---
ufund-ui/src/app/components/dashboard/dashboard.component.css | 4 ++--
.../src/app/components/mini-need-list/mini-need-list.component.css | 6 +++---
ufund-ui/src/app/components/need-list/need-list.component.css | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
(limited to 'ufund-ui/src/app')
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 {
--
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
---
.../src/app/components/funding-basket/funding-basket.component.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'ufund-ui/src/app')
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
-
+
--
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/src/app')
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 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
(limited to 'ufund-ui/src/app')
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;
}
--
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/src/app')
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 a8aee88cdf95eea5aaeb450b0474aa85dc556cc2 Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 00:54:03 -0400
Subject: Other tweaks
---
ufund-ui/src/app/components/need-page/need-page.component.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'ufund-ui/src/app')
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;
}
--
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/src/app')
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/src/app')
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/src/app')
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 ebeafe0a6a70da064fd97359e38f53406a58bed4 Mon Sep 17 00:00:00 2001
From: Gunther6070
Date: Mon, 7 Apr 2025 16:45:38 -0400
Subject: Added underline to currently selected page
---
ufund-ui/src/app/app.component.css | 29 +++--------------------------
ufund-ui/src/app/app.component.html | 7 +++----
ufund-ui/src/app/app.component.ts | 12 +++++++++---
3 files changed, 15 insertions(+), 33 deletions(-)
(limited to 'ufund-ui/src/app')
diff --git a/ufund-ui/src/app/app.component.css b/ufund-ui/src/app/app.component.css
index ff1e58c..ab1e60f 100644
--- a/ufund-ui/src/app/app.component.css
+++ b/ufund-ui/src/app/app.component.css
@@ -49,10 +49,6 @@
gap: 20px;
}
- /*div:has(a:hover) a {*/
- /* color: light-dark(black, rgba(255, 255, 255, 0.5));*/
- /*}*/
-
a {
color: var(--foreground-color);
text-decoration: none;
@@ -62,27 +58,8 @@
text-decoration: underline;
}
- /*a {*/
- /* display: block;*/
- /* position: relative;*/
- /* padding: 0.1em 0;*/
- /*}*/
-
- /*a::after {*/
- /* content: '';*/
- /* position: absolute;*/
- /* bottom: 4px;*/
- /* left: 0;*/
- /* width: 100%;*/
- /* height: 0.03em;*/
- /* background-color: white;*/
- /* opacity: 0;*/
- /* transition: opacity 300ms, transform 300ms;*/
- /*}*/
+}
- /*a:hover::after,*/
- /*a:focus::after {*/
- /* opacity: 1;*/
- /* transform: translate3d(0, 0.2em, 0);*/
- /*}*/
+.current {
+ text-decoration: underline!important;
}
diff --git a/ufund-ui/src/app/app.component.html b/ufund-ui/src/app/app.component.html
index aebf9be..7277682 100644
--- a/ufund-ui/src/app/app.component.html
+++ b/ufund-ui/src/app/app.component.html
@@ -6,10 +6,9 @@
-
Dashboard
-
Cupboard
-
Basket
-
+
Dashboard
+
Cupboard
+
Basket
brightness_7
diff --git a/ufund-ui/src/app/app.component.ts b/ufund-ui/src/app/app.component.ts
index 78fd050..fafffef 100644
--- a/ufund-ui/src/app/app.component.ts
+++ b/ufund-ui/src/app/app.component.ts
@@ -1,10 +1,10 @@
import {Component, OnInit, Inject, ViewContainerRef} from '@angular/core';
import {BehaviorSubject} from 'rxjs';
-import { DOCUMENT } from '@angular/common';
+import {DOCUMENT, Location} from '@angular/common';
import {AuthService} from './services/auth.service';
import {ToastsService} from './services/toasts.service';
import {User, userType} from './models/User';
-import {ActivatedRoute, Router} from '@angular/router';
+import {Router} from '@angular/router';
import {ModalService} from './services/modal.service';
@Component({
@@ -20,10 +20,10 @@ export class AppComponent implements OnInit {
constructor(
private authService: AuthService,
private router: Router,
- private route: ActivatedRoute,
protected toastService: ToastsService,
private viewContainerRef: ViewContainerRef,
protected modalService: ModalService,
+ protected location: Location,
@Inject(DOCUMENT) private document: Document
) {}
@@ -41,6 +41,12 @@ export class AppComponent implements OnInit {
console.log("Key found", dataParsed.key)
}
+ if (this.location.path() == '/cupboard') {
+ console.log("work")
+ } else {
+ console.log(this.location.path())
+ }
+
let theme = localStorage.getItem("theme")
if(!theme) {
// if no color scheme is set, get the system settings
--
cgit v1.2.3
From bb4e0e55fee7ec8f34c36e6299301d612a0de2ce Mon Sep 17 00:00:00 2001
From: sowgro
Date: Mon, 7 Apr 2025 16:46:53 -0400
Subject: Redo login page
---
.../src/app/components/login/login.component.css | 40 +++++++++++++++++----
.../src/app/components/login/login.component.html | 9 +++--
.../src/app/components/signup/signup.component.css | 42 +++++++++++++++++++++-
.../app/components/signup/signup.component.html | 2 ++
4 files changed, 80 insertions(+), 13 deletions(-)
(limited to 'ufund-ui/src/app')
diff --git a/ufund-ui/src/app/components/login/login.component.css b/ufund-ui/src/app/components/login/login.component.css
index f38865b..810d924 100644
--- a/ufund-ui/src/app/components/login/login.component.css
+++ b/ufund-ui/src/app/components/login/login.component.css
@@ -7,7 +7,7 @@
overflow: hidden;
background-color: transparent;
background-blend-mode: darken;
- margin-top: -150px;
+ margin-top: -66px;
}
#bg-cr {
@@ -16,7 +16,8 @@
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");
+ background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)), url("/login-cr.jpg");
+ background-size: cover;
opacity: calc(var(--opacity-cr));
z-index: 1;
}
@@ -26,31 +27,38 @@
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");
+ background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/login-jf.jpg");
+ /*backdrop-filter: brightness(1%);*/
+ background-size: cover;
opacity: var(--opacity-jf);
z-index: 1;
}
#box {
+ animation: ease-in-out fadeIn .1s;
display: flex;
flex-direction: column;
- align-items: center;
+ /*align-items: center;*/
aspect-ratio: 4/5;
min-height: 50vh;
- margin-top: 15vh;
+ /*margin-top: 15vh;*/
gap: 10px;
background-color: color-mix(in srgb, var(--background-color), transparent 50%);
backdrop-filter: blur(10px);
- padding: 50px 40px;
+ padding: 30px;
border-radius: 5px;
border-style: solid;
border-width: 1px;
border-color: var(--highlight-color);
z-index: 2;
+ justify-content: center;
}
#greeting {
- font-size: 32px;
+ color: var(--highlight-color);
+ padding: 0;
+ margin: 0;
+ /*font-size: 32px;*/
/* text-decoration: underline;
text-decoration-color: var(--highlight-color); */
}
@@ -70,3 +78,21 @@
text-decoration-thickness: 1px;
text-decoration-color: var(--highlight-color);
}
+
+input {
+ width: 100%;
+}
+
+h1 {
+ margin-top: 0;
+}
+
+@keyframes fadeIn {
+ from {
+ transform: translateY(-20px);
+ opacity: 0
+ }
+ to {
+ opacity: 1
+ }
+}
diff --git a/ufund-ui/src/app/components/login/login.component.html b/ufund-ui/src/app/components/login/login.component.html
index 27eab96..8b8f5b3 100644
--- a/ufund-ui/src/app/components/login/login.component.html
+++ b/ufund-ui/src/app/components/login/login.component.html
@@ -1,11 +1,10 @@
diff --git a/ufund-ui/src/app/components/signup/signup.component.css b/ufund-ui/src/app/components/signup/signup.component.css
index 207135f..4073931 100644
--- a/ufund-ui/src/app/components/signup/signup.component.css
+++ b/ufund-ui/src/app/components/signup/signup.component.css
@@ -11,17 +11,19 @@
}
#box {
+ animation: ease-in-out fadeIn .1s;
display: flex;
flex-direction: column;
max-width: 500px;
gap: 10px;
backdrop-filter: blur(10px);
background-color: color-mix(in srgb, var(--background-color), transparent 50%);
- padding: 30px;
+ padding: 90px 30px;
border-radius: 5px;
border-style: solid;
border-width: 1px;
border-color: var(--highlight-color);
+ z-index: 2;
& > div {
display: flex;
@@ -85,3 +87,41 @@
}
}
+h1 {
+ margin-top: 0;
+}
+
+#bg-cr {
+ position: absolute;
+ margin-top: -150px;
+ top:0;
+ width: 100vw;
+ height: calc(100vh + 150px);
+ background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)), url("/login-cr.jpg");
+ background-size: cover;
+ opacity: calc(var(--opacity-cr));
+ z-index: 1;
+}
+
+#bg-jf {
+ position: absolute;
+ top:0;
+ width: 100vw;
+ height: 100vh;
+ background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/login-jf.jpg");
+ /*backdrop-filter: brightness(1%);*/
+ background-size: cover;
+ opacity: var(--opacity-jf);
+ z-index: 1;
+}
+
+@keyframes fadeIn {
+ from {
+ transform: translateY(-20px);
+ opacity: 0
+ }
+ to {
+ opacity: 1
+ }
+}
+
diff --git a/ufund-ui/src/app/components/signup/signup.component.html b/ufund-ui/src/app/components/signup/signup.component.html
index ef2fc27..78f5099 100644
--- a/ufund-ui/src/app/components/signup/signup.component.html
+++ b/ufund-ui/src/app/components/signup/signup.component.html
@@ -26,3 +26,5 @@
Already have an account? Log in
+
+
--
cgit v1.2.3