diff --git a/.gitignore b/.gitignore index cc7b141..99a2bb1 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ testem.log # System files .DS_Store Thumbs.db +/.vscode/ diff --git a/angular.json b/angular.json index e4635ff..dcc66f4 100644 --- a/angular.json +++ b/angular.json @@ -27,6 +27,7 @@ } ], "styles": [ + "@angular/material/prebuilt-themes/magenta-violet.css", "src/styles.css" ], "scripts": [] @@ -82,9 +83,11 @@ { "glob": "**/*", "input": "public" - } + }, + "src/assets" ], "styles": [ + "@angular/material/prebuilt-themes/magenta-violet.css", "src/styles.css" ], "scripts": [] @@ -92,5 +95,8 @@ } } } + }, + "cli": { + "analytics": "7c748d65-f240-495f-a7b6-3433648bdabf" } } diff --git a/package-lock.json b/package-lock.json index 17e6eab..c370539 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,15 +9,22 @@ "version": "0.0.0", "dependencies": { "@angular/animations": "^19.0.0", + "@angular/cdk": "^19.0.3", "@angular/common": "^19.0.0", "@angular/compiler": "^19.0.0", "@angular/core": "^19.0.0", "@angular/forms": "^19.0.0", + "@angular/material": "^19.0.3", "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", + "@fortawesome/fontawesome-free": "^6.7.2", + "@types/three": "^0.171.0", + "react": "^19.0.0", "rxjs": "~7.8.0", + "three": "^0.171.0", "tslib": "^2.3.0", + "vanta": "^0.5.24", "zone.js": "~0.15.0" }, "devDependencies": { @@ -349,6 +356,23 @@ } } }, + "node_modules/@angular/cdk": { + "version": "19.0.3", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-19.0.3.tgz", + "integrity": "sha512-sPdIKbSgNk4z02FqdTTMUS62aLVA2R/DsnOk3qdH+nEfeS4nNWQEzwrvMf6dDsTeLQ6YJLWXfZfemsGYpOoiWg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "optionalDependencies": { + "parse5": "^7.1.2" + }, + "peerDependencies": { + "@angular/common": "^19.0.0 || ^20.0.0", + "@angular/core": "^19.0.0 || ^20.0.0", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, "node_modules/@angular/cli": { "version": "19.0.5", "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-19.0.5.tgz", @@ -482,6 +506,24 @@ "rxjs": "^6.5.3 || ^7.4.0" } }, + "node_modules/@angular/material": { + "version": "19.0.3", + "resolved": "https://registry.npmjs.org/@angular/material/-/material-19.0.3.tgz", + "integrity": "sha512-aHAnmEzoE6nEF7S/lBlMwDMs6ZEkvE3omg9g6jY6WyKWtP9HYeCfwxmTPVclqcbXWxJWO/5Bvwfcjzs75uC+YA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "peerDependencies": { + "@angular/animations": "^19.0.0 || ^20.0.0", + "@angular/cdk": "19.0.3", + "@angular/common": "^19.0.0 || ^20.0.0", + "@angular/core": "^19.0.0 || ^20.0.0", + "@angular/forms": "^19.0.0 || ^20.0.0", + "@angular/platform-browser": "^19.0.0 || ^20.0.0", + "rxjs": "^6.5.3 || ^7.4.0" + } + }, "node_modules/@angular/platform-browser": { "version": "19.0.4", "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-19.0.4.tgz", @@ -2583,6 +2625,15 @@ "node": ">=18" } }, + "node_modules/@fortawesome/fontawesome-free": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.7.2.tgz", + "integrity": "sha512-JUOtgFW6k9u4Y+xeIaEiLr3+cjoUPiAuLXoyKOJSia6Duzb7pq+A76P9ZdPDoAoxHdHzq6gE9/jKBGXlZT8FbA==", + "license": "(CC-BY-4.0 AND OFL-1.1 AND MIT)", + "engines": { + "node": ">=6" + } + }, "node_modules/@inquirer/checkbox": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.0.3.tgz", @@ -4694,6 +4745,12 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/@tweenjs/tween.js": { + "version": "23.1.3", + "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz", + "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==", + "license": "MIT" + }, "node_modules/@types/body-parser": { "version": "1.19.5", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", @@ -4943,6 +5000,32 @@ "@types/node": "*" } }, + "node_modules/@types/stats.js": { + "version": "0.17.3", + "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.3.tgz", + "integrity": "sha512-pXNfAD3KHOdif9EQXZ9deK82HVNaXP5ZIF5RP2QG6OQFNTaY2YIetfrE9t528vEreGQvEPRDDc8muaoYeK0SxQ==", + "license": "MIT" + }, + "node_modules/@types/three": { + "version": "0.171.0", + "resolved": "https://registry.npmjs.org/@types/three/-/three-0.171.0.tgz", + "integrity": "sha512-oLuT1SAsT+CUg/wxUTFHo0K3NtJLnx9sJhZWQJp/0uXqFpzSk1hRHmvWvpaAWSfvx2db0lVKZ5/wV0I0isD2mQ==", + "license": "MIT", + "dependencies": { + "@tweenjs/tween.js": "~23.1.3", + "@types/stats.js": "*", + "@types/webxr": "*", + "@webgpu/types": "*", + "fflate": "~0.8.2", + "meshoptimizer": "~0.18.1" + } + }, + "node_modules/@types/webxr": { + "version": "0.5.20", + "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.20.tgz", + "integrity": "sha512-JGpU6qiIJQKUuVSKx1GtQnHJGxRjtfGIhzO2ilq43VZZS//f1h1Sgexbdk+Lq+7569a6EYhOWrUpIruR/1Enmg==", + "license": "MIT" + }, "node_modules/@types/ws": { "version": "8.5.13", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz", @@ -5127,6 +5210,12 @@ "@xtuc/long": "4.2.2" } }, + "node_modules/@webgpu/types": { + "version": "0.1.52", + "resolved": "https://registry.npmjs.org/@webgpu/types/-/types-0.1.52.tgz", + "integrity": "sha512-eI883Nlag2hGIkhXxAnq8s4APpqXWuPL3Gbn2ghiU12UjLvfCbVqHK4XfXl3eLRTatqcMmeK7jws7IwWsGfbzw==", + "license": "BSD-3-Clause" + }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", @@ -6982,7 +7071,7 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, + "devOptional": true, "license": "BSD-2-Clause", "engines": { "node": ">=0.12" @@ -7455,6 +7544,12 @@ "node": ">=0.8.0" } }, + "node_modules/fflate": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", + "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", + "license": "MIT" + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -9749,6 +9844,12 @@ "node": ">= 8" } }, + "node_modules/meshoptimizer": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.18.1.tgz", + "integrity": "sha512-ZhoIoL7TNV4s5B6+rx5mC//fw8/POGyNxS/DZyCJeiZ12ScLfVwRE/GfsxwiTkMYYD5DmK2/JXnEVXqL4rF+Sw==", + "license": "MIT" + }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -10982,7 +11083,7 @@ "version": "7.2.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.1.tgz", "integrity": "sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "entities": "^4.5.0" @@ -11479,6 +11580,15 @@ "node": ">= 0.8" } }, + "node_modules/react": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -13094,6 +13204,12 @@ "tslib": "^2" } }, + "node_modules/three": { + "version": "0.171.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.171.0.tgz", + "integrity": "sha512-Y/lAXPaKZPcEdkKjh0JOAHVv8OOnv/NDJqm0wjfCzyQmfKxV7zvkwsnBgPBKTzJHToSOhRGQAGbPJObT59B/PQ==", + "license": "MIT" + }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", @@ -13469,6 +13585,12 @@ "node": "^18.17.0 || >=20.5.0" } }, + "node_modules/vanta": { + "version": "0.5.24", + "resolved": "https://registry.npmjs.org/vanta/-/vanta-0.5.24.tgz", + "integrity": "sha512-fvieEbHy1ZS23zrcX+topzqAgA4Uct1enngOEWLFBgs9TtOf6RDFOYatH7KSVdrABzQDMCQ5myQy+nTSZZwLzg==", + "license": "MIT" + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", diff --git a/package.json b/package.json index ea0ea25..b0d8623 100644 --- a/package.json +++ b/package.json @@ -11,15 +11,22 @@ "private": true, "dependencies": { "@angular/animations": "^19.0.0", + "@angular/cdk": "^19.0.3", "@angular/common": "^19.0.0", "@angular/compiler": "^19.0.0", "@angular/core": "^19.0.0", "@angular/forms": "^19.0.0", + "@angular/material": "^19.0.3", "@angular/platform-browser": "^19.0.0", "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", + "@fortawesome/fontawesome-free": "^6.7.2", + "@types/three": "^0.171.0", + "react": "^19.0.0", "rxjs": "~7.8.0", + "three": "^0.171.0", "tslib": "^2.3.0", + "vanta": "^0.5.24", "zone.js": "~0.15.0" }, "devDependencies": { diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png new file mode 100644 index 0000000..3e81bfe Binary files /dev/null and b/public/android-chrome-192x192.png differ diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png new file mode 100644 index 0000000..9d8275a Binary files /dev/null and b/public/android-chrome-512x512.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..910f995 Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/assets/design1.png b/public/assets/design1.png new file mode 100644 index 0000000..accb072 Binary files /dev/null and b/public/assets/design1.png differ diff --git a/public/assets/design2.png b/public/assets/design2.png new file mode 100644 index 0000000..132f84f Binary files /dev/null and b/public/assets/design2.png differ diff --git a/public/assets/design3.png b/public/assets/design3.png new file mode 100644 index 0000000..2351e87 Binary files /dev/null and b/public/assets/design3.png differ diff --git a/public/assets/design4.png b/public/assets/design4.png new file mode 100644 index 0000000..2f64b1c Binary files /dev/null and b/public/assets/design4.png differ diff --git a/public/assets/design5.png b/public/assets/design5.png new file mode 100644 index 0000000..2d1e8c0 Binary files /dev/null and b/public/assets/design5.png differ diff --git a/public/assets/design6.png b/public/assets/design6.png new file mode 100644 index 0000000..a315ea8 Binary files /dev/null and b/public/assets/design6.png differ diff --git a/public/assets/ogimg.png b/public/assets/ogimg.png new file mode 100644 index 0000000..6c2662c Binary files /dev/null and b/public/assets/ogimg.png differ diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png new file mode 100644 index 0000000..4b4bbd1 Binary files /dev/null and b/public/favicon-16x16.png differ diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png new file mode 100644 index 0000000..ec81870 Binary files /dev/null and b/public/favicon-32x32.png differ diff --git a/public/favicon.ico b/public/favicon.ico index 57614f9..d88b65f 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/src/app/about/about.component.css b/src/app/about/about.component.css new file mode 100644 index 0000000..0b92e2e --- /dev/null +++ b/src/app/about/about.component.css @@ -0,0 +1,119 @@ +#vanta-about-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 */ +} + +.about-container { + position: relative; + color: white; + padding: 120px 20px; + box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1); + max-width: 960px; + margin: 0px auto 0px auto; + font-family: 'Roboto', sans-serif; + z-index: 1; +} + +.about-header { + text-align: center; +} + +.about-header p { + font-style: italic; +} + +.about-content p { + font-size: 1.2rem; + margin-bottom: 10px; + text-align: center; +} + +.about-header h1 { + font-size: 2.5rem; + background: transparent; + border: 4px solid white; + margin: 8px 340px 8px 340px; + padding: 10px; + border-radius: 45px; +} + +.about-header .subtitle { + font-size: 1.2rem; + font-style: italic; + margin-bottom: 30px; +} + +.about-content { + line-height: 1.6; + font-size: 1.2rem; +} + +.category { + border-radius: 8px; + padding: 5px; + width: 200px; +} + +.category h4 { + font-size: 1.2rem; + font-weight: 500; + margin-bottom: 10px; + text-align: center; + font-style: italic; +} + +h3 { + font-size: 1.4rem; + text-align: center; + background: linear-gradient(135deg, #9c27b0, #6200ea); + margin: 8px 380px 20px 380px; + padding: 10px; + border-radius: 30px; +} + +.tech-stack { + background: linear-gradient(135deg, #9c27b0, #6200ea); + border-radius: 40px; + margin: 0px 30px 0px 30px; + justify-content: center; + align-items: flex-start; + display: flex; + gap: 10px; + flex-wrap: wrap; +} + +.tech-stack ul { + list-style: none; + padding-left: 0; +} + +.tech-stack li { + background-color: rgba(255, 255, 255, 0.1); + margin: 12px 0; + padding: 10px; + border-radius: 25px; + text-align: center; +} + +.tech-stack li:hover { + background-color: rgba(255, 255, 255, 0.2); +} + +@media (max-width: 768px) { + .about-container { + padding: 20px 10px; + } + + .about-header h1 { + font-size: 2rem; + } + + .subtitle { + font-size: 1rem; + } +} diff --git a/src/app/about/about.component.html b/src/app/about/about.component.html new file mode 100644 index 0000000..a6c2f59 --- /dev/null +++ b/src/app/about/about.component.html @@ -0,0 +1,53 @@ +
+
+
+

