Soon™
diff --git a/src/app/login/login.component.css b/src/app/login/login.component.css
new file mode 100644
index 0000000..f7fad06
--- /dev/null
+++ b/src/app/login/login.component.css
@@ -0,0 +1,63 @@
+#vanta-login-bg {
+ transition: opacity 0.3s ease-in-out;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw; /* Full viewport width */
+ height: 100vh; /* Full viewport height */
+ z-index: -100; /* Place the background behind content */
+}
+
+.height-container {
+ min-height: 100vh;
+ align-content: center;
+}
+
+/* Login Form Styles */
+.login-container {
+ background: #fff;
+ border-radius: 8px;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+ padding: 40px;
+ width: 300px;
+ text-align: center;
+ margin: 0px auto 0px auto;
+ position: relative;
+ z-index: 1;
+}
+
+h2 {
+ margin-bottom: 20px;
+}
+
+input {
+ width: 100%;
+ padding: 10px;
+ margin: 10px 0;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+
+button {
+ width: 100%;
+ padding: 10px;
+ background-color: #4CAF50;
+ color: white;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+}
+
+button:disabled {
+ background-color: #ccc;
+}
+
+button:hover {
+ background-color: #45a049;
+}
+
+.error-message {
+ color: red;
+ font-size: 14px;
+ margin-top: 10px;
+}
diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html
new file mode 100644
index 0000000..2636d85
--- /dev/null
+++ b/src/app/login/login.component.html
@@ -0,0 +1,17 @@
+
+
+
+
+
Login
+
+
{{ errorMessage }}
+
+
diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts
new file mode 100644
index 0000000..6453366
--- /dev/null
+++ b/src/app/login/login.component.ts
@@ -0,0 +1,101 @@
+import {Component, OnInit, OnDestroy, AfterViewInit, Inject} from '@angular/core';
+import { AuthService } from '../auth.service';
+import { Router } from '@angular/router';
+import {FormsModule} from '@angular/forms';
+import {NgIf} from '@angular/common';
+import { HttpClientModule } from '@angular/common/http';
+import { isPlatformBrowser } from '@angular/common';
+import { PLATFORM_ID } from '@angular/core';
+
+@Component({
+ selector: 'app-login',
+ templateUrl: './login.component.html',
+ styleUrls: ['./login.component.css'],
+ imports: [
+ FormsModule,
+ NgIf,
+ HttpClientModule
+ ]
+})
+
+export class LoginComponent implements OnInit, OnDestroy, AfterViewInit {
+ username: string = '';
+ password: string = '';
+ errorMessage: string = '';
+ private vantaEffect: any;
+
+ constructor(
+ private authService: AuthService,
+ private router: Router,
+ @Inject(PLATFORM_ID) private platformId: Object
+ ) {}
+
+ ngOnInit() {
+ window.addEventListener('resize', this.onResize.bind(this));
+
+ const bgElement = document.getElementById('vanta-login-bg');
+ if (bgElement) {
+ bgElement.style.position = 'fixed';
+ }
+ }
+
+ onLogin() {
+ this.authService.login(this.username, this.password).subscribe(
+ (response: any) => {
+ localStorage.setItem('token', response.token);
+ this.router.navigate(['/admin']); // Redirect to admin page
+ },
+ () => {
+ this.errorMessage = 'Invalid credentials';
+ }
+ );
+ }
+
+ ngAfterViewInit() {
+ if (isPlatformBrowser(this.platformId)) {
+ // Initialize VANTA effect only in the browser
+ this.initVanta();
+ this.resizeVanta();
+ }
+ }
+ ngOnDestroy() {
+ if (isPlatformBrowser(this.platformId)) {
+ if (this.vantaEffect) {
+ this.vantaEffect.destroy(); // Clean up the effect on destroy
+ }
+ window.removeEventListener('resize', this.onResize); // Remove the listener when the component is destroyed
+ }
+ }
+
+ initVanta() {
+ if (isPlatformBrowser(this.platformId)) {
+ // Initialize the Vanta effect on the element with ID 'vanta-bg'
+ this.vantaEffect = window.VANTA.NET({
+ el: '#vanta-login-bg',
+ mouseControls: true,
+ touchControls: true,
+ gyroControls: false,
+ scale: 1.00,
+ scaleMobile: 1.00,
+ points: 20.00,
+ maxDistance: 25.00,
+ spacing: 18.00,
+ showDots: false,
+ minWidth: window.innerWidth,
+ minHeight: window.innerHeight,
+ });
+ }
+ }
+
+ onResize() {
+ // Update the minHeight and minWidth when the window is resized
+ this.resizeVanta();
+ }
+
+ resizeVanta() {
+ if (this.vantaEffect) {
+ // Trigger the resize on the vanta effect
+ this.vantaEffect.resize();
+ }
+ }
+}
diff --git a/src/app/not-found/not-found.component.css b/src/app/not-found/not-found.component.css
index c8f27a2..e6b8f79 100644
--- a/src/app/not-found/not-found.component.css
+++ b/src/app/not-found/not-found.component.css
@@ -8,9 +8,9 @@
z-index: -100; /* Place the background behind content */
}
-.container {
+.height-container {
display: flex;
- height: 100%;
+ min-height: 100vh;
justify-content: center;
align-items: center;
text-align: center;
@@ -38,7 +38,7 @@ button {
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
- border-radius: 5px;
+ border-radius: 25px;
transition: background-color 0.3s;
font-weight: 400;
}
diff --git a/src/app/not-found/not-found.component.html b/src/app/not-found/not-found.component.html
index f4cc621..7072920 100644
--- a/src/app/not-found/not-found.component.html
+++ b/src/app/not-found/not-found.component.html
@@ -1,5 +1,5 @@
-
+
404
Oops! You got lost in space.
diff --git a/src/app/portfolio/portfolio.component.css b/src/app/portfolio/portfolio.component.css
index a747657..c73189b 100644
--- a/src/app/portfolio/portfolio.component.css
+++ b/src/app/portfolio/portfolio.component.css
@@ -17,6 +17,11 @@
font-family: 'Roboto', sans-serif;
}
+.height-container {
+ min-height: 100vh;
+ align-content: center;
+}
+
.portfolio-header {
text-align: center;
}
@@ -83,9 +88,10 @@
font-weight: 400;
}
-.portfolio-footer {
+.commission-button {
text-align: center;
- margin-top: 50px;
+ margin-top: 30px;
+ margin-bottom: 50px;
}
.ko-fi-btn {
diff --git a/src/app/portfolio/portfolio.component.html b/src/app/portfolio/portfolio.component.html
index 48d65cf..492fd6e 100644
--- a/src/app/portfolio/portfolio.component.html
+++ b/src/app/portfolio/portfolio.component.html
@@ -1,4 +1,5 @@
+
+

@@ -47,9 +53,5 @@
Logo Design
-
+