refactor: "minor" changes.. to a bit of everything, yea
Frontend CI/CD / test-and-build (push) Successful in 25s
Frontend CI/CD / deploy (push) Successful in 26s

- Restructure en.json & de.json into nested keys and update all templates
- Extract shared markdown logic into MarkdownService
- Fix SSR route configuration breaking Express REST requests for /admin
- Fix terminal emulator mobile layout shrink-to-fit bug on About page
- Refresh Socials & Portfolio layouts, styles, and buttons (extracted osu.svg, added Club Penguin button)
- Update Privacy Policy content and clean up its template layout
- Let Gemini write this commit message because I am too lazy to write up all the changes myself
This commit is contained in:
itzMiney committed 2026-11-19 01:19:31 +01:00
1 parent eaf936f846
commit 7651374e3d
21 files changed
+274 -240

No files matched your search

+6
View File
@@ -142,7 +142,13 @@ a {
text-align: right;
}
.terminal {
width: 100%;
max-width: 900px;
}
.terminal-window {
width: 100%;
background: #1b1920;
height: 520px;
max-width: 900px;
+3 -3
View File
@@ -8,7 +8,7 @@
<div class="landing-container">
<div class="title-box">
<h1 [ngStyle]="{'font-size': isNarrow ? '4rem' : '5rem'}"><code>itzMiney</code></h1>
<p class="subtitle">{{ 'ABOUT_SUB' | translate}}</p>
<p class="subtitle">{{ 'about.subtext' | translate}}</p>
</div>
<div class="down-arrow" (click)="scrollDown()">
<i class="fa-solid fa-angle-down"></i>
@@ -17,11 +17,11 @@
<div class="separator"></div>
<section id="content" #contentTrigger></section>
<div class="about-container">
<div class="terminal" [ngStyle]="{'margin': isNarrow ? '10px;' : '25px'}">
<div class="terminal" [ngStyle]="{'margin': isNarrow ? '10px' : '25px'}">
<div class="titlebar">
<div class="window-title"><p><code>Konsole</code></p></div> <div class="window-actions"><p>🟡 🟣 🔴</p></div>
</div>
<div class="terminal-window" [ngStyle]="{'width': isNarrow ? '100%' : '900px' }">
<div class="terminal-window">
<app-terminal-emulator [bootOnVisible]="terminalShouldBoot"></app-terminal-emulator>
</div>
</div>
+8
View File
@@ -1,6 +1,14 @@
import { RenderMode, ServerRoute } from '@angular/ssr';
export const serverRoutes: ServerRoute[] = [
{
path: 'admin',
renderMode: RenderMode.Client
},
{
path: 'login',
renderMode: RenderMode.Client
},
{
path: '**',
renderMode: RenderMode.Server
@@ -31,8 +31,8 @@
></markdown>
<div class="article-buttons">
<div class="buttons-left">
<a id="backBtn" [title]="'BUTTONS.BACK' | translate" href="/blog"><i class="fa-solid fa-turn-up fa-rotate-270"></i></a>
<a id="shareBtn" [title]="'BUTTONS.SHARE' | translate" (click)="shareArticle()" [class.copied]="copied"><i class="fa-solid fa-share-nodes"></i></a>
<a id="backBtn" [title]="'common.btn.back' | translate" href="/blog"><i class="fa-solid fa-turn-up fa-rotate-270"></i></a>
<a id="shareBtn" [title]="'common.btn.share' | translate" (click)="shareArticle()" [class.copied]="copied"><i class="fa-solid fa-share-nodes"></i></a>
</div>
<div class="buttons-right">
<p><strong>{{ article.views }}</strong> Views</p>
@@ -42,19 +42,19 @@
<div class="article-meta">
<div class="meta-left">
<p title="Author"><i class="fa-solid fa-user"></i><strong> {{ article.authorName}}</strong></p>
<p [title]="'RELEASED_AT' | translate">
<p [title]="'blog.article.created' | translate">
{{ article.createdAt | date: 'mediumDate' }}<br>
{{ 'TIME.PREFIX' | translate}}
{{ article.createdAt | date:('TIME.FORMAT' | translate) }}
{{ 'TIME.SUFFIX' | translate }}</p>
{{ 'common.time.prefix' | translate}}
{{ article.createdAt | date:('common.time.format' | translate) }}
{{ 'common.time.suffix' | translate }}</p>
</div>
@if (article.updatedAt) {
<div class="meta-right">
<p><strong>{{ 'UPDATED_AT' | translate }}</strong></p>
<p><strong>{{ 'blog.article.updated' | translate }}</strong></p>
<p>{{ article.updatedAt | date:'mediumDate' }}<br>
{{ 'TIME.PREFIX' | translate}}
{{ article.updatedAt | date:('TIME.FORMAT' | translate) }}
{{ 'TIME.SUFFIX' | translate }}</p>
{{ 'common.time.prefix' | translate}}
{{ article.updatedAt | date:('common.time.format' | translate) }}
{{ 'common.time.suffix' | translate }}</p>
</div>
}
</div>
@@ -82,8 +82,8 @@
<!-- Error Message -->
<div class="error-message">
<h1>404</h1>
<p>{{ 'ARTICLE_NOTFOUND' | translate }}</p>
<a href="/blog"><button>{{ 'ARTICLE_BACK' | translate }}</button></a>
<p>{{ 'blog.article.err' | translate }}</p>
<a href="/blog"><button>{{ 'common.btn.back' | translate }}</button></a>
</div>
}
</div>
@@ -6,6 +6,7 @@ import {ActivatedRoute} from '@angular/router';
import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../../shared/parallax/parallax.component';
import {MarkdownModule} from 'ngx-markdown';
import {MarkdownService} from '../../shared/services/markdown.service';
import {ViewportService} from '../../shared/services/viewport.service';
interface Article {
@@ -52,7 +53,8 @@ export class ArticlePageComponent implements OnInit {
private articleService: ArticleService,
private seo: SeoService,
private route: ActivatedRoute,
private viewportService: ViewportService
private viewportService: ViewportService,
private markdownService: MarkdownService,
) {
}
@@ -90,7 +92,7 @@ export class ArticlePageComponent implements OnInit {
}
this.article = article;
this.renderedContent = this.transformCustomBlocks(article.content);
this.renderedContent = this.markdownService.transformCustomBlocks(article.content);
this.loading = false;
const thumbUrl = article.thumb_url || this.defaultThumbUrl;
@@ -134,35 +136,6 @@ export class ArticlePageComponent implements OnInit {
}
}
transformCustomBlocks(content: string): string {
let result = content;
result = result.replace(
/\[gallery\]\s*([\s\S]*?)\s*\[\/gallery\]/g,
(_, inner) => {
const urls = inner
.split('\n')
.map((line: string) => line.trim())
.filter((line: string) => line.length > 0);
const images = urls
.map((url: string) => `<img src="${url}" alt="Gallery image">`)
.join('');
return `<div class="gallery">${images}</div>`;
}
);
result = result.replace(
/\[center\]\s*([\s\S]*?)\s*\[\/center\]/g,
(_, inner) => {
return `<div class="centered-text">${inner}</div>`;
}
);
return result;
}
openPreview(src: string) {
this.selectedImage = src;
}
+3 -3
View File
@@ -8,19 +8,19 @@
<div class="height-container">
<div class="blog-header" [ngStyle]="{'margin-top': isNarrow ? '72px' : '112px'}">
<h1>Blog</h1>
<p class="subtitle">{{ 'BLOG_SUB' | translate }}</p>
<p class="subtitle">{{ 'blog.subtext' | translate }}</p>
</div>
<hr class="rounded">
<div class="blog-container">
@if (hasError) {
<div class="error-state">
<h2>Error: Couldn't fetch articles!</h2>
<h2>{{ 'blog.list.err' | translate }}</h2>
</div>
} @else {
@if (articles$ | async; as articles) {
@if (articles.length === 0) {
<div class="empty-state">
<h2>{{ 'ARTICLES_NONE' | translate }}</h2>
<h2>{{ 'blog.list.empty' | translate }}</h2>
</div>
} @else {
<div>
-22
View File
@@ -78,28 +78,6 @@
color: white;
}
.kofi-button {
text-align: center;
margin-top: 30px;
margin-bottom: 50px;
}
.ko-fi-btn {
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: #fff4f4;
color: #ff5a78;
}
.text-content p {
font-size: 1.2rem;
font-weight: 400;
+3 -8
View File
@@ -8,17 +8,12 @@
<div class="height-container">
<div class="portfolio-container">
<div class="portfolio-header" [ngStyle]="{'margin-top': isNarrow ? '60px' : '120px'}">
<h1>{{ 'PORTF_TITLE' | translate }}</h1>
<p class="subtitle">{{ 'PORTF_SUB' | translate }}</p>
<h1>{{ 'portf.title' | translate }}</h1>
<p class="subtitle">{{ 'portf.subtext' | translate }}</p>
</div>
<hr class="rounded">
<div class="text-content">
<p [innerHTML]="'PORTFOLIO' | translate"></p>
</div>
<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>&#x2007;Ko-Fi Donations</button>
</a>
<p [innerHTML]="'portf.intro' | translate"></p>
</div>
<div class="portfolio-gallery" [@staggerGallery]>
@for (item of galleryItems; track item) {
+1 -1
View File
@@ -67,7 +67,7 @@
</h2>
<p>{{ 'privacy.purpose.intro' | translate }}</p>
<ul>
@for (point of ['privacy.purpose.points' | translate]; track point) {
@for (point of ( 'privacy.purpose.points' | translate ); track point) {
<li>{{ point }}</li>
}
</ul>
+1 -1
View File
@@ -1,6 +1,6 @@
<footer>
<p>&#169; {{ currentYear }} Michael Reisinger</p>
<p><a href="/privacy">{{ 'FOOTER_LINK' | translate }}</a></p>
<p><a href="/privacy">{{ 'common.footer.linktext' | translate }}</a></p>
<div class="social-icons">
<a href="https://linktr.ee/itzminey" target="_blank" aria-label="Twitter">
@@ -2,6 +2,7 @@ import {Component, forwardRef, OnInit, ChangeDetectionStrategy} from '@angular/c
import { CommonModule } from '@angular/common';
import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
import {MarkdownModule} from 'ngx-markdown';
import {MarkdownService} from '../services/markdown.service'
import { ViewportService} from '../services/viewport.service';
@Component({
@@ -26,7 +27,10 @@ export class MarkdownEditorComponent implements ControlValueAccessor, OnInit {
isNarrow: boolean = false;
constructor(private viewportService: ViewportService) { }
constructor(
private viewportService: ViewportService,
private markdownService: MarkdownService,
) { }
private onChange: (value: string) => void = () => {};
private onTouched: () => void = () => {};
@@ -190,33 +194,6 @@ export class MarkdownEditorComponent implements ControlValueAccessor, OnInit {
}
get previewContent(): string {
return this.transformCustomBlocks(this.value);
}
transformCustomBlocks(content: string): string {
let result = content;
result = result.replace(
/\[gallery\]\s*([\s\S]*?)\s*\[\/gallery\]/g,
(_, inner) => {
const urls = inner
.split('\n')
.map((line: string) => line.trim())
.filter((line: string) => line.length > 0);
const images = urls
.map((url: string) => `<img src="${url}" alt="Gallery image">`)
.join('');
return `<div class="gallery">${images}</div>`;
}
);
result = result.replace(
/\[center\]\s*([\s\S]*?)\s*\[\/center\]/g,
(_, inner) => `<div class="centered-text">${inner}</div>`
);
return result;
return this.markdownService.transformCustomBlocks(this.value);
}
}
+1 -2
View File
@@ -1,9 +1,8 @@
<nav class="navbar">
<div class="navbar-links">
<a [routerLink]="'/'" [class.active]="activeLink === '/'">{{ 'NAV_ABOUT' | translate }}</a>
<a [routerLink]="'/'" [class.active]="activeLink === '/'">{{ 'common.btn.about' | translate }}</a>
<a [routerLink]="'/portfolio'" [class.active]="activeLink === '/portfolio'">Portfolio</a>
<a [routerLink]="'/socials'" [class.active]="activeLink === '/socials'">Socials</a>
<!-- <a [routerLink]="'/services'" [class.active]="activeLink === '/services'">{{ 'NAV_SERVICES' | translate }}</a> -->
<a [routerLink]="'/blog'" [class.active]="activeLink === '/blog'">Blog</a>
</div>
<div class="language-switch" [attr.data-active]="currentLang">
@@ -0,0 +1,52 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class MarkdownService {
transformCustomBlocks(content: string): string {
if (!content) return '';
return content
.replace(/\[gallery\]\s*([\s\S]*?)\s*\[\/gallery\]/g, (_, inner: string) => {
const images = inner
.split('\n')
.map((line) => this.sanitizeImageUrl(line))
.filter((url): url is string => url !== null)
.map((url) => `<img src="${this.escapeHtmlAttr(url)}" alt="Gallery image" loading="lazy">`)
.join('');
return `<div class="gallery">${images}</div>`;
})
.replace(
/\[center\]\s*([\s\S]*?)\s*\[\/center\]/g,
(_, inner: string) => `<div class="centered-text">${inner}</div>`
);
}
private sanitizeImageUrl(rawUrl: string): string | null {
const trimmed = rawUrl.trim();
if (trimmed.startsWith('/')) {
return trimmed;
}
try {
const parsed = new URL(trimmed);
if (parsed.protocol === 'https:' || parsed.protocol === 'http:') {
return parsed.href;
}
} catch {
return null;
}
return null;
}
private escapeHtmlAttr(value: string): string {
return value
.replace(/&/g, '&amp;')
.replace(/"/g, '&quot;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
}
}
@@ -72,7 +72,7 @@
}
</div>
<ng-template #aboutTemplate>
<p class="fade-in" [innerHTML]="'ABOUT' | translate"></p>
<div class="fade-in" [innerHTML]="'about.terminal.intro' | translate"></div>
</ng-template>
<ng-template #catTemplate>
@@ -96,7 +96,7 @@
</div>
<div class="category">
<h4>{{ 'TECHSTACK_LANGS' | translate }}</h4>
<h4>{{ 'about.terminal.langs' | translate }}</h4>
<ul>
<a href="https://www.typescriptlang.org/" target="_blank"><li>TypeScript</li></a>
<a href="https://go.dev/" target="_blank"><li>Go</li></a>
@@ -114,7 +114,7 @@
</div>
<div class="category">
<h4>{{ 'TECHSTACK_DBS' | translate }}</h4>
<h4>{{ 'about.terminal.dbs' | translate }}</h4>
<ul>
<a href="https://www.mysql.com/" target="_blank"><li>MySQL</li></a>
<a href="https://mariadb.org/" target="_blank"><li>MariaDB</li></a>
+40 -14
View File
@@ -52,15 +52,18 @@
.btn {
font-size: 1.2rem;
line-height: 1;
font-family: 'Roboto', sans-serif;
color: white;
padding: 12px 20px;
padding: 10px 18px 10px 10px;
margin: 10px;
border: none;
border-radius: 25px;
cursor: pointer;
display:inline-flex;
align-items:center;
display: inline-flex;
flex-direction: row;
align-items: center;
vertical-align: middle;
text-decoration: none;
}
@@ -69,14 +72,36 @@
cursor: not-allowed;
}
.btn span {
color: #c3c9e8;
}
h3 {
margin: 30px 0 10px 0;
}
#username {
font-size: 1.2rem;
.dc-usertile {
display: inline-flex;
align-items: start;
vertical-align: middle;
}
.dc-usertile span {
font-size: 1rem;
font-family: 'Roboto', sans-serif;
color: #cdcdcd;
background-color: #ffffff;
color: black;
border-radius: 99px 99px 99px 0;
padding: 2px 6px 3px 3px;
;
}
.dc-usertile img {
display: inline-flex;
vertical-align: middle;
height: 2.2rem;
border-radius: 100%;
margin: 10px 6px 0 0;
}
hr.rounded {
@@ -86,11 +111,14 @@ hr.rounded {
border-radius: 5px;
}
.btn img { height: 1.7rem; padding: 0; align-content: center; }
.btn i { font-size: 1.7rem; padding: 0; align-content: center; }
.discord { background-color: #5865F2; }
.discord:hover { background-color: #818aec; }
.youtube { background-color: #f25858; }
.youtube:hover { background-color: #ff7474; }
.youtube:hover { background-color: #fa7a7a; }
.twitter { background-color: #58adf2; }
.twitter:hover { background-color: #8bcefd; }
@@ -99,13 +127,11 @@ hr.rounded {
.twitch:hover { background-color: #a76bff; }
.steam { background-color: #1c1c1c; }
.steam:hover { background-color: #202020; }
.steam:hover { background-color: #292929; }
.osu { background-color: #ff66aa; transform: translateY( +3px);}
.osu { background-color: #ff66aa; }
.osu:hover { background-color: #fd83b9; }
.kofi { background-color: #fff; color: #ff5a78;}
.kofi:hover { background-color: #fff4f4; color: #ff5a78;}
.kofi-comms { background-color: #fff; color: #39354a;}
.kofi-comms:hover { background-color: #fff4f4; color: #39354a;}
.tux { background-color: #3facc1; }
.tux:hover { background-color: #45c6df; }
.tux.toggled { background-color: #a32e32; cursor: not-allowed; }
+15 -22
View File
@@ -11,14 +11,18 @@
<div class="socials-container">
<div class="socials-header" [ngStyle]="{'margin-top': isNarrow ? '80px' : '120px'}">
<h1>Socials</h1>
<p class="subtitle">{{ 'SOCIALS_SUB' | translate }}</p>
<p class="subtitle">{{ 'socials.subtext' | translate }}</p>
</div>
<hr class="rounded">
<div class="social-links">
<h3>Discord</h3>
<a href="https://discord.gg/RstBa88" target="_blank" class="btn discord">
<i class="fa-brands fa-discord"></i>&#x2007;Discord Server
<i class="fa-brands fa-discord"></i>&#x2007;Join&nbsp;<span>itzMiney's Hideout</span>
</a>
<span id="username">&#64;itzminey</span>
<div class="dc-usertile">
<img src="https://avifetch.itz.sh/api/users/350713200389652480"/>
<span id="username">&#64;itzminey</span>
</div>
<h3>Social Media</h3>
<a href="https://youtube.com/@itzMiney" target="_blank" class="btn youtube">
@@ -31,30 +35,19 @@
<i class="fa-brands fa-twitch"></i>&#x2007;Twitch
</a>
<h3>{{ 'SOCIALS_GAMES' | translate }}</h3>
<h3>{{ 'socials.games' | translate }}</h3>
<a href="https://steamcommunity.com/id/itzMiney/" target="_blank" class="btn steam">
<i class="fa-brands fa-steam"></i>&#x2007;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>&#x2007;osu!
<img src="assets/osu.svg" />&#x2007;osu!
</a>
<h3>{{ 'SOCIALS_COMMS' | translate }}</h3>
<a href="https://ko-fi.com/itzMiney" target="_blank" class="btn kofi">
<i class="fa-solid fa-mug-hot"></i>&#x2007;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>
&#x2007;Ko-Fi Commissions
<a class="btn tux" (click)="toggleTux()" [class.toggled]="tuxToggled()">
@if (tuxToggled()) {
<i class="fa-solid fa-skull-crossbones"></i>&#x2007;Club penguin is kil
} @else {
<img src="assets/clubpenguin.png" />&#x2007;Club Penguin
}
</a>
</div>
</div>
+6 -2
View File
@@ -1,4 +1,4 @@
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
import {Component, OnInit, ChangeDetectionStrategy, signal} from '@angular/core';
import {NgStyle} from '@angular/common';
import {ViewportService} from '../shared/services/viewport.service';
import {TranslatePipe} from '@ngx-translate/core';
@@ -18,7 +18,7 @@ import {SeoService} from '../shared/services/seo.service';
})
export class SocialsComponent implements OnInit {
isNarrow: boolean = false;
commissionsOpen = false;
tuxToggled= signal(false);
constructor(
private deviceService: ViewportService,
@@ -32,4 +32,8 @@ export class SocialsComponent implements OnInit {
})
this.isNarrow = this.deviceService.isNarrow;
}
toggleTux() {
this.tuxToggled.set(true)
}
}