the terminal is no longer just styling but an actual tiny terminal emulator lol

This commit is contained in:
itzMiney committed 2026-03-17 04:19:48 +01:00
1 parent 7451fe33b7
commit 4f18ef5844
8 files changed
+584 -116

No files matched your search

+7 -68
View File
@@ -109,7 +109,7 @@ a {
min-height: calc(100vh - 80px);
color: white;
background: #2e2940;
padding: 80px 0 0 0;
padding: 80px 0 80px 0;
font-family: 'Roboto', sans-serif;
z-index: 1;
display: flex;
@@ -154,75 +154,14 @@ a {
text-align: right;
}
.terminal-bg {
.terminal-window {
background: #1b1920;
padding: 8px 22px 11px 22px;
margin: 0 0 80px 0;
border-radius: 0 0 20px 20px;
}
.terminal-bg h2 {
line-height: 1.2;
margin: 8px 0;
}
.terminal-bg a.secret {
color: white;
}
.terminal-bg a {
color: #cb84df;
}
.terminal-bg p {
font-size: 1rem;
}
.cursorblink {
animation: cursorBlink 1.25s infinite;
}
@keyframes cursorBlink {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
.category {
max-width: 200px;
}
.category h4 {
font-size: 1.2rem;
font-weight: 600;
margin: 0 0 5px 0;
background: #74ef85;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.tech-stack {
text-align: left;
align-items: flex-start;
display: flex;
flex-wrap: wrap;
}
.tech-stack ul {
list-style: none;
width: 900px;
height: 540px;
margin: 0;
padding: 0;
width: 160px;
}
.tech-stack li {
color: #649aff;
margin-bottom: 5px;
}
.tech-stack li:hover {
color: #ffffff;
overflow-y: auto;
overflow-x: hidden;
border-radius: 0 0 20px 20px;
}
@media (max-width: 768px) {
+3 -41
View File
@@ -16,52 +16,14 @@
</div>
</div>
<div class="separator"></div>
<section id="content"></section>
<section id="content" #contentTrigger></section>
<div class="about-container">
<div class="about-content" [ngStyle]="{'padding': isMobile ? '0 10px;' : '0 25px'}">
<div class="terminal-title">
<div class="window-title"><p><code>Konsole</code></p></div> <div class="window-buttons"><p>🟡 🟣 🔴</p></div>
</div>
<div class="terminal-bg">
<code>
<h2>$ <a class="secret" href="https://files.itz.sh/itzmineydev/lilguy.jpg" target="_blank">cat</a> about.txt</h2>
<p [innerHTML]="'ABOUT' | translate"></p>
<h2>$ ls tools/</h2>
<div class="tech-stack">
<div class="category">
<h4>Runtimes</h4>
<ul>
<a href="https://nginx.org/en/" target="_blank"><li>NGiNX</li></a>
<a href="https://nodejs.org/" target="_blank"><li>Node.js</li></a>
</ul>
</div>
<div class="category">
<h4>{{ 'TECHSTACK_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>
<a href="https://html.spec.whatwg.org/" target="_blank"><li>CSS & HTML</li></a>
</ul>
</div>
<div class="category">
<h4>Frameworks</h4>
<ul>
<a href="https://angular.dev/" target="_blank"><li>Angular</li></a>
<a href="https://express.com/" target="_blank"><li>Express</li></a>
<a href="https://flask.palletsprojects.com/en/stable/" target="_blank"><li>Flask</li></a>
</ul>
</div>
<div class="category">
<h4>{{ 'TECHSTACK_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>
<a href="https://www.postgresql.org/" target="_blank"><li>PostgreSQL</li></a>
</ul>
</div>
</div>
<h2>$ <span class="cursorblink">&#9608;</span></h2>
</code>
<div class="terminal-window">
<app-terminal-emulator [bootOnVisible]="terminalShouldBoot"></app-terminal-emulator>
</div>
</div>
</div>
+33 -5
View File
@@ -1,9 +1,11 @@
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
import {AfterViewInit, Component, ElementRef, HostListener, OnInit, ViewChild, ViewEncapsulation} from '@angular/core';
import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser';
import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
import {NgStyle} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {TerminalEmulatorComponent} from '../shared/terminal-emulator/terminal-emulator.component';
@Component({
selector: 'app-about',
@@ -12,22 +14,48 @@ import {NgStyle} from '@angular/common';
imports: [
TranslatePipe,
ParallaxComponent,
NgStyle
NgStyle,
FormsModule,
TerminalEmulatorComponent
],
styleUrls: ['./about.component.css']
})
export class AboutComponent implements OnInit {
export class AboutComponent implements OnInit, AfterViewInit {
isMobile: boolean = false;
terminalShouldBoot: boolean = false;
@ViewChild('contentTrigger') contentTrigger!: ElementRef;
constructor(
private deviceService: DeviceDetectorService,
private titleService: Title,
) {}
private titleService: Title
) {
}
ngOnInit() {
this.titleService.setTitle('itzMiney\'s Home');
this.isMobile = this.deviceService.isMobile;
}
ngAfterViewInit() {
this.checkTerminalTrigger();
}
@HostListener('window:scroll')
onWindowScroll() {
this.checkTerminalTrigger();
}
private checkTerminalTrigger() {
if (this.terminalShouldBoot || !this.contentTrigger) return;
const rect = this.contentTrigger.nativeElement.getBoundingClientRect();
if (rect.top <= 0) {
this.terminalShouldBoot = true;
}
}
scrollDown() {
document.getElementById('content')?.scrollIntoView({behavior: 'smooth'});
}