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-socials-bg {
|
||||
animation: fadeIn 1s ease-out;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: -100;
|
||||
}
|
||||
|
||||
.height-container {
|
||||
min-height: 100vh;
|
||||
align-content: center;
|
||||
@@ -47,11 +37,12 @@
|
||||
.socials-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: 220px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
<div id="vanta-socials-bg"></div>
|
||||
<app-parallax
|
||||
[baseColor]="'#1a1030'"
|
||||
[bgGradient]="
|
||||
'radial-gradient(circle 120vw at center, rgba(124, 78, 255, 0.25) 0%, rgba(124, 78, 255, 0) 45%),\n'+
|
||||
'radial-gradient(circle at top left, rgba(178, 120, 255, 0.15) 0%, rgba(178, 120, 255, 0) 35%),\n'+
|
||||
'radial-gradient(circle at bottom right, rgba(90, 40, 180, 0.35) 0%, rgba(90, 40, 180, 0) 40%),\n'+
|
||||
'linear-gradient(180deg, #2a1647 0%, #1a1030 100%)'
|
||||
">
|
||||
</app-parallax>
|
||||
<div class="height-container">
|
||||
<div class="socials-container">
|
||||
<div class="socials-header" [ngStyle]="{'margin-top': isMobile ? '80px' : '120px'}">
|
||||
|
||||
@@ -1,52 +1,29 @@
|
||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||
import {isPlatformBrowser, NgStyle} from '@angular/common';
|
||||
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {NgStyle} from '@angular/common';
|
||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-socials',
|
||||
imports: [
|
||||
NgStyle,
|
||||
TranslatePipe
|
||||
TranslatePipe,
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './socials.component.html',
|
||||
styleUrl: './socials.component.css'
|
||||
})
|
||||
export class SocialsComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
private readonly elementId = 'vanta-socials-bg';
|
||||
export class SocialsComponent implements OnInit {
|
||||
isMobile: boolean = false;
|
||||
constructor(
|
||||
private vantaService: VantaBackgroundService,
|
||||
private deviceService: DeviceDetectorService,
|
||||
private titleService: Title,
|
||||
@Inject(PLATFORM_ID) private platformId: Object
|
||||
private titleService: Title
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Socials | itzMiney');
|
||||
this.isMobile = this.deviceService.isMobile;
|
||||
if (isPlatformBrowser(this.platformId)) {
|
||||
window.addEventListener('resize', this.onResize.bind(this));
|
||||
}
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.vantaService.initVanta(this.elementId, {
|
||||
color: 0xc3b65c,
|
||||
backgroundColor: 0x23153c
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this.vantaService.destroyVanta(this.elementId);
|
||||
if (isPlatformBrowser(this.platformId)) {
|
||||
window.removeEventListener('resize', this.onResize);
|
||||
}
|
||||
}
|
||||
|
||||
onResize() {
|
||||
this.vantaService.resizeVanta(this.elementId);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user