Changed everything to use translate pipeline instead of hardcoded text and added german translations

This commit is contained in:
itzMiney committed 2025-06-11 01:08:36 +02:00
1 parent 5c7f0074f3
commit cfa971f856
33 files changed
+758 -321

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@
text-align: center;
}
.text-content a {
::ng-deep .text-content a {
color: cornflowerblue;
}
+3 -10
View File
@@ -2,23 +2,16 @@
<div class="height-container">
<div class="services-container">
<div class="services-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}">
<h1>My Services</h1>
<h1>{{ 'SERVS_TITLE' | translate}}</h1>
<p class="subtitle">Web Development & Design</p>
</div>
<hr class="rounded">
<div class="text-content">
<p>
Welcome!<br><br>
Here is where I offer freelance services in web development and design!<br>
Feel free to check out my <a href='/portfolio'>Portfolio</a> to see some of my previous work.
If you like what I do consider commissioning my services that I offer for various prices and tiers here on this site!<br>
If you're interested, feel free to email me at <a href="mailto:michael@itzminey.dev">michael&#64;itzminey.dev</a> with the service you're requesting, along with any relevant details and specifications.<br>
Please also contact me at the above mail or with the contact button below for a precise estimate or to discuss a customized flat-rate package tailored to your specific needs.
</p>
<p [innerHTML]="'SERVS' | translate"></p>
</div>
<div class="contact-button">
<a href="mailto:michael@itzminey.dev" target="_blank">
<button class="contact-btn">Contact me</button>
<button class="contact-btn">{{ 'SERVS_CONTACT' | translate}}</button>
</a>
</div>
<div class="service-cards">
+66 -144
View File
@@ -3,13 +3,15 @@ import {VantaBackgroundService} from '../shared/services/vanta-background.servic
import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser';
import {isPlatformBrowser, NgIf, NgFor, NgStyle} from '@angular/common';
import {TranslatePipe, TranslateService} from '@ngx-translate/core';
@Component({
selector: 'app-services',
imports: [
NgStyle,
NgIf,
NgFor
NgFor,
TranslatePipe
],
templateUrl: './services.component.html',
styleUrl: './services.component.css'
@@ -20,155 +22,15 @@ export class ServicesComponent implements OnInit, OnDestroy, AfterViewInit {
isMobile: boolean = false;
activeTab: string[] = [];
services = [
{
name: "<b>Support & Maintenance Service</b>",
basic: `
<b class="centered-text">Maintenance Service</b><br>
Depending on the software(s) in use, flexible baseline ~€35-90+/month.<br>
Contact me for a precise estimate.<br><br>
<b>Support Service</b><br>
Depending on the software(s) in use, flexible baseline ~€50-75+/hour.<br>
<b>Flat Rate:</b> €60-130 for minor issues
(up to 2.5 hours, depends on complexity, contact me for a precise estimate)
`,
advanced: `
<b class="centered-text">Maintenance Service</b><br>
Depending on the software(s) in use, flexible baseline ~€35-90+/month.<br>
Contact me for a precise estimate.<br><br>
<b>Support Service</b><br>
Depending on the software(s) in use, flexible baseline ~€50-75+/hour.<br>
<b>Flat Rate:</b> €60-130 for minor issues
(up to 2.5 hours, depends on complexity, contact me for a precise estimate)
`
},
{
name: "<b>Design a Custom WordPress Website</b> (Files Only)",
basic: `
<b class="centered-text">Base Service: €100</b><br>
I will design a custom WordPress website and provide the installation files for your dedicated server or WordPress host.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Maintenance Service (€35/month)<br>
• Support Service (€50/hour)<br>
<b>Flat Rate:</b> €50 for minor issues (up to 2.5 hours)
`,
advanced: `
<b class="centered-text">Base Service: €100</b><br>
Includes basic service + detailed documentation of each feature.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Maintenance Service (€35/month)<br>
• Support Service (€50/hour)<br>
<b>Flat Rate:</b> €50 for minor issues (up to 2.5 hours)
`
},
{
name: "<b>Design & Setup Custom WordPress Website</b>",
basic: `
<b class="centered-text">Base Service: €150</b><br>
I will design a custom WordPress website and set it up on:<br>
• Your dedicated server<br>
• Your existing WordPress host<br>
• My server (shared hosting: €20/month)<br><br>
<b class="centered-text">Additional Services:</b><br>
• Domain registration & management (€20 setup)<br>
• Basic DDoS Protection (€25/month)<br>
• Maintenance Service (€35/month)<br>
• Support Service (€50/hour)<br>
<b>Flat Rate:</b> €60 for minor issues (up to 2.5 hours)
`,
advanced: `
<b class="centered-text">Base Service: €200</b><br>
Includes basic service + additional security configuration.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Domain registration & management (€20 setup)<br>
• Advanced DDoS Protection (€45/month)<br>
• Dedicated IPv4 Address (€15/month)<br>
• Maintenance Service (€35/month)<br>
• Support Service (€50/hour)<br>
<b>Flat Rate:</b> €60 for minor issues (up to 2.5 hours)
`
},
{
name: "<b>Custom-Made Website in Angular</b> (Files Only)",
basic: `
<b class="centered-text">Base Service: €200</b><br>
I will develop a custom frontend using Angular, Node.js, TypeScript, HTML, and CSS, and provide the files.<br>
If you have a backend, provide its documentation, so I can integrate it.<br>
If not, I will add placeholders for future backend integration.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Maintenance Service (€50/month)<br>
• Support Service (€75/hour)<br>
<b>Flat Rate:</b> €100 for minor issues (up to 2.5 hours)
`,
advanced: `
<b class="centered-text">Base Service: €300</b><br>
Includes basic service + backend development.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Maintenance Service (€50/month)<br>
• Support Service (€75/hour)<br>
<b>Flat Rate:</b> €100 for minor issues (up to 2.5 hours)
`
},
{
name: "<b>Custom-Made Website in Angular + Setup</b>",
basic: `
<b class="centered-text">Base Service: €400</b><br>
I will develop a full-stack website using Angular, Node.js, TypeScript, HTML, and CSS, and set it up on:<br>
• Your dedicated server<br>
• Your existing hosting provider<br>
• My server (shared hosting: €20/month)<br><br>
<b class="centered-text">Additional Services:</b><br>
• Domain registration & management (€20 setup)<br>
• Basic DDoS Protection (€25/month)<br>
• Maintenance Service (€50/month)<br>
• Support Service (€75/hour)<br>
<b>Flat Rate:</b> €100 for minor issues (up to 2.5 hours)
`,
advanced: `
<b class="centered-text">Base Service: €400</b><br>
Includes basic service + additional security configuration.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Domain registration & management (€20 setup)<br>
• Advanced DDoS Protection (€45/month)<br>
• Dedicated IPv4 Address (€15/month)<br>
• Maintenance Service (€50/month)<br>
• Support Service (€75/hour)<br>
<b>Flat Rate:</b> €100 for minor issues (up to 2.5 hours)
`
},
{
name: "<b>Server Setup for Provided Software</b>",
basic: `
<b class="centered-text">Flexible Baseline ~€100-250+</b><br>
Pricing depends on software complexity, required configurations, and security hardening.<br>
Contact me for a precise estimate.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Maintenance Service (€60/month)<br>
• Support Service (€90/hour)<br>
<b>Flat Rate:</b> €60-130 for minor issues
(up to 2.5 hours, depends on complexity, contact me for a precise estimate)
`,
advanced: `
<b class="centered-text">Flexible Baseline ~€100-250+</b><br>
Pricing depends on software complexity, resource requirements, and hosting needs.<br>
Shared hosting available (€30/month). Contact me for a dedicated solution.<br><br>
<b class="centered-text">Additional Services:</b><br>
• Maintenance Service (€60/month)<br>
• Support Service (€90/hour)<br>
<b>Flat Rate:</b> €60-130 for minor issues
(up to 2.5 hours, depends on complexity, contact me for a precise estimate)
`
}
];
services: { name: string; basic: string; advanced: string }[] = [];
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
private translate: TranslateService,
@Inject(PLATFORM_ID) private platformId: Object
) {
this.activeTab = this.services.map(() => 'basic');
}
) {}
switchTab(serviceIndex: number, tab: string): void {
this.activeTab[serviceIndex] = tab;
@@ -180,6 +42,66 @@ export class ServicesComponent implements OnInit, OnDestroy, AfterViewInit {
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
this.loadServices();
this.translate.onLangChange.subscribe(() => this.loadServices());
}
loadServices(): void {
this.translate.get([
'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.SUPPORT_NAME'],
basic: translations['SERVICES.SUPPORT_BASIC'],
advanced: translations['SERVICES.SUPPORT_ADVANCED']
},
{
name: translations['SERVICES.WP_FILES_NAME'],
basic: translations['SERVICES.WP_FILES_BASIC'],
advanced: translations['SERVICES.WP_FILES_ADVANCED']
},
{
name: translations['SERVICES.WP_SETUP_NAME'],
basic: translations['SERVICES.WP_SETUP_BASIC'],
advanced: translations['SERVICES.WP_SETUP_ADVANCED']
},
{
name: translations['SERVICES.ANGULAR_FILES_NAME'],
basic: translations['SERVICES.ANGULAR_FILES_BASIC'],
advanced: translations['SERVICES.ANGULAR_FILES_ADVANCED']
},
{
name: translations['SERVICES.ANGULAR_SETUP_NAME'],
basic: translations['SERVICES.ANGULAR_SETUP_BASIC'],
advanced: translations['SERVICES.ANGULAR_SETUP_ADVANCED']
},
{
name: translations['SERVICES.SERVER_SETUP_NAME'],
basic: translations['SERVICES.SERVER_SETUP_BASIC'],
advanced: translations['SERVICES.SERVER_SETUP_ADVANCED']
}
];
this.activeTab = this.services.map(() => 'basic');
});
}
ngAfterViewInit() {