too many individual small fixes to bother counting them
This commit is contained in:
1 parent
acd1026d70
commit
d60053fb8d
30 files changed
+158
-1730
No files matched your search
@@ -1,15 +1 @@
|
||||
@if (!isNarrow) {
|
||||
@if (showNavbar) {
|
||||
<app-navbar ></app-navbar>
|
||||
}
|
||||
} @else {
|
||||
@if (showNavbar) {
|
||||
<app-mobile-navbar></app-mobile-navbar>
|
||||
}
|
||||
}
|
||||
|
||||
<router-outlet></router-outlet>
|
||||
|
||||
@if (showFooter) {
|
||||
<app-footer></app-footer>
|
||||
}
|
||||
@@ -1,56 +1,17 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
|
||||
import {ActivatedRoute, Router, RouterOutlet} from '@angular/router';
|
||||
import {NavbarComponent} from './shared/navbar/navbar.component';
|
||||
import {MobileNavbarComponent} from './shared/mobile-navbar/mobile-navbar.component';
|
||||
import {FooterComponent} from './shared/footer/footer.component';
|
||||
import {ViewportService} from './shared/services/viewport.service';
|
||||
import {Component} from '@angular/core';
|
||||
import { RouterOutlet} from '@angular/router';
|
||||
import {TranslateService} from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [RouterOutlet, NavbarComponent, FooterComponent, MobileNavbarComponent],
|
||||
imports: [RouterOutlet],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.css',
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
isNarrow: boolean = false;
|
||||
showNavbar: boolean = true;
|
||||
showFooter: boolean = true;
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
private activatedRoute: ActivatedRoute,
|
||||
private deviceService: ViewportService,
|
||||
private translate: TranslateService,
|
||||
) {
|
||||
export class AppComponent {
|
||||
constructor(private translate: TranslateService,) {
|
||||
this.translate.setDefaultLang('en');
|
||||
this.translate.use('en');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.router.events.subscribe(() => this.checkRoute())
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
}
|
||||
|
||||
checkRoute() {
|
||||
const currentRoute = this.activatedRoute.snapshot.firstChild?.routeConfig?.path;
|
||||
switch (currentRoute) {
|
||||
case 'admin': {
|
||||
this.showNavbar = false;
|
||||
this.showFooter = false;
|
||||
break;
|
||||
}
|
||||
case "login": {
|
||||
this.showNavbar = false;
|
||||
this.showFooter = false;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
this.showNavbar = true;
|
||||
this.showFooter = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
-20
@@ -1,4 +1,5 @@
|
||||
import {Routes} from '@angular/router';
|
||||
import {PublicLayoutComponent} from './shared/public-layout/public-layout.component';
|
||||
import {AboutComponent} from './about/about.component';
|
||||
import {PortfolioComponent} from './portfolio/portfolio.component';
|
||||
import {BlogComponent} from './blog/blog.component';
|
||||
@@ -7,28 +8,24 @@ import {LoginComponent} from './login/login.component';
|
||||
import {AdminComponent} from './admin/admin.component';
|
||||
import {ArticlePageComponent} from './blog/article-page/article-page.component';
|
||||
import {SocialsComponent} from './socials/socials.component';
|
||||
// import {ServicesComponent} from './services/services.component';
|
||||
// import {TosComponent} from './tos/tos.component';
|
||||
import {ImprintComponent} from './imprint/imprint.component';
|
||||
import {PrivacyComponent} from './privacy/privacy.component';
|
||||
import {adminGuard} from './admin.guard';
|
||||
// import {SuccessComponent} from './checkout/success/success.component';
|
||||
// import {CancelComponent} from './checkout/cancel/cancel.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', component: AboutComponent },
|
||||
{ path: 'about', redirectTo: '/', pathMatch: 'full' },
|
||||
{ path: 'portfolio', component: PortfolioComponent },
|
||||
{ path: 'blog', component: BlogComponent },
|
||||
{ path: 'login', component: LoginComponent },
|
||||
{ path: 'admin', component: AdminComponent, canActivate: [adminGuard] },
|
||||
{ path: 'socials', component: SocialsComponent },
|
||||
// { path: 'services', component: ServicesComponent },
|
||||
// { path: 'tos', component: TosComponent },
|
||||
{ path: 'privacy', component: PrivacyComponent },
|
||||
{ path: 'imprint', component: ImprintComponent },
|
||||
{ path: 'blog/:slug', component: ArticlePageComponent },
|
||||
// { path: 'checkout/success', pathMatch: 'full', component: SuccessComponent },
|
||||
// { path: 'checkout/cancel', pathMatch: 'full', component: CancelComponent },
|
||||
{ path: '**', pathMatch: 'full', component: NotFoundComponent }
|
||||
{
|
||||
path: '',
|
||||
component: PublicLayoutComponent,
|
||||
children: [
|
||||
{ path: '', component: AboutComponent },
|
||||
{ path: 'about', redirectTo: '/', pathMatch: 'full' },
|
||||
{ path: 'portfolio', component: PortfolioComponent },
|
||||
{ path: 'blog', component: BlogComponent },
|
||||
{ path: 'socials', component: SocialsComponent },
|
||||
{ path: 'privacy', component: PrivacyComponent },
|
||||
{ path: 'blog/:slug', component: ArticlePageComponent },
|
||||
]
|
||||
},
|
||||
{ path: 'login', component: LoginComponent},
|
||||
{ path: 'admin', component: AdminComponent, canActivate: [adminGuard]},
|
||||
{ path: '**', pathMatch: 'full', component: NotFoundComponent },
|
||||
];
|
||||
@@ -1,51 +0,0 @@
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.cancel-container {
|
||||
position: relative;
|
||||
color: black;
|
||||
padding-top: 50px;
|
||||
padding-bottom: 80px;
|
||||
max-width: 560px;
|
||||
margin: 160px auto 80px auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
border-radius: 35px;
|
||||
}
|
||||
|
||||
.height-container {
|
||||
min-height: 100vh;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.privacy-content {
|
||||
font-weight: 400;
|
||||
margin-bottom: 10px;
|
||||
font-family: Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
background-color: rgb(154, 89, 172);
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
margin-inline: 15px;
|
||||
margin-top: 10px;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.back-button:hover {
|
||||
background-color: rgb(187, 107, 209);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<app-parallax></app-parallax>
|
||||
<div class="height-container">
|
||||
<div class="cancel-container">
|
||||
<h1>{{ 'CANCEL' | translate }}</h1>
|
||||
<p>{{ 'CANCEL_SUB' | translate }}</p>
|
||||
<button class="back-button" (click)="goBack()">{{ 'SERVICES_BACK' | translate }}</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,29 +0,0 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {TranslatePipe} from "@ngx-translate/core";
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {Router} from '@angular/router';
|
||||
import {ParallaxComponent} from '../../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-cancel',
|
||||
imports: [
|
||||
TranslatePipe,
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './cancel.component.html',
|
||||
styleUrl: './cancel.component.css'
|
||||
})
|
||||
export class CancelComponent implements OnInit {
|
||||
constructor(
|
||||
private titleService: Title,
|
||||
private router: Router,
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Checkout | itzMiney');
|
||||
}
|
||||
|
||||
goBack(): void {
|
||||
this.router.navigate(['/services']);
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.success-container {
|
||||
position: relative;
|
||||
color: black;
|
||||
padding-top: 50px;
|
||||
padding-bottom: 80px;
|
||||
max-width: 560px;
|
||||
margin: 160px auto 80px auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
border-radius: 35px;
|
||||
}
|
||||
|
||||
.height-container {
|
||||
min-height: 100vh;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.privacy-content {
|
||||
font-weight: 400;
|
||||
margin-bottom: 10px;
|
||||
font-family: Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.back-button {
|
||||
background-color: rgb(154, 89, 172);
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
margin-inline: 15px;
|
||||
margin-top: 10px;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.back-button:hover {
|
||||
background-color: rgb(187, 107, 209);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<app-parallax></app-parallax>
|
||||
<div class="height-container">
|
||||
<div class="success-container">
|
||||
<h1>{{ 'SUCCESS' | translate }}</h1>
|
||||
<p>{{ 'SUCCESS_SUB' | translate }}</p>
|
||||
<button class="back-button" (click)="goBack()">{{ 'SERVICES_BACK' | translate }}</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,29 +0,0 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {Router} from '@angular/router';
|
||||
import {ParallaxComponent} from '../../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-success',
|
||||
imports: [
|
||||
TranslatePipe,
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './success.component.html',
|
||||
styleUrl: './success.component.css'
|
||||
})
|
||||
export class SuccessComponent implements OnInit {
|
||||
constructor(
|
||||
private titleService: Title,
|
||||
private router: Router,
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Checkout | itzMiney');
|
||||
}
|
||||
|
||||
goBack(): void {
|
||||
this.router.navigate(['/services']);
|
||||
}
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.imprint-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
padding-bottom: 60px;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
.height-container {
|
||||
min-height: 100vh;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.text-content {
|
||||
font-weight: 400;
|
||||
margin-bottom: 10px;
|
||||
font-family: Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.text-content ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.text-content li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.text-content a {
|
||||
color: cornflowerblue;
|
||||
}
|
||||
|
||||
.text-content button {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.text-content span {
|
||||
margin-right: 10px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.text-content span:hover {
|
||||
color: cornflowerblue;
|
||||
}
|
||||
|
||||
.text-content span:active {
|
||||
color: mediumpurple;
|
||||
}
|
||||
|
||||
.copy-status {
|
||||
color: #7fd67f;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-left: 13px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.imprint-container {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.imprint-header h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
<app-parallax
|
||||
[baseColor]="'#101522'"
|
||||
[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="imprint-container">
|
||||
<div class="text-content">
|
||||
<h1>{{ 'IMP_TITLE' | translate }}</h1>
|
||||
<p>{{ 'IMPRINT' | translate }}</p>
|
||||
<ul>
|
||||
<!-- <li>
|
||||
<div class="flex">
|
||||
<i class="fa-solid fa-location-dot"></i>
|
||||
<p>Poxham 23<br>4081 Hartkirchen</p>
|
||||
</div>
|
||||
</li> -->
|
||||
<li>
|
||||
<span (click)="copyToClipboard('michael@itzminey.dev')"><i class="fa-solid fa-envelope"></i></span>
|
||||
<a href="mailto:michael@itzminey.dev">michael@itzminey.dev</a>
|
||||
@if (copiedSection === 'email') {
|
||||
<span class="copy-status">Copied!</span>
|
||||
}
|
||||
</li>
|
||||
<!-- <li>
|
||||
<span (click)="copyToClipboard('+436604349465')"><i class="fa-solid fa-phone"></i></span>
|
||||
<a href="tel:+436604349465">+43 660 4349465</a>
|
||||
<span *ngIf="copiedSection === 'phone'" class="copy-status">Copied!</span>
|
||||
</li> -->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,41 +0,0 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-services',
|
||||
imports: [
|
||||
TranslatePipe,
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './imprint.component.html',
|
||||
styleUrl: './imprint.component.css'
|
||||
})
|
||||
|
||||
export class ImprintComponent implements OnInit {
|
||||
copiedSection: string | null = null;
|
||||
|
||||
constructor(
|
||||
private titleService: Title
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Imprint | itzMiney');
|
||||
}
|
||||
|
||||
copyToClipboard(text: string): void {
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
if (text.includes('@')) {
|
||||
this.copiedSection = 'email';
|
||||
} else if (text.includes('+')) {
|
||||
this.copiedSection = 'phone';
|
||||
}
|
||||
|
||||
// Reset the copied section after 2 seconds
|
||||
setTimeout(() => {
|
||||
this.copiedSection = null;
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,7 @@ div.indent {
|
||||
background: transparent;
|
||||
padding: 25px;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.floating-nav ul {
|
||||
@@ -142,3 +142,7 @@ div.indent {
|
||||
.copy-status {
|
||||
color: #7fd67f;
|
||||
}
|
||||
|
||||
section {
|
||||
scroll-margin-top: 80px;
|
||||
}
|
||||
@@ -95,19 +95,4 @@ export class PrivacyComponent implements OnInit, AfterViewInit {
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
copyToClipboard(text: string): void {
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
if (text.includes('@')) {
|
||||
this.copiedSection = 'email';
|
||||
} else if (text.includes('+')) {
|
||||
this.copiedSection = 'phone';
|
||||
}
|
||||
|
||||
// Reset the copied section after 2 seconds
|
||||
setTimeout(() => {
|
||||
this.copiedSection = null;
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,246 +0,0 @@
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.services-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
padding-bottom: 60px;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
.height-container {
|
||||
min-height: 100vh;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.services-header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.services-header h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border-left: 6px solid white;
|
||||
border-right: 6px solid white;
|
||||
border-radius: 12px;
|
||||
margin: 8px auto 8px auto;
|
||||
max-width: 280px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.services-header .subtitle {
|
||||
font-size: 1.2rem;
|
||||
font-style: italic;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.service-cards {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
margin-top: 30px;
|
||||
font-family: "Roboto", sans-serif;
|
||||
}
|
||||
|
||||
.service-item {
|
||||
width: 450px;
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.service-item:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.service-item span {
|
||||
font-size: 1.0rem;
|
||||
font-weight: 400;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.service-card {
|
||||
background: linear-gradient(135deg, #321950, #6D4493);
|
||||
border-radius: 35px;
|
||||
border: none;
|
||||
padding: 25px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
height: 525px;
|
||||
overflow: hidden;
|
||||
scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
|
||||
scrollbar-gutter: unset;
|
||||
}
|
||||
|
||||
.tab-toggle {
|
||||
position: relative;
|
||||
display: flex;
|
||||
background: rgba(74, 69, 96, 0.8);
|
||||
border-radius: 50px;
|
||||
overflow: hidden;
|
||||
padding: 5px;
|
||||
width: 220px;
|
||||
height: 35px;
|
||||
margin: 15px auto;
|
||||
}
|
||||
|
||||
.tab-slider {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
height: calc(100% - 10px);
|
||||
width: calc(50% - 5px);
|
||||
background: rgba(187, 107, 209, 0.5);
|
||||
border-radius: 50px;
|
||||
transition: all 0.3s ease;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tab-slider:hover {
|
||||
background: rgb(86, 80, 112);
|
||||
}
|
||||
|
||||
.tab-slider.right {
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.tab-option {
|
||||
flex: 1;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 1rem;
|
||||
padding: 10px 0;
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
transition: color 0.3s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tab-option.active {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.tab-option:not(.active) {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
.tab-option:disabled {
|
||||
color : #2e2940;
|
||||
text-decoration: line-through;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.buy-button {
|
||||
background-color: rgba(187, 107, 209, 0.5);
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
margin-inline: 15px;
|
||||
margin-top: 20px;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
min-width: 100px;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.buy-button:hover {
|
||||
background-color: rgba(187, 107, 209, 0.62);
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
font-size: 0.9rem;
|
||||
white-space: pre-line;
|
||||
text-wrap: pretty;
|
||||
text-align: left;
|
||||
overflow-y: scroll;
|
||||
height: 340px;
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
border-radius: 15px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
:host ::ng-deep .centered-text {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.contact-button {
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.contact-btn {
|
||||
background-color: #d13e6d;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 12px 25px;
|
||||
font-size: 1.2rem;
|
||||
border-radius: 25px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.contact-btn:hover {
|
||||
background-color: #FF3C75;
|
||||
}
|
||||
|
||||
.text-content p {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 400;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
::ng-deep .text-content a {
|
||||
color: cornflowerblue;
|
||||
}
|
||||
|
||||
hr.rounded {
|
||||
border: 2px solid white;
|
||||
width: 40px;
|
||||
max-width: 40px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.services-container {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.services-header h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.service-cards {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.service-item {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
<app-parallax
|
||||
[baseColor]="'#1a1030'"
|
||||
[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="services-container">
|
||||
<div class="services-header" [ngStyle]="{'margin-top': isNarrow ? '60px' : '120px'}">
|
||||
<h1>{{ 'SERVS_TITLE' | translate}}</h1>
|
||||
<p class="subtitle">Web Development & Design</p>
|
||||
</div>
|
||||
<hr class="rounded">
|
||||
<div class="text-content">
|
||||
<p [innerHTML]="'SERVS' | translate"></p>
|
||||
</div>
|
||||
<div class="contact-button">
|
||||
<a href="mailto:michael@itzminey.dev" target="_blank">
|
||||
<button class="contact-btn">{{ 'SERVS_CONTACT' | translate}}</button>
|
||||
</a>
|
||||
</div>
|
||||
<div class="service-cards">
|
||||
<div class="service-item" *ngFor="let service of services; let i = index">
|
||||
<div class="service-card">
|
||||
<span [innerHTML]="service.name"></span>
|
||||
<div class="tab-toggle">
|
||||
<div
|
||||
class="tab-slider"
|
||||
[class.right]="activeTab[i] === 'advanced'">
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="tab-option"
|
||||
[class.active]="activeTab[i] === 'basic'"
|
||||
(click)="switchTab(i, 'basic')">
|
||||
{{ 'BASIC' | translate }}
|
||||
</button>
|
||||
|
||||
<button
|
||||
class="tab-option"
|
||||
[class.active]="activeTab[i] === 'advanced'"
|
||||
[class.disabled]="!service.advanced || service.advanced.trim() === ''"
|
||||
[disabled]="!service.advanced || service.advanced.trim() === ''"
|
||||
(click)="switchTab(i, 'advanced')">
|
||||
{{ 'ADVANCED' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="tab-content" [innerHTML]="activeTab[i] === 'basic' ? service.basic : service.advanced"></div>
|
||||
<a
|
||||
class="buy-button"
|
||||
*ngIf="getActivePriceId(service, activeTab[i]); else contactButton"
|
||||
(click)="checkout(getActivePriceId(service, activeTab[i])!)">
|
||||
{{ 'BUY' | translate }}
|
||||
</a>
|
||||
|
||||
<ng-template #contactButton>
|
||||
<a
|
||||
class="buy-button"
|
||||
[href]="'mailto:michael@itzminey.dev?subject=Inquiry about ' + service.name">
|
||||
{{ 'SERVS_CONTACT' | translate }}
|
||||
</a>
|
||||
</ng-template>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,160 +0,0 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {NgIf, NgFor, NgStyle} from '@angular/common';
|
||||
import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-services',
|
||||
imports: [
|
||||
NgStyle,
|
||||
NgIf,
|
||||
NgFor,
|
||||
TranslatePipe,
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './services.component.html',
|
||||
styleUrl: './services.component.css'
|
||||
})
|
||||
|
||||
export class ServicesComponent implements OnInit {
|
||||
private apiUrl = '/api/stripe/create-checkout-session';
|
||||
isNarrow: boolean = false;
|
||||
activeTab: string[] = [];
|
||||
|
||||
services: {
|
||||
name: string;
|
||||
basic: string;
|
||||
advanced: string;
|
||||
basicPriceId: string;
|
||||
advancedPriceId: string;
|
||||
}[] = [];
|
||||
|
||||
constructor(
|
||||
private deviceService: ViewportService,
|
||||
private titleService: Title,
|
||||
private translate: TranslateService,
|
||||
private http: HttpClient
|
||||
) {}
|
||||
|
||||
switchTab(serviceIndex: number, tab: string): void {
|
||||
this.activeTab[serviceIndex] = tab;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Services | itzMiney');
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
this.loadServices();
|
||||
this.translate.onLangChange.subscribe(() => this.loadServices());
|
||||
}
|
||||
|
||||
loadServices(): void {
|
||||
this.translate.get([
|
||||
'SERVICES.PTERO_NAME',
|
||||
'SERVICES.PTERO_BASIC',
|
||||
'SERVICES.PTERO_ADVANCED',
|
||||
'SERVICES.SYSADMIN_NAME',
|
||||
'SERVICES.SYSADMIN_BASIC',
|
||||
'SERVICES.SYSADMIN_ADVANCED',
|
||||
'SERVICES.SUPPORT_NAME',
|
||||
'SERVICES.SUPPORT_BASIC',
|
||||
'SERVICES.SUPPORT_ADVANCED',
|
||||
'SERVICES.WP_FILES_NAME',
|
||||
'SERVICES.WP_FILES_BASIC',
|
||||
'SERVICES.WP_FILES_ADVANCED',
|
||||
'SERVICES.WP_SETUP_NAME',
|
||||
'SERVICES.WP_SETUP_BASIC',
|
||||
'SERVICES.WP_SETUP_ADVANCED',
|
||||
'SERVICES.ANGULAR_FILES_NAME',
|
||||
'SERVICES.ANGULAR_FILES_BASIC',
|
||||
'SERVICES.ANGULAR_FILES_ADVANCED',
|
||||
'SERVICES.ANGULAR_SETUP_NAME',
|
||||
'SERVICES.ANGULAR_SETUP_BASIC',
|
||||
'SERVICES.ANGULAR_SETUP_ADVANCED',
|
||||
'SERVICES.SERVER_SETUP_NAME',
|
||||
'SERVICES.SERVER_SETUP_BASIC',
|
||||
'SERVICES.SERVER_SETUP_ADVANCED'
|
||||
]).subscribe(translations => {
|
||||
this.services = [
|
||||
{
|
||||
name: translations['SERVICES.PTERO_NAME'],
|
||||
basic: translations['SERVICES.PTERO_BASIC'],
|
||||
advanced: translations['SERVICES.PTERO_ADVANCED'],
|
||||
basicPriceId: 'price_1RtaOO2LT0gYeSqc4ns1BgPW',
|
||||
advancedPriceId: 'price_1RtaQF2LT0gYeSqcxxzlazIV'
|
||||
},
|
||||
{
|
||||
name: translations['SERVICES.SYSADMIN_NAME'],
|
||||
basic: translations['SERVICES.SYSADMIN_BASIC'],
|
||||
advanced: "",
|
||||
basicPriceId: 'price_1Rtapt2LT0gYeSqcvZLmcj7S',
|
||||
advancedPriceId: ''
|
||||
},
|
||||
{
|
||||
name: translations['SERVICES.SUPPORT_NAME'],
|
||||
basic: translations['SERVICES.SUPPORT_BASIC'],
|
||||
advanced: "",
|
||||
basicPriceId: '',
|
||||
advancedPriceId: ''
|
||||
},
|
||||
{
|
||||
name: translations['SERVICES.WP_FILES_NAME'],
|
||||
basic: translations['SERVICES.WP_FILES_BASIC'],
|
||||
advanced: translations['SERVICES.WP_FILES_ADVANCED'],
|
||||
basicPriceId: 'price_1RtaMn2LT0gYeSqcibmWe3c6',
|
||||
advancedPriceId: 'price_1RhuVf2LT0gYeSqcAbTNIM4F'
|
||||
},
|
||||
{
|
||||
name: translations['SERVICES.WP_SETUP_NAME'],
|
||||
basic: translations['SERVICES.WP_SETUP_BASIC'],
|
||||
advanced: translations['SERVICES.WP_SETUP_ADVANCED'],
|
||||
basicPriceId: 'price_1RtbTA2LT0gYeSqcH6u8krsj',
|
||||
advancedPriceId: 'price_1RtbTA2LT0gYeSqcpHffXghH'
|
||||
},
|
||||
{
|
||||
name: translations['SERVICES.ANGULAR_FILES_NAME'],
|
||||
basic: translations['SERVICES.ANGULAR_FILES_BASIC'],
|
||||
advanced: translations['SERVICES.ANGULAR_FILES_ADVANCED'],
|
||||
basicPriceId: 'price_1RtbAi2LT0gYeSqcutD8Zc9W',
|
||||
advancedPriceId: 'price_1RtbAi2LT0gYeSqcuLJXNSjZ'
|
||||
},
|
||||
{
|
||||
name: translations['SERVICES.ANGULAR_SETUP_NAME'],
|
||||
basic: translations['SERVICES.ANGULAR_SETUP_BASIC'],
|
||||
advanced: translations['SERVICES.ANGULAR_SETUP_ADVANCED'],
|
||||
basicPriceId: 'price_1RtbR32LT0gYeSqcWxYCVjoO',
|
||||
advancedPriceId: 'price_1RtbR32LT0gYeSqcIAWEqy5I'
|
||||
},
|
||||
{
|
||||
name: translations['SERVICES.SERVER_SETUP_NAME'],
|
||||
basic: translations['SERVICES.SERVER_SETUP_BASIC'],
|
||||
advanced: translations['SERVICES.SERVER_SETUP_ADVANCED'],
|
||||
basicPriceId: '',
|
||||
advancedPriceId: ''
|
||||
}
|
||||
];
|
||||
|
||||
this.activeTab = this.services.map(() => 'basic');
|
||||
});
|
||||
}
|
||||
|
||||
checkout(priceId: string): void {
|
||||
this.http.post<any>(this.apiUrl, { priceId }).subscribe({
|
||||
next: (response) => {
|
||||
if (response.url) {
|
||||
window.location.href = response.url;
|
||||
} else {
|
||||
alert('Checkout session failed.');
|
||||
}
|
||||
},
|
||||
error: () => alert('Checkout session failed.')
|
||||
});
|
||||
}
|
||||
|
||||
getActivePriceId(service: any, activeTab: string): string | null {
|
||||
const priceId = activeTab === 'basic' ? service.basicPriceId : service.advancedPriceId;
|
||||
return priceId?.trim() || null;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<footer>
|
||||
<p>© {{ currentYear }} Michael Reisinger</p>
|
||||
<p><!-- <a href="/tos">{{ 'FOOTER_TOS' | translate }}</a> • --><a href="/imprint">{{ 'FOOTER_IMP' | translate }}</a> • <a href="/privacy">{{ 'FOOTER_PRIV' | translate }}</a></p>
|
||||
<p><a href="/privacy">{{ 'FOOTER_LINK' | translate }}</a></p>
|
||||
|
||||
<div class="social-icons">
|
||||
<a href="https://linktr.ee/itzminey" target="_blank" aria-label="Twitter">
|
||||
|
||||
Whitespace-only changes.
@@ -0,0 +1,9 @@
|
||||
@if (!isNarrow) {
|
||||
<app-navbar></app-navbar>
|
||||
} @else {
|
||||
<app-mobile-navbar></app-mobile-navbar>
|
||||
}
|
||||
|
||||
<router-outlet></router-outlet>
|
||||
|
||||
<app-footer></app-footer>
|
||||
@@ -0,0 +1,22 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { NavbarComponent } from '../navbar/navbar.component';
|
||||
import { MobileNavbarComponent } from '../mobile-navbar/mobile-navbar.component';
|
||||
import { FooterComponent } from '../footer/footer.component';
|
||||
import { ViewportService } from '../services/viewport.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-public-layout',
|
||||
imports: [RouterOutlet, NavbarComponent, MobileNavbarComponent, FooterComponent],
|
||||
templateUrl: './public-layout.component.html',
|
||||
styleUrl: './public-layout.component.css',
|
||||
})
|
||||
export class PublicLayoutComponent implements OnInit {
|
||||
isNarrow = false;
|
||||
|
||||
constructor(private deviceService: ViewportService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
}
|
||||
}
|
||||
@@ -46,10 +46,11 @@
|
||||
}
|
||||
|
||||
.social-links {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button {
|
||||
.btn {
|
||||
font-size: 1.2rem;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
color: white;
|
||||
@@ -60,6 +61,16 @@ button {
|
||||
cursor: pointer;
|
||||
display:inline-flex;
|
||||
align-items:center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn.disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 30px 0 10px 0;
|
||||
}
|
||||
|
||||
#username {
|
||||
@@ -75,26 +86,26 @@ hr.rounded {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
button.discord { background-color: #5865F2; }
|
||||
button.discord:hover { background-color: #818aec; }
|
||||
.discord { background-color: #5865F2; }
|
||||
.discord:hover { background-color: #818aec; }
|
||||
|
||||
button.youtube { background-color: #f25858; }
|
||||
button.youtube:hover { background-color: #ff7474; }
|
||||
.youtube { background-color: #f25858; }
|
||||
.youtube:hover { background-color: #ff7474; }
|
||||
|
||||
button.twitter { background-color: #58adf2; }
|
||||
button.twitter:hover { background-color: #8bcefd; }
|
||||
.twitter { background-color: #58adf2; }
|
||||
.twitter:hover { background-color: #8bcefd; }
|
||||
|
||||
button.twitch { background-color: #9146FF; }
|
||||
button.twitch:hover { background-color: #a76bff; }
|
||||
.twitch { background-color: #9146FF; }
|
||||
.twitch:hover { background-color: #a76bff; }
|
||||
|
||||
button.steam { background-color: #1c1c1c; }
|
||||
button.steam:hover { background-color: #202020; }
|
||||
.steam { background-color: #1c1c1c; }
|
||||
.steam:hover { background-color: #202020; }
|
||||
|
||||
button.osu { background-color: #ff66aa; transform: translateY( +3px);}
|
||||
button.osu:hover { background-color: #fd83b9; }
|
||||
.osu { background-color: #ff66aa; transform: translateY( +3px);}
|
||||
.osu:hover { background-color: #fd83b9; }
|
||||
|
||||
button.kofi { background-color: #fff; color: #ff5a78;}
|
||||
button.kofi:hover { background-color: #fff4f4; color: #ff5a78;}
|
||||
.kofi { background-color: #fff; color: #ff5a78;}
|
||||
.kofi:hover { background-color: #fff4f4; color: #ff5a78;}
|
||||
|
||||
button.kofi-comms { background-color: #fff; color: #39354a;}
|
||||
button.kofi-comms:hover { background-color: #fff4f4; color: #39354a;}
|
||||
.kofi-comms { background-color: #fff; color: #39354a;}
|
||||
.kofi-comms:hover { background-color: #fff4f4; color: #39354a;}
|
||||
@@ -15,25 +15,47 @@
|
||||
</div>
|
||||
<hr class="rounded">
|
||||
<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>
|
||||
<a href="https://discord.gg/RstBa88" target="_blank" class="btn discord">
|
||||
<i class="fa-brands fa-discord"></i> Discord Server
|
||||
</a>
|
||||
<span id="username">@itzminey</span>
|
||||
|
||||
<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>
|
||||
<a href="https://youtube.com/@itzMiney" target="_blank" class="btn youtube">
|
||||
<i class="fa-brands fa-youtube"></i> YouTube
|
||||
</a>
|
||||
<a href="https://twitter.com/@itzMiney" target="_blank" class="btn twitter">
|
||||
<i class="fa-brands fa-twitter"></i> Twitter
|
||||
</a>
|
||||
<a href="https://twitch.tv/itzminey" class="btn twitch">
|
||||
<i class="fa-brands fa-twitch"></i> Twitch
|
||||
</a>
|
||||
|
||||
<h3>{{ 'SOCIALS_GAMES' | translate }}</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">
|
||||
<a href="https://steamcommunity.com/id/itzMiney/" target="_blank" class="btn steam">
|
||||
<i class="fa-brands fa-steam"></i> Steam
|
||||
</a>
|
||||
<a href="https://osu.ppy.sh/users/16470989" target="_blank" class="btn 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>
|
||||
</svg> osu!
|
||||
</a>
|
||||
<br><br>
|
||||
<h3>{{ 'SOCIALS_COMMS' | translate }}</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> --->
|
||||
<a href="https://ko-fi.com/itzMiney" target="_blank" class="btn kofi">
|
||||
<i class="fa-solid fa-mug-hot"></i> Ko-Fi Donations
|
||||
</a>
|
||||
<a
|
||||
[href]="commissionsOpen ? 'https://ko-fi.com/itzMiney/commissions' : null"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="btn kofi-comms"
|
||||
[class.disabled]="!commissionsOpen"
|
||||
(click)="!commissionsOpen && $event.preventDefault()"
|
||||
[attr.title]="!commissionsOpen ? 'Commissions currently closed' : null"
|
||||
>
|
||||
<i class="fa-solid fa-mug-hot"></i>
|
||||
 Ko-Fi Commissions
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -17,6 +17,8 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
})
|
||||
export class SocialsComponent implements OnInit {
|
||||
isNarrow: boolean = false;
|
||||
commissionsOpen = false;
|
||||
|
||||
constructor(
|
||||
private deviceService: ViewportService,
|
||||
private titleService: Title
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.tos-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
padding-bottom: 60px;
|
||||
max-width: 960px;
|
||||
margin: 160px auto 80px auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
.height-container {
|
||||
min-height: 100vh;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.tos-content {
|
||||
font-weight: 400;
|
||||
margin-bottom: 10px;
|
||||
font-family: Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.contact-details {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.text-content li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.text-content a {
|
||||
color: cornflowerblue;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.tos-container {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.tos-header h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.floating-nav.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.floating-nav {
|
||||
position: fixed;
|
||||
top: 20%;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
background: transparent;
|
||||
padding: 25px;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.floating-nav ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.floating-nav li {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.floating-nav a {
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.floating-nav a:hover {
|
||||
color: #e3485a;
|
||||
}
|
||||
|
||||
.floating-nav a.active {
|
||||
color: #846cd1;
|
||||
}
|
||||
|
||||
.clickable-title {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.clickable-title:hover {
|
||||
color: #ddd3ff;
|
||||
}
|
||||
|
||||
.clickable-title:active {
|
||||
color: #9179e8;
|
||||
}
|
||||
|
||||
.clickable-title .link-icon {
|
||||
font-size: 16px;
|
||||
margin-left: 8px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.clickable-title:hover .link-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.copied-text {
|
||||
font-size: 16px;
|
||||
font-family: Roboto, sans-serif;
|
||||
font-weight: 500;
|
||||
color: #7fd67f;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.contact-details span {
|
||||
margin-right: 10px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.contact-details span:hover {
|
||||
color: cornflowerblue;
|
||||
}
|
||||
|
||||
.contact-details span:active {
|
||||
color: mediumpurple;
|
||||
}
|
||||
|
||||
.copy-status {
|
||||
color: #7fd67f;
|
||||
}
|
||||
@@ -1,223 +0,0 @@
|
||||
<app-parallax
|
||||
[baseColor]="'#1a1030'"
|
||||
[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="tos-container">
|
||||
<div class="floating-nav" [class.hidden]="isNarrow">
|
||||
<ul>
|
||||
<li><a href="#introduction" [class.active]="activeSection === 'introduction'" (click)="scrollToSection($event, 'introduction')">{{ 'termsOfService.sections.introduction.title' | translate }}</a></li>
|
||||
<li><a href="#services-provided" [class.active]="activeSection === 'services-provided'" (click)="scrollToSection($event, 'services-provided')">{{ 'termsOfService.sections.servicesProvided.title' | translate }}</a></li>
|
||||
<li><a href="#project-scope-and-deliverables" [class.active]="activeSection === 'project-scope-and-deliverables'" (click)="scrollToSection($event, 'project-scope-and-deliverables')">{{ 'termsOfService.sections.projectScopeAndDeliverables.title' | translate }}</a></li>
|
||||
<li><a href="#payment-terms" [class.active]="activeSection === 'payment-terms'" (click)="scrollToSection($event, 'payment-terms')">{{ 'termsOfService.sections.paymentTerms.title' | translate }}</a></li>
|
||||
<li><a href="#timeline-and-deadlines" [class.active]="activeSection === 'timeline-and-deadlines'" (click)="scrollToSection($event, 'timeline-and-deadlines')">{{ 'termsOfService.sections.timelineAndDeadlines.title' | translate }}</a></li>
|
||||
<li><a href="#client-responsibilities" [class.active]="activeSection === 'client-responsibilities'" (click)="scrollToSection($event, 'client-responsibilities')">{{ 'termsOfService.sections.clientResponsibilities.title' | translate }}</a></li>
|
||||
<li><a href="#revisions" [class.active]="activeSection === 'revisions'" (click)="scrollToSection($event, 'revisions')">{{ 'termsOfService.sections.revisions.title' | translate }}</a></li>
|
||||
<li><a href="#ownership-and-rights" [class.active]="activeSection === 'ownership-and-rights'" (click)="scrollToSection($event, 'ownership-and-rights')">{{ 'termsOfService.sections.ownershipAndRights.title' | translate }}</a></li>
|
||||
<li><a href="#confidentiality" [class.active]="activeSection === 'confidentiality'" (click)="scrollToSection($event, 'confidentiality')">{{ 'termsOfService.sections.confidentiality.title' | translate }}</a></li>
|
||||
<li><a href="#cancellations-and-refunds" [class.active]="activeSection === 'cancellations-and-refunds'" (click)="scrollToSection($event, 'cancellations-and-refunds')">{{ 'termsOfService.sections.cancellationsAndRefunds.title' | translate }}</a></li>
|
||||
<li><a href="#limitation-of-liability" [class.active]="activeSection === 'limitation-of-liability'" (click)="scrollToSection($event, 'limitation-of-liability')">{{ 'termsOfService.sections.limitationOfLiability.title' | translate }}</a></li>
|
||||
<li><a href="#dispute-resolution" [class.active]="activeSection === 'dispute-resolution'" (click)="scrollToSection($event, 'dispute-resolution')">{{ 'termsOfService.sections.disputeResolution.title' | translate }}</a></li>
|
||||
<li><a href="#force-majeure" [class.active]="activeSection === 'force-majeure'" (click)="scrollToSection($event, 'force-majeure')">{{ 'termsOfService.sections.forceMajeure.title' | translate }}</a></li>
|
||||
<li><a href="#governing-law" [class.active]="activeSection === 'governing-law'" (click)="scrollToSection($event, 'governing-law')">{{ 'termsOfService.sections.governingLaw.title' | translate }}</a></li>
|
||||
<li><a href="#modifications" [class.active]="activeSection === 'modifications'" (click)="scrollToSection($event, 'modifications')">{{ 'termsOfService.sections.modifications.title' | translate }}</a></li>
|
||||
<li><a href="#contact" [class.active]="activeSection === 'contact'" (click)="scrollToSection($event, 'contact')">{{ 'termsOfService.sections.contact.title' | translate }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="text-content">
|
||||
<section id="introduction">
|
||||
<h1>{{ 'termsOfService.title' | translate}}</h1>
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('introduction')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.introduction.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'introduction'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'introduction'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.introduction.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="services-provided">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('services-provided')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.servicesProvided.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'services-provided'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'services-provided'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.servicesProvided.intro' | translate }}</p>
|
||||
<ul>
|
||||
<li>{{ 'termsOfService.sections.servicesProvided.list.0' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.servicesProvided.list.1' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.servicesProvided.list.2' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.servicesProvided.list.3' | translate }}</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="project-scope-and-deliverables">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('project-scope-and-deliverables')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.projectScopeAndDeliverables.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'project-scope-and-deliverables'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'project-scope-and-deliverables'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.projectScopeAndDeliverables.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="payment-terms">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('payment-terms')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.paymentTerms.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'payment-terms'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'payment-terms'">Copied!</span>
|
||||
</h2>
|
||||
<ul>
|
||||
<li>{{ 'termsOfService.sections.paymentTerms.list.0' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.paymentTerms.list.1' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.paymentTerms.list.2' | translate }}</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="timeline-and-deadlines">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('timeline-and-deadlines')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.timelineAndDeadlines.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'timeline-and-deadlines'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'timeline-and-deadlines'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.timelineAndDeadlines.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="client-responsibilities">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('client-responsibilities')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.clientResponsibilities.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'client-responsibilities'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'client-responsibilities'">Copied!</span>
|
||||
</h2>
|
||||
<ul>
|
||||
<li>{{ 'termsOfService.sections.clientResponsibilities.list.0' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.clientResponsibilities.list.1' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.clientResponsibilities.list.2' | translate }}</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="revisions">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('revisions')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.revisions.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'revisions'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'revisions'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.revisions.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="ownership-and-rights">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('ownership-and-rights')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.ownershipAndRights.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'ownership-and-rights'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'ownership-and-rights'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.ownershipAndRights.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="confidentiality">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('confidentiality')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.confidentiality.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'confidentiality'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'confidentiality'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.confidentiality.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="cancellations-and-refunds">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('cancellations-and-refunds')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.cancellationsAndRefunds.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'cancellations-and-refunds'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'cancellations-and-refunds'">Copied!</span>
|
||||
</h2>
|
||||
<ul>
|
||||
<li>{{ 'termsOfService.sections.cancellationsAndRefunds.list.0' | translate }}</li>
|
||||
<li>{{ 'termsOfService.sections.cancellationsAndRefunds.list.1' | translate }}</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="limitation-of-liability">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('limitation-of-liability')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.limitationOfLiability.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'limitation-of-liability'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'limitation-of-liability'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.limitationOfLiability.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="dispute-resolution">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('dispute-resolution')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.disputeResolution.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'dispute-resolution'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'dispute-resolution'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.disputeResolution.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="force-majeure">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('force-majeure')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.forceMajeure.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'force-majeure'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'force-majeure'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.forceMajeure.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="governing-law">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('governing-law')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.governingLaw.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'governing-law'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'governing-law'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.governingLaw.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="modifications">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('modifications')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.modifications.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'modifications'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'modifications'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.modifications.content' | translate }}</p>
|
||||
</section>
|
||||
|
||||
<section id="contact">
|
||||
<br><br>
|
||||
<h2 (click)="copySectionLink('contact')" class="clickable-title">
|
||||
{{ 'termsOfService.sections.contact.title' | translate }}
|
||||
<span class="link-icon" *ngIf="copiedSection !== 'contact'"><i class="fa-solid fa-link"></i></span>
|
||||
<span class="copied-text" *ngIf="copiedSection === 'contact'">Copied!</span>
|
||||
</h2>
|
||||
<p>{{ 'termsOfService.sections.contact.intro' | translate }}</p>
|
||||
<ul class="contact-details">
|
||||
<li>
|
||||
<span (click)="copyToClipboard('michael@itzminey.dev')"><i class="fa-solid fa-envelope"></i></span>
|
||||
Email: <a href="mailto:michael@itzminey.dev">michael@itzminey.dev</a>
|
||||
<span *ngIf="copiedSection === 'email'" class="copy-status">Copied!</span>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<span (click)="copyToClipboard('+436604349465')"><i class="fa-solid fa-phone"></i></span>
|
||||
Phone: <a href="tel:+436604349465">+43 660 4349465</a>
|
||||
<span *ngIf="copiedSection === 'phone'" class="copy-status">Copied!</span>
|
||||
</li> -->
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,115 +0,0 @@
|
||||
import {AfterViewInit, Component, OnInit,} from '@angular/core';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {NgIf} from '@angular/common';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-services',
|
||||
imports: [
|
||||
NgIf,
|
||||
TranslatePipe,
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './tos.component.html',
|
||||
styleUrl: './tos.component.css'
|
||||
})
|
||||
|
||||
export class TosComponent implements OnInit, AfterViewInit {
|
||||
isNarrow: boolean = false;
|
||||
activeSection: string = '';
|
||||
copiedSection: string | null = null;
|
||||
|
||||
constructor(
|
||||
private deviceService: ViewportService,
|
||||
private titleService: Title
|
||||
) {}
|
||||
|
||||
scrollToSection(event: Event, targetId: string): void {
|
||||
event.preventDefault();
|
||||
|
||||
const target = document.getElementById(targetId);
|
||||
|
||||
if (target) {
|
||||
window.scrollTo({
|
||||
top: target.offsetTop + 80,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Terms of Service | itzMiney');
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.initScrollTracking();
|
||||
}
|
||||
|
||||
initScrollTracking(): void {
|
||||
const sections = Array.from(document.querySelectorAll('section')) as HTMLElement[];
|
||||
|
||||
const updateActiveSection = () => {
|
||||
let closestSection: string | null = null;
|
||||
let minDistance = Number.MAX_VALUE;
|
||||
|
||||
const viewportCenter = window.scrollY + window.innerHeight / 10;
|
||||
|
||||
sections.forEach(section => {
|
||||
const rect = section.getBoundingClientRect();
|
||||
const sectionTop = window.scrollY + rect.top;
|
||||
const distance = Math.abs(viewportCenter - sectionTop);
|
||||
|
||||
if (distance < minDistance) {
|
||||
minDistance = distance;
|
||||
closestSection = section.id;
|
||||
}
|
||||
});
|
||||
|
||||
if (closestSection && closestSection !== this.activeSection) {
|
||||
this.activeSection = closestSection;
|
||||
|
||||
document.querySelectorAll('.floating-nav a').forEach(link => {
|
||||
link.classList.remove('active');
|
||||
});
|
||||
|
||||
const activeLink = document.querySelector(`a[href="#${closestSection}"]`);
|
||||
if (activeLink) {
|
||||
activeLink.classList.add('active');
|
||||
}
|
||||
}
|
||||
|
||||
requestAnimationFrame(updateActiveSection);
|
||||
};
|
||||
|
||||
requestAnimationFrame(updateActiveSection);
|
||||
}
|
||||
|
||||
copySectionLink(sectionId: string): void {
|
||||
const url = `${window.location.origin}${window.location.pathname}#${sectionId}`;
|
||||
navigator.clipboard.writeText(url).then(() => {
|
||||
this.copiedSection = sectionId;
|
||||
|
||||
setTimeout(() => {
|
||||
this.copiedSection = null;
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
copyToClipboard(text: string): void {
|
||||
navigator.clipboard.writeText(text).then(() => {
|
||||
if (text.includes('@')) {
|
||||
this.copiedSection = 'email';
|
||||
} else if (text.includes('+')) {
|
||||
this.copiedSection = 'phone';
|
||||
}
|
||||
|
||||
// Reset the copied section after 2 seconds
|
||||
setTimeout(() => {
|
||||
this.copiedSection = null;
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user