About Me

+

Hobby developer & designer

+
+ +
+

+ Hello, I'm Michael, a developer and designer based in Austria. I specialize in frontend web development, + graphic design, and creating neat UIs. +

+

+ When I'm not coding, I love learning new technologies and contributing to open-source projects.
I also give support on the Pterodactyl Discord +

+
+

Tech Stack

+
+
+

= WEB SERVERS =

+
    +
  • NGiNX
  • +
+
+
+

= LANGUAGES =

+
    +
  • Node.js
  • +
  • JavaScript/TypeScript
  • +
  • Go
  • +
  • CSS & HTML
  • +
+
+
+

= DATABASES =

+
    +
  • MySQL/MariaDB
  • +
+
+
+

= TOOLS =

+
    +
  • Git
  • +
  • Docker
  • +
  • VSCode
  • +
  • WebStorm
  • +
  • IntelliJ
  • +
  • Angular
  • +
+
+
+
+
diff --git a/src/app/about/about.component.spec.ts b/src/app/about/about.component.spec.ts new file mode 100644 index 0000000..74d6d9e --- /dev/null +++ b/src/app/about/about.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AboutComponent } from './about.component'; + +describe('AboutComponent', () => { + let component: AboutComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [AboutComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(AboutComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/about/about.component.ts b/src/app/about/about.component.ts new file mode 100644 index 0000000..9bff281 --- /dev/null +++ b/src/app/about/about.component.ts @@ -0,0 +1,65 @@ +import {Component, OnInit, OnDestroy, AfterViewInit} from '@angular/core'; +import {Meta, Title} from '@angular/platform-browser'; + +@Component({ + selector: 'app-about', + templateUrl: './about.component.html', + styleUrls: ['./about.component.css'] +}) +export class AboutComponent implements OnInit, OnDestroy, AfterViewInit { + constructor(private titleService: Title, private meta: Meta) {} + private vantaEffect: any; + + ngOnInit() { + this.titleService.setTitle('itzMiney\'s Home'); + this.meta.updateTag({ name: 'description', content: 'Welcome to itzMiney\'s Homepage!\bHere you can find my portfolio and other cool stuff.' }); + this.meta.updateTag({ property: 'og:image', content: 'https://itzminey.dev/assets/ogimg.png' }); + + window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness + + const bgElement = document.getElementById('vanta-about-bg'); + if (bgElement) { + bgElement.style.position = 'fixed'; + } + } + ngAfterViewInit() { + this.initVanta(); + this.resizeVanta(); + } + ngOnDestroy() { + 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() { + // Initialize the Vanta effect on the element with ID 'vanta-bg' + this.vantaEffect = window.VANTA.NET({ + el: '#vanta-about-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/app.component.css b/src/app/app.component.css index e69de29..f4d4bd2 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -0,0 +1,8 @@ +:host { + z-index: 0; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; +} diff --git a/src/app/app.component.html b/src/app/app.component.html index 36093e1..a37e8ae 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,336 +1,3 @@ - - - - - - - - - - - -
-
-
- -

Hello, {{ title }}

-

Congratulations! Your app is running. 🎉

-
- -
-
- @for (item of [ - { title: 'Explore the Docs', link: 'https://angular.dev' }, - { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, - { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, - { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, - { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, - ]; track item.title) { - - {{ item.title }} - - - - - } -
- -
-
-
- - - - - - - - - - + + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 76e6f9c..793f639 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,9 +1,11 @@ import { Component } from '@angular/core'; -import { RouterOutlet } from '@angular/router'; +import { RouterOutlet, provideRouter } from '@angular/router'; +import {NavbarComponent} from './navbar/navbar.component'; +import {FooterComponent} from './footer/footer.component'; @Component({ selector: 'app-root', - imports: [RouterOutlet], + imports: [RouterOutlet, NavbarComponent, FooterComponent], templateUrl: './app.component.html', styleUrl: './app.component.css' }) diff --git a/src/app/app.config.ts b/src/app/app.config.ts index a1e7d6f..96116fd 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -2,7 +2,8 @@ import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; +import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; export const appConfig: ApplicationConfig = { - providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)] + providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideAnimationsAsync()] }; diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index dc39edb..052b4e7 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,3 +1,16 @@ import { Routes } from '@angular/router'; +import { AboutComponent } from './about/about.component'; +import { PortfolioComponent } from './portfolio/portfolio.component'; +import { ContactComponent } from './contact/contact.component'; +import { BlogComponent } from './blog/blog.component'; +import {NotFoundComponent} from './not-found/not-found.component'; -export const routes: Routes = []; +export const routes: Routes = [ + { path: '', redirectTo: '/about', pathMatch: 'full' }, // Redirect default route to 'about' + { path: 'about', component: AboutComponent }, + { path: 'portfolio', component: PortfolioComponent }, + { path: 'contact', component: ContactComponent }, + { path: 'blog', component: BlogComponent }, + + { path: '**', pathMatch: 'full', component: NotFoundComponent }, +]; diff --git a/src/app/blog/blog.component.css b/src/app/blog/blog.component.css new file mode 100644 index 0000000..67cdc91 --- /dev/null +++ b/src/app/blog/blog.component.css @@ -0,0 +1,32 @@ +#vanta-blog-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 */ +} + +.container { + display: flex; + height: 100%; + justify-content: center; + align-items: center; + text-align: center; + z-index: 10; /* Ensure the text and button are above the canvas */ +} + +.error-message h1 { + font-size: 10rem; + margin: 0; + font-weight: 700; + color: white; +} + +.error-message p { + font-size: 1.5rem; + margin: 20px 0; + font-weight: 400; + color: white; +} diff --git a/src/app/blog/blog.component.html b/src/app/blog/blog.component.html new file mode 100644 index 0000000..8ef8094 --- /dev/null +++ b/src/app/blog/blog.component.html @@ -0,0 +1,7 @@ +
+
+
+

Soon™

+

Under Construction!

+
+
diff --git a/src/app/blog/blog.component.spec.ts b/src/app/blog/blog.component.spec.ts new file mode 100644 index 0000000..7998b08 --- /dev/null +++ b/src/app/blog/blog.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { BlogComponent } from './blog.component'; + +describe('BlogComponent', () => { + let component: BlogComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [BlogComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(BlogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/blog/blog.component.ts b/src/app/blog/blog.component.ts new file mode 100644 index 0000000..90737d5 --- /dev/null +++ b/src/app/blog/blog.component.ts @@ -0,0 +1,69 @@ +import {Component, OnInit, OnDestroy, AfterViewInit } from '@angular/core'; +import {Meta, Title} from '@angular/platform-browser'; + +@Component({ + selector: 'app-blog', + imports: [], + templateUrl: './blog.component.html', + styleUrl: './blog.component.css' +}) +export class BlogComponent implements OnInit, OnDestroy, AfterViewInit { + constructor(private titleService: Title, private meta: Meta) {} + private vantaEffect: any; + + ngOnInit() { + this.titleService.setTitle('Blog | itzMiney'); + this.meta.updateTag({ name: 'description', content: 'Welcome to my blog!\bI\'ll post occasional updates here on the stuff I\'m currently up to.'}); + this.meta.updateTag({ property: 'og:image', content: 'https://itzminey.dev/assets/ogimg.png' }); + + window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness + + const bgElement = document.getElementById('vanta-blog-bg'); + if (bgElement) { + bgElement.style.position = 'fixed'; + } + } + + ngAfterViewInit() { + this.initVanta(); + this.resizeVanta(); + } + ngOnDestroy() { + 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() { + // Initialize the Vanta effect on the element with ID 'vanta-bg' + this.vantaEffect = window.VANTA.NET({ + el: '#vanta-blog-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, + color: 0xac1f4e, + backgroundColor: 0x191522 + }); + } + + 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/contact/contact.component.css b/src/app/contact/contact.component.css new file mode 100644 index 0000000..a8e7a9c --- /dev/null +++ b/src/app/contact/contact.component.css @@ -0,0 +1,134 @@ +#vanta-contact-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 */ +} + +.contact-container { + position: relative; + color: white; + padding: 120px 20px; + box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1); + max-width: 700px; + margin: 0px auto 0px auto; + font-family: 'Roboto', sans-serif; + z-index: 1; +} + +.contact-header { + text-align: center; +} + +.contact-header p { + font-style: italic; +} + +.contact-box p { + font-size: 1.0rem; + font-weight: 400; + margin-bottom: 10px; + text-align: center; +} + +.contact-header h1 { + font-size: 2.5rem; + background: transparent; + border: 4px solid white; + margin: 8px 230px 8px 230px; + padding: 10px; + border-radius: 45px; +} + +.subtitle { + font-size: 1.2rem; + font-weight: 300; + margin-bottom: 30px; +} + +.contact-box { + line-height: 1.6; + font-size: 1.1rem; +} + +h3 { + font-size: 1.4rem; + text-align: center; + background: linear-gradient(135deg, #9c27b0, #6200ea); + margin: 8px 250px 20px 250px; + padding: 10px; + border-radius: 30px; +} + +.contact-box { + background: linear-gradient(135deg, #9c27b0, #6200ea); + border-radius: 40px; + padding: 20px; + margin: 0px 30px 0px 30px; + justify-content: center; + align-items: flex-start; + display: flex; + gap: 10px; + flex-wrap: wrap; +} + +.contact-form { + display: flex; + flex-direction: column; + min-width: 500px; + gap: 15px; +} + +.contact-form input, .contact-form textarea { + padding: 10px; + border: 1px solid #ddd; + border-radius: 5px; + font-size: 1rem; +} + +.contact-form input:focus, .contact-form textarea:focus { + outline: none; + border-color: #6200ea; +} + +.contact-form button { + padding: 12px; + background-color: #ffffff; + color: black; + min-width: 200px; + border: none; + border-radius: 5px; + cursor: pointer; + font-size: 1.1rem; +} + +.right { + transform: translateX(+300px); +} + +.contact-form button:hover { + background-color: #dddddd; + color: #6200ea; +} + +.contact-form textarea { + resize: vertical; + min-height: 120px; +} + +@media (max-width: 768px) { + .contact-container { + padding: 20px 10px; + } + + .contact-header h1 { + font-size: 2rem; + } + + .subtitle { + font-size: 1rem; + } +} diff --git a/src/app/contact/contact.component.html b/src/app/contact/contact.component.html new file mode 100644 index 0000000..361ee26 --- /dev/null +++ b/src/app/contact/contact.component.html @@ -0,0 +1,24 @@ +
+
+
+

Contact

+

Lets get in touch!

+
+

Contact Form

+
+
+
+ + + + + + + + + +
+
+
+
+
diff --git a/src/app/contact/contact.component.spec.ts b/src/app/contact/contact.component.spec.ts new file mode 100644 index 0000000..dae8ee6 --- /dev/null +++ b/src/app/contact/contact.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ContactComponent } from './contact.component'; + +describe('ContactComponent', () => { + let component: ContactComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ContactComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ContactComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/contact/contact.component.ts b/src/app/contact/contact.component.ts new file mode 100644 index 0000000..a4008ff --- /dev/null +++ b/src/app/contact/contact.component.ts @@ -0,0 +1,81 @@ +import {Component, OnInit, OnDestroy, AfterViewInit} from '@angular/core'; +import {FormGroup, FormBuilder, Validators, ReactiveFormsModule} from '@angular/forms'; +import {Meta, Title} from '@angular/platform-browser'; + +@Component({ + selector: 'app-contact', + templateUrl: './contact.component.html', + imports: [ReactiveFormsModule], + styleUrls: ['./contact.component.css'] +}) + +export class ContactComponent implements OnInit, OnDestroy, AfterViewInit { + constructor(private titleService: Title, private fb: FormBuilder, private meta: Meta) {} + private vantaEffect: any; + contactForm: FormGroup = new FormGroup({}); + + ngOnInit() { + this.titleService.setTitle('Contact | itzMiney'); + this.meta.updateTag({ name: 'description', content: 'Wanna get in touch? Fill out this short Contact form and I\'ll get back to you as soon as I can!' }); + this.meta.updateTag({ property: 'og:image', content: 'https://itzminey.dev/assets/ogimg.png' }); + + window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness + + const bgElement = document.getElementById('vanta-contact-bg') + if (bgElement) { + bgElement.style.position = 'fixed'; + } + + this.contactForm = this.fb.group({ + name: ['', [Validators.required, Validators.minLength(3)]], // Name is required and at least 3 chars + email: ['', [Validators.required, Validators.email]], // Email is required and must be valid + message: ['', [Validators.required, Validators.minLength(10)]], // Message is required and at least 10 chars + }); + } + ngAfterViewInit() { + this.initVanta(); + this.resizeVanta(); + } + ngOnDestroy() { + 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() { + // Initialize the Vanta effect on the element with ID 'vanta-bg' + this.vantaEffect = window.VANTA.NET({ + el: '#vanta-contact-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, + color: 0xbb3fff, + backgroundColor: 0x15193c + }); + } + + 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(); + } + } + + onSubmit() { + + } +} diff --git a/src/app/footer/footer.component.css b/src/app/footer/footer.component.css new file mode 100644 index 0000000..f5bc775 --- /dev/null +++ b/src/app/footer/footer.component.css @@ -0,0 +1,38 @@ +footer { + text-align: center; + padding: 20px; + background-color: darkslateblue; + color: white; + font-family: 'Roboto', sans-serif; + font-size: 1rem; + box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); +} + +footer p { + margin: 5px 0; +} + +footer a { + color: #ffcc00; + text-decoration: none; + font-weight: bold; +} + +footer a:hover { + text-decoration: underline; +} + +footer .social-icons { + margin-top: 10px; +} + +footer .social-icons a { + margin: 0 10px; + color: white; + font-size: 1.5rem; + transition: color 0.3s; +} + +footer .social-icons a:hover { + color: #ffcc00; +} diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html new file mode 100644 index 0000000..5cee78c --- /dev/null +++ b/src/app/footer/footer.component.html @@ -0,0 +1,14 @@ + diff --git a/src/app/footer/footer.component.spec.ts b/src/app/footer/footer.component.spec.ts new file mode 100644 index 0000000..3f93915 --- /dev/null +++ b/src/app/footer/footer.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FooterComponent } from './footer.component'; + +describe('FooterComponent', () => { + let component: FooterComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [FooterComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(FooterComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/footer/footer.component.ts b/src/app/footer/footer.component.ts new file mode 100644 index 0000000..08cf5c1 --- /dev/null +++ b/src/app/footer/footer.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-footer', + imports: [], + templateUrl: './footer.component.html', + styleUrl: './footer.component.css' +}) +export class FooterComponent { + +} diff --git a/src/app/navbar/navbar.component.css b/src/app/navbar/navbar.component.css new file mode 100644 index 0000000..69bca8c --- /dev/null +++ b/src/app/navbar/navbar.component.css @@ -0,0 +1,41 @@ +.navbar { + position: fixed; + top: 20px; /* Add top margin */ + left: 50%; + transform: translateX(-50%); /* Center the navbar horizontally */ + width: auto; + background-color: #1e1e1e; + padding: 10px 13px; /* Adjusted padding for a wider 'bean' shape */ + border-radius: 50px; /* Create the 'bean' shape */ + z-index: 1000; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); + display: flex; + justify-content: center; + align-items: center; +} + +.navbar-links { + display: flex; + gap: 20px; +} + +.navbar a { + color: white; + text-decoration: none; + font-size: 16px; + padding: 10px 20px; + border-radius: 25px; + transition: all 0.3s ease; +} + +.navbar a:hover { + background-color: #9c27b0; + color: #fff; + transform: scale(1.1); +} + +.navbar a.active { + background-color: #9c27b0; + color: #fff; + transform: scale(1.1); +} diff --git a/src/app/navbar/navbar.component.html b/src/app/navbar/navbar.component.html new file mode 100644 index 0000000..ea6f713 --- /dev/null +++ b/src/app/navbar/navbar.component.html @@ -0,0 +1,8 @@ + diff --git a/src/app/navbar/navbar.component.spec.ts b/src/app/navbar/navbar.component.spec.ts new file mode 100644 index 0000000..cfedf9e --- /dev/null +++ b/src/app/navbar/navbar.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NavbarComponent } from './navbar.component'; + +describe('NavbarComponent', () => { + let component: NavbarComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [NavbarComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(NavbarComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/navbar/navbar.component.ts b/src/app/navbar/navbar.component.ts new file mode 100644 index 0000000..d55231b --- /dev/null +++ b/src/app/navbar/navbar.component.ts @@ -0,0 +1,25 @@ +import { Component, OnInit } from '@angular/core'; +import {Router, NavigationEnd, RouterLink} from '@angular/router'; + +@Component({ + selector: 'app-navbar', + templateUrl: './navbar.component.html', + styleUrls: ['./navbar.component.css'], + imports: [ + RouterLink + ] +}) +export class NavbarComponent implements OnInit { + activeLink: string = ''; + + constructor(private router: Router) {} + + ngOnInit() { + // Listen to route changes + this.router.events.subscribe((event) => { + if (event instanceof NavigationEnd) { + this.activeLink = event.urlAfterRedirects; // Capture the active route + } + }); + } +} diff --git a/src/app/not-found/not-found.component.css b/src/app/not-found/not-found.component.css new file mode 100644 index 0000000..c8f27a2 --- /dev/null +++ b/src/app/not-found/not-found.component.css @@ -0,0 +1,48 @@ +#vanta-not-found-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 */ +} + +.container { + display: flex; + height: 100%; + justify-content: center; + align-items: center; + text-align: center; + z-index: 10; /* Ensure the text and button are above the canvas */ +} + +.error-message h1 { + font-size: 10rem; + margin: 0; + font-weight: 700; + color: white; +} + +.error-message p { + font-size: 1.5rem; + margin: 20px 0; + font-weight: 400; + color: white; +} + +button { + background-color: #713252; + color: #fff; + border: none; + padding: 10px 20px; + font-size: 1rem; + cursor: pointer; + border-radius: 5px; + transition: background-color 0.3s; + font-weight: 400; +} + +button:hover { + background-color: #bf9bae; +} diff --git a/src/app/not-found/not-found.component.html b/src/app/not-found/not-found.component.html new file mode 100644 index 0000000..f4cc621 --- /dev/null +++ b/src/app/not-found/not-found.component.html @@ -0,0 +1,8 @@ +
+
+
+

404

+

Oops! You got lost in space.

+ +
+
diff --git a/src/app/not-found/not-found.component.spec.ts b/src/app/not-found/not-found.component.spec.ts new file mode 100644 index 0000000..5b65d9e --- /dev/null +++ b/src/app/not-found/not-found.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NotFoundComponent } from './not-found.component'; + +describe('NotFoundComponent', () => { + let component: NotFoundComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [NotFoundComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(NotFoundComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/not-found/not-found.component.ts b/src/app/not-found/not-found.component.ts new file mode 100644 index 0000000..ef93281 --- /dev/null +++ b/src/app/not-found/not-found.component.ts @@ -0,0 +1,70 @@ +import {Component, OnInit, OnDestroy, AfterViewInit } from '@angular/core'; +import {Meta, Title} from '@angular/platform-browser'; + +@Component({ + selector: 'app-not-found', + imports: [], + templateUrl: './not-found.component.html', + styleUrl: './not-found.component.css', +}) + +export class NotFoundComponent implements OnInit, OnDestroy, AfterViewInit { + constructor(private titleService: Title, private meta: Meta) {} + private vantaEffect: any; + + ngOnInit() { + this.titleService.setTitle('404 Not Found'); + this.meta.updateTag({ name: 'description', content: 'How the hell did you end up here?' }); + this.meta.updateTag({ property: 'og:image', content: 'https://itzminey.dev/assets/ogimg.png' }); + + window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness + + const bgElement = document.getElementById('vanta-not-found-bg'); + if (bgElement) { + bgElement.style.position = 'fixed'; + } + } + + ngAfterViewInit() { + this.initVanta(); + this.resizeVanta(); + } + ngOnDestroy() { + 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() { + // Initialize the Vanta effect on the element with ID 'vanta-bg' + this.vantaEffect = window.VANTA.NET({ + el: '#vanta-not-found-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, + color: 0xac1f4e, + backgroundColor: 0x191522 + }); + } + + 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/portfolio/portfolio.component.css b/src/app/portfolio/portfolio.component.css new file mode 100644 index 0000000..08a703f --- /dev/null +++ b/src/app/portfolio/portfolio.component.css @@ -0,0 +1,120 @@ +#vanta-portfolio-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 */ +} + +.portfolio-container { + position: relative; + color: white; + padding: 120px 20px; + max-width: 960px; + margin: 0 auto; + font-family: 'Roboto', sans-serif; +} + +.portfolio-header { + text-align: center; +} + +.portfolio-header h1 { + font-size: 2.5rem; + background: transparent; + border: 4px solid white; + margin: 8px 330px 8px 330px; + padding: 10px; + border-radius: 45px; +} + +.portfolio-header .subtitle { + font-size: 1.2rem; + font-style: italic; + margin-bottom: 30px; +} + +.portfolio-gallery { + display: flex; + flex-wrap: wrap; + gap: 20px; + justify-content: center; + align-items: center; + margin-top: 30px; +} + +.gallery-item { + width: 250px; + text-align: center; + border-radius: 10px; + overflow: hidden; + background: rgba(255, 255, 255, 0.1); + padding: 10px; + transition: transform 0.3s ease-in-out; +} + +.gallery-item img { + width: 100%; + border-radius: 8px; + margin-bottom: 10px; +} + +.gallery-item:hover { + transform: scale(1.05); + background: rgba(255, 255, 255, 0.2); +} + +.gallery-item p { + font-size: 1rem; + font-weight: 400; +} + +.portfolio-footer { + text-align: center; + margin-top: 50px; +} + +.ko-fi-btn { + background-color: #FF5C8D; + color: white; + border: none; + padding: 12px 25px; + font-size: 1.2rem; + border-radius: 25px; + cursor: pointer; +} + +.ko-fi-btn:hover { + background-color: #FF3C75; +} + +.text-content p { + font-size: 1.2rem; + font-weight: 400; + margin-bottom: 10px; + text-align: center; +} + +.text-content a { + color: cornflowerblue; +} + +@media (max-width: 768px) { + .portfolio-container { + padding: 20px 10px; + } + + .portfolio-header h1 { + font-size: 2rem; + } + + .portfolio-gallery { + flex-direction: column; + } + + .gallery-item { + width: 100%; + } +} diff --git a/src/app/portfolio/portfolio.component.html b/src/app/portfolio/portfolio.component.html new file mode 100644 index 0000000..d9bb002 --- /dev/null +++ b/src/app/portfolio/portfolio.component.html @@ -0,0 +1,47 @@ +
+
+
+

My Portfolio

+

Projects & Designs

+
+
+

+ Welcome to my portfolio!

+ I mostly do modern graphic designs since a couple years now, + but I'm also getting better at coding and you might soon see a couple little coding projects from my GitHub listed here too!
+ If you like what I do consider following me on my socials and if you feel really generous leave a top on my Ko-Fi!
+ You can also commission me to make designs for you, just click on the button at the end of this page! +

+
+ + +
diff --git a/src/app/portfolio/portfolio.component.spec.ts b/src/app/portfolio/portfolio.component.spec.ts new file mode 100644 index 0000000..073ce35 --- /dev/null +++ b/src/app/portfolio/portfolio.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PortfolioComponent } from './portfolio.component'; + +describe('PortfolioComponent', () => { + let component: PortfolioComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [PortfolioComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(PortfolioComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/portfolio/portfolio.component.ts b/src/app/portfolio/portfolio.component.ts new file mode 100644 index 0000000..8e262df --- /dev/null +++ b/src/app/portfolio/portfolio.component.ts @@ -0,0 +1,68 @@ +import {AfterViewInit, Component, OnDestroy, OnInit} from '@angular/core'; +import {Meta, Title } from '@angular/platform-browser'; + +@Component({ + selector: 'app-portfolio', + imports: [], + templateUrl: './portfolio.component.html', + styleUrl: './portfolio.component.css' +}) +export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit { + constructor(private titleService: Title, private meta: Meta) {} + private vantaEffect: any; + + ngOnInit() { + this.titleService.setTitle('Portfolio | itzMiney'); + this.meta.updateTag({ name: 'description', content: 'This is my portfolio where you can find examples of my designs and other projects!' }); + this.meta.updateTag({ property: 'og:image', content: 'https://itzminey.dev/assets/ogimg.png' }); + window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness + + const bgElement = document.getElementById('vanta-portfolio-bg'); + if (bgElement) { + bgElement.style.position = 'fixed'; + } + } + + ngAfterViewInit() { + this.initVanta(); + this.resizeVanta(); + } + ngOnDestroy() { + 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() { + // Initialize the Vanta effect on the element with ID 'vanta-bg' + this.vantaEffect = window.VANTA.NET({ + el: '#vanta-portfolio-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, + color: 0xac1f4e, + backgroundColor: 0x191522 + }); + } + + 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/index.html b/src/index.html index bd83cf2..3a91921 100644 --- a/src/index.html +++ b/src/index.html @@ -1,13 +1,20 @@ + + - Itzmineydev - + + + + + + + - + diff --git a/src/styles.css b/src/styles.css index 90d4ee0..d863ea0 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1 +1,13 @@ /* You can add global styles to this file, and also import other style files */ + +html, body { + height: 100%; + margin: 0; + padding: 0; + background-color: #1e1e1e; +} + +body { + margin: 0; + font-family: Roboto, "Helvetica Neue", sans-serif; +} diff --git a/src/vanta.d.ts b/src/vanta.d.ts new file mode 100644 index 0000000..93a54fa --- /dev/null +++ b/src/vanta.d.ts @@ -0,0 +1,6 @@ +declare global { + interface Window { + VANTA: any; // This declares VANTA as a global object with an 'any' type + } +} +export {}; diff --git a/tsconfig.json b/tsconfig.json index 5525117..5985f6c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "moduleResolution": "bundler", "importHelpers": true, "target": "ES2022", - "module": "ES2022" + "module": "ES2022", }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false,