aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/login
diff options
context:
space:
mode:
authorTyler Ferrari <69283684+Sowgro@users.noreply.github.com>2025-04-07 16:50:31 -0400
committerGitHub <noreply@github.com>2025-04-07 16:50:31 -0400
commitdddaceba31730f0c01fd47858b0672c1f664de9b (patch)
treec8c3229c54955a4a037b0ce0a016221e8784af42 /ufund-ui/src/app/components/login
parent7635188ed6182a72facd8ab3299f13c7217a8abd (diff)
parent8b64b8bd43f987b924d74d0ea597b7b606ca9357 (diff)
downloadJellySolutions-dddaceba31730f0c01fd47858b0672c1f664de9b.tar.gz
JellySolutions-dddaceba31730f0c01fd47858b0672c1f664de9b.tar.bz2
JellySolutions-dddaceba31730f0c01fd47858b0672c1f664de9b.zip
Merge pull request #31 from RIT-SWEN-261-02/light-mode
Light mode
Diffstat (limited to 'ufund-ui/src/app/components/login')
-rw-r--r--ufund-ui/src/app/components/login/login.component.css78
-rw-r--r--ufund-ui/src/app/components/login/login.component.html12
2 files changed, 77 insertions, 13 deletions
diff --git a/ufund-ui/src/app/components/login/login.component.css b/ufund-ui/src/app/components/login/login.component.css
index b56b4eb..810d924 100644
--- a/ufund-ui/src/app/components/login/login.component.css
+++ b/ufund-ui/src/app/components/login/login.component.css
@@ -2,29 +2,66 @@
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: -66px;
+}
+
+#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;
}
#box {
+ animation: ease-in-out fadeIn .1s;
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: color-mix(in srgb, var(--background-color), transparent 50%);
backdrop-filter: blur(10px);
- background-color: rgba(0, 0, 0, 0.1);
padding: 30px;
- 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;
+ justify-content: center;
}
+#greeting {
+ color: var(--highlight-color);
+ padding: 0;
+ margin: 0;
+ /*font-size: 32px;*/
+ /* text-decoration: underline;
+ text-decoration-color: var(--highlight-color); */
+}
.border {
border-style: solid;
border-width: 1px;
@@ -34,3 +71,28 @@
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);
+}
+
+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 1017d0f..8b8f5b3 100644
--- a/ufund-ui/src/app/components/login/login.component.html
+++ b/ufund-ui/src/app/components/login/login.component.html
@@ -1,9 +1,11 @@
<div id="box">
+ <h2 id="greeting">Welcome back,</h2>
<h1>Login</h1>
- <input placeholder="Username" type="text" #username (keydown.enter)="login(username.value, password.value)">
- <input placeholder="Password" type="password" #password (keydown.enter)="login(username.value, password.value)">
+ <input class="form-input" placeholder="Username" type="text" #username (keydown.enter)="login(username.value, password.value)">
+ <input class="form-input" placeholder="Password" type="password" #password (keydown.enter)="login(username.value, password.value)">
<button type="button" (click)="login(username.value, password.value)">Login</button>
- <div>
- New? <a routerLink="/signup">Create an account</a>
- </div>
+ <span>New? <a routerLink="/signup">Create an account.</a></span>
</div>
+<div id="bg-cr"></div>
+<div id="bg-jf"></div>
+