Style overhaul, added built in socials page
This commit is contained in:
1 parent
d9489d9d6b
commit
a0532d7300
16 files changed
+226
-30
No files matched your search
@@ -0,0 +1,104 @@
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
#vanta-socials-bg {
|
||||
animation: fadeIn 1s ease-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;
|
||||
width: 100vw;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.socials-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
max-width: 900px;
|
||||
margin-bottom: 80px;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.socials-header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.socials-header .subtitle {
|
||||
font-size: 1.2rem;
|
||||
font-style: italic;
|
||||
margin-bottom: 75px;
|
||||
}
|
||||
|
||||
.socials-header h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border: 4px solid white;
|
||||
margin: 8px auto 8px auto;
|
||||
max-width: 220px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button {
|
||||
font-size: 1.2rem;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
color: white;
|
||||
padding: 12px 20px;
|
||||
margin: 10px;
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
cursor: pointer;
|
||||
display:inline-flex;
|
||||
align-items:center;
|
||||
}
|
||||
|
||||
#username {
|
||||
font-size: 1.2rem;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
color: #cdcdcd;
|
||||
}
|
||||
|
||||
button.discord { background-color: #5865F2; }
|
||||
button.discord:hover { background-color: #818aec; }
|
||||
|
||||
button.youtube { background-color: #f25858; }
|
||||
button.youtube:hover { background-color: #ff7474; }
|
||||
|
||||
button.twitter { background-color: #58adf2; }
|
||||
button.twitter:hover { background-color: #8bcefd; }
|
||||
|
||||
button.twitch { background-color: #9146FF; }
|
||||
button.twitch:hover { background-color: #a76bff; }
|
||||
|
||||
button.steam { background-color: #1c1c1c; }
|
||||
button.steam:hover { background-color: #202020; }
|
||||
|
||||
button.osu { background-color: #ff66aa; transform: translateY( +3px);}
|
||||
button.osu:hover { background-color: #fd83b9; }
|
||||
|
||||
button.kofi { background-color: #fff; color: #ff5a78;}
|
||||
button.kofi:hover { background-color: #fff4f4; color: #ff5a78;}
|
||||
|
||||
button.kofi-comms { background-color: #fff; color: #39354a;}
|
||||
button.kofi-comms:hover { background-color: #fff4f4; color: #39354a;}
|
||||
@@ -0,0 +1,30 @@
|
||||
<div id="vanta-socials-bg"></div>
|
||||
<div class="height-container">
|
||||
<div class="socials-container">
|
||||
<div class="socials-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}">
|
||||
<h1>Socials</h1>
|
||||
<p class="subtitle">You can find me in a lotta places</p>
|
||||
</div>
|
||||
<div class="social-links">
|
||||
<a href="https://discord.gg/RstBa88" target="_blank"><button class="discord"><a class="fa-brands fa-discord"></a> Discord Server</button></a>
|
||||
<a id="username">@itzminey</a>
|
||||
<br><br>
|
||||
<h3>Social Media</h3>
|
||||
<a href="https://youtube.com/@itzMiney" target="_blank"><button class="youtube"><a class="fa-brands fa-youtube"></a> YouTube</button></a>
|
||||
<a href="https://twitter.com/@itzMiney" target="_blank"><button class="twitter"><a class="fa-brands fa-twitter"></a> Twitter</button></a>
|
||||
<a href="https://twitch.tv/itzminey"><button class="twitch"><a class="fa-brands fa-twitch"></a> Twitch</button></a>
|
||||
<br><br>
|
||||
<h3>Games</h3>
|
||||
<a href="https://steamcommunity.com/id/itzMiney/" target="_blank"><button class="steam"><a class="fa-brands fa-steam"></a> Steam</button></a>
|
||||
<a href="https://osu.ppy.sh/users/16470989" target="_blank"><button class="osu">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="20" height="20" viewBox="0 0 50 50">
|
||||
<path d="M 25 3 C 12.85 3 3 12.85 3 25 C 3 37.15 12.85 47 25 47 C 37.15 47 47 37.15 47 25 C 47 12.85 37.15 3 25 3 z M 38 18 L 40 18 L 40 26 L 38 26 L 38 18 z M 14.048828 20.898438 C 14.523828 20.898438 14.995078 20.968719 15.455078 21.136719 C 16.701078 21.591719 17.454875 22.528516 17.796875 23.853516 C 17.936875 24.396516 17.994047 24.950641 17.998047 25.556641 C 17.988047 26.368641 17.875859 27.204516 17.505859 27.978516 C 16.940859 29.161516 16.01125 29.820578 14.78125 30.017578 C 14.50125 30.063578 14.222359 30.087891 13.943359 30.087891 C 13.484359 30.087891 13.028078 30.022094 12.580078 29.871094 C 11.402078 29.474094 10.664438 28.608531 10.273438 27.394531 C 10.019438 26.604531 9.9594844 25.791844 10.021484 24.964844 C 10.082484 24.155844 10.271641 23.3835 10.681641 22.6875 C 11.270641 21.6865 12.138375 21.129891 13.234375 20.962891 C 13.506375 20.921891 13.777828 20.898437 14.048828 20.898438 z M 23.263672 20.90625 C 23.311672 20.90625 23.359203 20.90525 23.408203 20.90625 C 24.174203 20.92025 24.914719 21.08175 25.636719 21.34375 C 25.684719 21.36075 25.731656 21.369172 25.722656 21.451172 C 25.658656 22.018172 25.52025 22.562172 25.28125 23.076172 C 25.27625 23.086172 25.269531 23.095703 25.269531 23.095703 C 24.905531 22.985703 24.559125 22.862297 24.203125 22.779297 C 23.960125 22.723297 23.71475 22.689453 23.46875 22.689453 C 23.26175 22.689453 23.055609 22.712625 22.849609 22.765625 C 22.612609 22.827625 22.399594 22.935172 22.308594 23.201172 C 22.187594 23.553172 22.304859 23.909688 22.630859 24.054688 C 22.986859 24.213687 23.360562 24.325984 23.726562 24.458984 C 24.047563 24.575984 24.377453 24.674453 24.689453 24.814453 C 25.518453 25.186453 25.930234 25.872547 25.990234 26.810547 C 26.041234 27.598547 25.862562 28.307344 25.351562 28.902344 C 24.908562 29.416344 24.344703 29.716391 23.720703 29.900391 C 23.262703 30.035391 22.796125 30.082031 22.328125 30.082031 C 22.101125 30.082031 21.875438 30.071687 21.648438 30.054688 C 21.046437 30.010687 20.466391 29.857625 19.900391 29.640625 C 19.837391 29.616625 19.815266 29.587625 19.822266 29.515625 C 19.882266 28.935625 20.028906 28.381609 20.253906 27.849609 C 20.260906 27.831609 20.269203 27.815156 20.283203 27.785156 C 20.325203 27.801156 20.36625 27.814078 20.40625 27.830078 C 20.99625 28.065078 21.599516 28.220703 22.228516 28.220703 C 22.290516 28.220703 22.352062 28.218844 22.414062 28.214844 C 22.734063 28.198844 23.046984 28.147422 23.333984 27.982422 C 23.717984 27.761422 23.861719 27.434531 23.761719 27.019531 C 23.722719 26.859531 23.647813 26.721391 23.507812 26.650391 C 23.278813 26.534391 23.045687 26.421891 22.804688 26.337891 C 22.370687 26.184891 21.926188 26.06125 21.492188 25.90625 C 21.171187 25.79125 20.884047 25.604047 20.623047 25.373047 C 20.258047 25.050047 20.085391 24.624625 20.025391 24.140625 C 19.957391 23.593625 19.985219 23.054016 20.199219 22.541016 C 20.485219 21.854016 21.003391 21.434781 21.650391 21.175781 C 22.170391 20.966781 22.713672 20.90625 23.263672 20.90625 z M 29.070312 21.007812 C 29.437313 21.007812 29.805781 21.040375 30.175781 21.109375 L 30.175781 21.267578 C 30.176781 22.859578 30.170594 24.450969 30.183594 26.042969 C 30.186594 26.363969 30.236641 26.690906 30.306641 27.003906 C 30.447641 27.634906 30.835828 27.986312 31.423828 28.070312 C 31.580828 28.092312 31.738531 28.103516 31.894531 28.103516 C 32.159531 28.103516 32.422547 28.073578 32.685547 28.017578 C 32.780547 27.997578 32.810547 27.958609 32.810547 27.849609 C 32.807547 25.654609 32.808594 23.460625 32.808594 21.265625 L 32.808594 21.109375 C 33.173594 21.040375 33.534484 21.007812 33.896484 21.007812 C 34.261484 21.007812 34.627094 21.041375 34.996094 21.109375 L 34.996094 21.236328 C 34.996094 23.963328 34.995047 26.690969 34.998047 29.417969 C 34.998047 29.514969 34.972625 29.550125 34.890625 29.578125 C 33.934625 29.898125 32.962703 30.082031 31.970703 30.082031 C 31.778703 30.082031 31.586578 30.0765 31.392578 30.0625 C 30.877578 30.0245 30.361094 29.973344 29.871094 29.777344 C 28.944094 29.407344 28.421156 28.647578 28.160156 27.642578 C 28.006156 27.050578 27.96975 26.442078 27.96875 25.830078 C 27.96575 24.293078 27.96875 22.75575 27.96875 21.21875 C 27.96875 21.18475 27.970656 21.150375 27.972656 21.109375 C 28.339656 21.041375 28.705312 21.007812 29.070312 21.007812 z M 13.972656 22.787109 C 13.914656 22.787109 13.856828 22.789922 13.798828 22.794922 C 13.297828 22.833922 12.904734 23.075594 12.677734 23.558594 C 12.573734 23.780594 12.490547 24.019766 12.435547 24.259766 C 12.284547 24.920766 12.287609 25.592672 12.349609 26.263672 C 12.386609 26.669672 12.472437 27.064594 12.648438 27.433594 C 12.814438 27.780594 13.057109 28.039156 13.412109 28.160156 C 13.606109 28.226156 13.801094 28.259766 13.996094 28.259766 C 14.199094 28.259766 14.401516 28.223391 14.603516 28.150391 C 15.060516 27.985391 15.307891 27.61225 15.462891 27.15625 C 15.642891 26.62625 15.681453 26.073266 15.689453 25.447266 C 15.683Line truncated
|
||||
</svg> osu!</button>
|
||||
</a>
|
||||
<br><br>
|
||||
<h3>Donations & Commissions</h3>
|
||||
<a href="https://ko-fi.com/itzMiney" target="_blank"><button class="kofi"><a class="fa-solid fa-mug-hot"></a> Ko-Fi Donations</button></a>
|
||||
<a href="https://ko-fi.com/itzMiney/commissions" target="_blank"><button class="kofi-comms"><a class="fa-solid fa-mug-hot"></a> Ko-Fi Commissions</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,51 @@
|
||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||
import {isPlatformBrowser, NgOptimizedImage, NgStyle} from '@angular/common';
|
||||
import {VantaBackgroundService} from '../services/vanta-background.service';
|
||||
import {DeviceDetectorService} from '../services/device-detector.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-socials',
|
||||
imports: [
|
||||
NgStyle,
|
||||
NgOptimizedImage
|
||||
],
|
||||
templateUrl: './socials.component.html',
|
||||
styleUrl: './socials.component.css'
|
||||
})
|
||||
export class SocialsComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
private readonly elementId = 'vanta-socials-bg';
|
||||
isMobile: boolean = false;
|
||||
constructor(
|
||||
private vantaService: VantaBackgroundService,
|
||||
private deviceService: DeviceDetectorService,
|
||||
private titleService: Title,
|
||||
@Inject(PLATFORM_ID) private platformId: Object
|
||||
) {}
|
||||
|
||||
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