complete visual overhaul
This commit is contained in:
1 parent
02bc2faca0
commit
25d06ec49a
51 files changed
+694
-664
No files matched your search
@@ -9,16 +9,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
#vanta-portfolio-bg {
|
||||
animation: fadeIn 1s ease-out;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: -100;
|
||||
}
|
||||
|
||||
.portfolio-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
@@ -40,11 +30,12 @@
|
||||
.portfolio-header h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border-bottom: 4px solid white;
|
||||
border-left: 6px solid white;
|
||||
border-right: 6px solid white;
|
||||
border-radius: 12px;
|
||||
margin: 8px auto 8px auto;
|
||||
max-width: 280px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.portfolio-header .subtitle {
|
||||
@@ -87,24 +78,26 @@
|
||||
color: white;
|
||||
}
|
||||
|
||||
.commission-button {
|
||||
.kofi-button {
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.ko-fi-btn {
|
||||
background-color: #FF5C8D;
|
||||
color: white;
|
||||
background-color: #fff;
|
||||
color: #ff5a78;
|
||||
border: none;
|
||||
padding: 12px 25px;
|
||||
font-size: 1.2rem;
|
||||
border-radius: 25px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.ko-fi-btn:hover {
|
||||
background-color: #FF3C75;
|
||||
background-color: #fff4f4;
|
||||
color: #ff5a78;
|
||||
}
|
||||
|
||||
.text-content p {
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
<div id="vanta-portfolio-bg"></div>
|
||||
<app-parallax
|
||||
[baseColor]="'#211c30'"
|
||||
[bgGradient]="
|
||||
'radial-gradient(circle 120vw at center, rgba(90,78,130,0.32), transparent 40%), ' +
|
||||
'linear-gradient(180deg,#1b172c 0%, #0b0b0f 100%);'
|
||||
">
|
||||
</app-parallax>
|
||||
<div class="height-container">
|
||||
<div class="portfolio-container">
|
||||
<div class="portfolio-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}">
|
||||
@@ -9,9 +15,9 @@
|
||||
<div class="text-content">
|
||||
<p [innerHTML]="'PORTFOLIO' | translate"></p>
|
||||
</div>
|
||||
<div class="commission-button">
|
||||
<a href="https://ko-fi.com/itzminey/commissions" target="_blank">
|
||||
<button class="ko-fi-btn">Commission me on Ko-Fi</button>
|
||||
<div class="kofi-button">
|
||||
<a href="https://ko-fi.com/itzminey" target="_blank">
|
||||
<button class="ko-fi-btn"><i class="fa-solid fa-mug-hot"></i> Ko-Fi Donations</button>
|
||||
</a>
|
||||
</div>
|
||||
<div class="portfolio-gallery" [@staggerGallery]>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||
import { CommonModule, isPlatformBrowser, NgStyle } from '@angular/common';
|
||||
import { CommonModule, NgStyle } from '@angular/common';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {AudioPlayerComponent} from '../shared/audio-player/audio-player.component';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
import {animate, stagger, style, transition, trigger, query} from '@angular/animations';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-portfolio',
|
||||
@@ -13,7 +13,8 @@ import {animate, stagger, style, transition, trigger, query} from '@angular/anim
|
||||
NgStyle,
|
||||
AudioPlayerComponent,
|
||||
TranslatePipe,
|
||||
CommonModule
|
||||
CommonModule,
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './portfolio.component.html',
|
||||
styleUrl: './portfolio.component.css',
|
||||
@@ -41,7 +42,7 @@ import {animate, stagger, style, transition, trigger, query} from '@angular/anim
|
||||
])
|
||||
]
|
||||
})
|
||||
export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
export class PortfolioComponent implements OnInit {
|
||||
galleryItems = [
|
||||
{ src: '/assets/design1.png', alt: 'Design 1', label: 'Abstract Background' },
|
||||
{ src: '/assets/design2.png', alt: 'Design 2', label: 'Profile Picture Design' },
|
||||
@@ -55,39 +56,15 @@ export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
];
|
||||
selectedItem: any = null;
|
||||
showModal = false;
|
||||
private readonly elementId = 'vanta-portfolio-bg';
|
||||
isMobile: boolean = false;
|
||||
constructor(
|
||||
private vantaService: VantaBackgroundService,
|
||||
private deviceService: DeviceDetectorService,
|
||||
private titleService: Title,
|
||||
@Inject(PLATFORM_ID) private platformId: Object
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Portfolio | itzMiney');
|
||||
this.isMobile = this.deviceService.isMobile;
|
||||
if (isPlatformBrowser(this.platformId)) {
|
||||
window.addEventListener('resize', this.onResize.bind(this));
|
||||
}
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.vantaService.initVanta(this.elementId, {
|
||||
color: 0x514f80,
|
||||
backgroundColor: 0x291c3c
|
||||
});
|
||||
}
|
||||
ngOnDestroy() {
|
||||
this.vantaService.destroyVanta(this.elementId);
|
||||
if (isPlatformBrowser(this.platformId)) {
|
||||
window.removeEventListener('resize', this.onResize);
|
||||
}
|
||||
}
|
||||
|
||||
onResize() {
|
||||
// Update the minHeight and minWidth when the window is resized
|
||||
this.vantaService.resizeVanta(this.elementId);
|
||||
}
|
||||
|
||||
openModal(item: any) {
|
||||
|
||||
Reference in new issue
Block a user