feat(theme): refine retro monitor, ascii portrait, and ambient matrix rain in light mode #10
|
|
@ -0,0 +1,64 @@
|
|||
import { Injectable, signal, computed } from '@angular/core';
|
||||
|
||||
export type ThemeMode = 'dark' | 'light';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class ThemeService {
|
||||
private readonly STORAGE_KEY = 'portfolio_theme_mode';
|
||||
|
||||
readonly themeMode = signal<ThemeMode>(this.getInitialTheme());
|
||||
readonly isLightMode = computed(() => this.themeMode() === 'light');
|
||||
readonly isDarkMode = computed(() => this.themeMode() === 'dark');
|
||||
|
||||
constructor() {
|
||||
this.applyTheme(this.themeMode());
|
||||
}
|
||||
|
||||
toggleTheme(): void {
|
||||
const next: ThemeMode = this.themeMode() === 'dark' ? 'light' : 'dark';
|
||||
this.setTheme(next);
|
||||
}
|
||||
|
||||
setTheme(mode: ThemeMode): void {
|
||||
this.themeMode.set(mode);
|
||||
this.applyTheme(mode);
|
||||
try {
|
||||
if (typeof window !== 'undefined') {
|
||||
localStorage.setItem(this.STORAGE_KEY, mode);
|
||||
}
|
||||
} catch {
|
||||
// Fallback si localStorage no está disponible
|
||||
}
|
||||
}
|
||||
|
||||
private applyTheme(mode: ThemeMode): void {
|
||||
if (typeof document === 'undefined') return;
|
||||
|
||||
const root = document.documentElement;
|
||||
const body = document.body;
|
||||
|
||||
if (mode === 'light') {
|
||||
root.setAttribute('data-theme', 'zen-light');
|
||||
body.classList.remove('theme-dark');
|
||||
body.classList.add('theme-light');
|
||||
} else {
|
||||
root.setAttribute('data-theme', 'zen-dark');
|
||||
body.classList.remove('theme-light');
|
||||
body.classList.add('theme-dark');
|
||||
}
|
||||
}
|
||||
|
||||
private getInitialTheme(): ThemeMode {
|
||||
if (typeof window === 'undefined') return 'dark';
|
||||
|
||||
try {
|
||||
const saved = localStorage.getItem(this.STORAGE_KEY) as ThemeMode | null;
|
||||
if (saved === 'dark' || saved === 'light') return saved;
|
||||
|
||||
// Por defecto iniciamos en dark mode como pide el diseño Cyber-Zen
|
||||
return 'dark';
|
||||
} catch {
|
||||
return 'dark';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,7 +3,11 @@ import { InjectionToken } from '@angular/core';
|
|||
export const API_BASE_URL = new InjectionToken<string>('API_BASE_URL', {
|
||||
providedIn: 'root',
|
||||
factory: () => {
|
||||
if (typeof window !== 'undefined' && window.location.hostname.includes('bryan-bano.com')) {
|
||||
if (
|
||||
typeof window !== 'undefined' &&
|
||||
(window.location.hostname.includes('bryan-bano.com') ||
|
||||
window.location.hostname.includes('pages.dev'))
|
||||
) {
|
||||
return 'https://api.bryan-bano.com/api/v1';
|
||||
}
|
||||
return 'http://localhost:5000/api/v1';
|
||||
|
|
|
|||
|
|
@ -150,6 +150,18 @@
|
|||
box-shadow: 0 0 12px rgba(226, 185, 74, 0.3);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .send-request-btn,
|
||||
:host-context(body.theme-light) .send-request-btn {
|
||||
background: #0f172a;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .send-request-btn:hover:not(:disabled),
|
||||
:host-context(body.theme-light) .send-request-btn:hover:not(:disabled) {
|
||||
background: #1e293b;
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
|
||||
}
|
||||
|
||||
.send-request-btn.loading {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
|
|
|
|||
|
|
@ -253,3 +253,45 @@
|
|||
.launcher-bot-svg { width: 26px; height: 26px; }
|
||||
.chat-window-card { width: 100%; height: 430px; max-height: calc(100vh - 100px); }
|
||||
}
|
||||
|
||||
/* Adaptación Modo Claro */
|
||||
:host-context([data-theme='zen-light']) .chat-launcher-btn,
|
||||
:host-context(body.theme-light) .chat-launcher-btn {
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15), 0 0 14px rgba(217, 119, 6, 0.2);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .chat-launcher-btn:hover,
|
||||
:host-context(body.theme-light) .chat-launcher-btn:hover {
|
||||
background: #ffffff;
|
||||
box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22), 0 0 20px rgba(217, 119, 6, 0.35);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .chat-window-card,
|
||||
:host-context(body.theme-light) .chat-window-card {
|
||||
background: rgba(255, 255, 255, 0.97);
|
||||
box-shadow: 0 14px 42px rgba(15, 23, 42, 0.14), 0 0 1px 1px rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .chat-header,
|
||||
:host-context(body.theme-light) .chat-header,
|
||||
:host-context([data-theme='zen-light']) .chat-input-bar,
|
||||
:host-context(body.theme-light) .chat-input-bar {
|
||||
background: #f8f9fb;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .avatar-ring,
|
||||
:host-context(body.theme-light) .avatar-ring {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .quick-chip-btn,
|
||||
:host-context(body.theme-light) .quick-chip-btn {
|
||||
background: rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .quick-chip-btn:hover,
|
||||
:host-context(body.theme-light) .quick-chip-btn:hover {
|
||||
background: rgba(217, 119, 6, 0.08);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,34 +7,8 @@
|
|||
.contact-section {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
background-color: #121517;
|
||||
padding: clamp(5rem, 8vw, 7rem) 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.contact-matrix-canvas {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
display: block;
|
||||
background: transparent;
|
||||
opacity: 0;
|
||||
animation: fadeInMatrix 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||
}
|
||||
|
||||
@keyframes fadeInMatrix {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
to {
|
||||
opacity: 0.65;
|
||||
transform: translateY(0);
|
||||
}
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.contact-container {
|
||||
|
|
@ -312,6 +286,18 @@
|
|||
box-shadow: 0 0 16px rgba(197, 155, 39, 0.35);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .submit-btn,
|
||||
:host-context(body.theme-light) .submit-btn {
|
||||
background-color: #0f172a;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .submit-btn:hover:not(:disabled),
|
||||
:host-context(body.theme-light) .submit-btn:hover:not(:disabled) {
|
||||
background-color: #1e293b;
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
|
||||
}
|
||||
|
||||
.submit-btn:active:not(:disabled) {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
<section class="contact-section" id="contacto" role="region" [attr.aria-label]="i18n.t().contactEyebrow">
|
||||
<!-- Fondo Animado: Lluvia de Código Matrix Verde -->
|
||||
<canvas #rainCanvas class="contact-matrix-canvas" aria-hidden="true"></canvas>
|
||||
|
||||
<div class="contact-container">
|
||||
<!-- Cabecera Normalizada de Sección -->
|
||||
<header class="contact-section-header">
|
||||
|
|
|
|||
|
|
@ -2,12 +2,7 @@ import {
|
|||
Component,
|
||||
ChangeDetectionStrategy,
|
||||
signal,
|
||||
inject,
|
||||
ElementRef,
|
||||
ViewChild,
|
||||
OnInit,
|
||||
AfterViewInit,
|
||||
OnDestroy
|
||||
inject
|
||||
} from '@angular/core';
|
||||
import {
|
||||
ReactiveFormsModule,
|
||||
|
|
@ -20,20 +15,6 @@ import { I18nService } from '../../../application/services/i18n.service';
|
|||
import { GuestbookComponent } from '../guestbook/guestbook.component';
|
||||
import { NOTIFY_WEBHOOK_URL } from '../../../core/tokens/notify-config.token';
|
||||
|
||||
interface DigitalRainColumn {
|
||||
x: number;
|
||||
y: number;
|
||||
speed: number;
|
||||
length: number;
|
||||
opacity: number;
|
||||
characters: string[];
|
||||
}
|
||||
|
||||
const BINARY_CHARS = '01';
|
||||
const HEX_CHARS = '0123456789ABCDEF';
|
||||
const CODE_CHARS = '{}[]()<>&|/\\:;=+-_*#$%@?!~^';
|
||||
const TERM_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
||||
|
||||
@Component({
|
||||
selector: 'app-contact-section',
|
||||
standalone: true,
|
||||
|
|
@ -42,9 +23,7 @@ const TERM_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|||
styleUrl: './contact-section.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class ContactSectionComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
@ViewChild('rainCanvas') private readonly rainCanvas?: ElementRef<HTMLCanvasElement>;
|
||||
|
||||
export class ContactSectionComponent {
|
||||
protected readonly i18n = inject(I18nService);
|
||||
private readonly http = inject(HttpClient);
|
||||
private readonly notifyWebhookUrl = inject(NOTIFY_WEBHOOK_URL);
|
||||
|
|
@ -76,191 +55,6 @@ export class ContactSectionComponent implements OnInit, AfterViewInit, OnDestroy
|
|||
})
|
||||
});
|
||||
|
||||
private readonly columns: DigitalRainColumn[] = [];
|
||||
private context?: CanvasRenderingContext2D;
|
||||
private animationFrameId?: number;
|
||||
private intersectionObserver?: IntersectionObserver;
|
||||
private resizeObserver?: ResizeObserver;
|
||||
private motionQuery?: MediaQueryList;
|
||||
private isVisible = true;
|
||||
private isReducedMotion = false;
|
||||
private lastFrameTime = 0;
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
if (!this.rainCanvas) return;
|
||||
|
||||
const canvas = this.rainCanvas.nativeElement;
|
||||
this.context = canvas.getContext('2d') ?? undefined;
|
||||
if (!this.context) return;
|
||||
|
||||
this.motionQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
|
||||
this.isReducedMotion = this.motionQuery.matches;
|
||||
this.motionQuery.addEventListener('change', this.onMotionPreferenceChange);
|
||||
|
||||
this.resizeObserver = new ResizeObserver(() => this.resizeCanvas());
|
||||
this.resizeObserver.observe(canvas.parentElement ?? canvas);
|
||||
|
||||
this.intersectionObserver = new IntersectionObserver(([entry]) => {
|
||||
this.isVisible = entry.isIntersecting;
|
||||
if (this.isVisible && !this.isReducedMotion && this.animationFrameId === undefined) {
|
||||
this.lastFrameTime = 0;
|
||||
this.animationFrameId = requestAnimationFrame(this.animate);
|
||||
}
|
||||
}, { threshold: 0.05 });
|
||||
this.intersectionObserver.observe(canvas);
|
||||
|
||||
this.resizeCanvas();
|
||||
if (!this.isReducedMotion) {
|
||||
this.animationFrameId = requestAnimationFrame(this.animate);
|
||||
}
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
if (this.animationFrameId !== undefined) {
|
||||
cancelAnimationFrame(this.animationFrameId);
|
||||
}
|
||||
this.motionQuery?.removeEventListener('change', this.onMotionPreferenceChange);
|
||||
this.intersectionObserver?.disconnect();
|
||||
this.resizeObserver?.disconnect();
|
||||
}
|
||||
|
||||
private readonly onMotionPreferenceChange = (event: MediaQueryListEvent): void => {
|
||||
this.isReducedMotion = event.matches;
|
||||
if (this.isReducedMotion) {
|
||||
if (this.animationFrameId !== undefined) {
|
||||
cancelAnimationFrame(this.animationFrameId);
|
||||
this.animationFrameId = undefined;
|
||||
}
|
||||
this.draw();
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isVisible && this.animationFrameId === undefined) {
|
||||
this.lastFrameTime = 0;
|
||||
this.animationFrameId = requestAnimationFrame(this.animate);
|
||||
}
|
||||
};
|
||||
|
||||
private readonly animate = (timestamp: number): void => {
|
||||
this.animationFrameId = undefined;
|
||||
if (!this.isVisible || this.isReducedMotion) {
|
||||
return;
|
||||
}
|
||||
|
||||
const elapsed = this.lastFrameTime === 0 ? 0 : Math.min(timestamp - this.lastFrameTime, 50);
|
||||
this.lastFrameTime = timestamp;
|
||||
this.update(elapsed / 1000);
|
||||
this.draw();
|
||||
this.animationFrameId = requestAnimationFrame(this.animate);
|
||||
};
|
||||
|
||||
private resizeCanvas(): void {
|
||||
if (!this.rainCanvas) return;
|
||||
|
||||
const canvas = this.rainCanvas.nativeElement;
|
||||
const parent = canvas.parentElement;
|
||||
const bounds = parent ? parent.getBoundingClientRect() : canvas.getBoundingClientRect();
|
||||
const width = Math.max(bounds.width, window.innerWidth || 320);
|
||||
const height = Math.max(bounds.height, 700);
|
||||
const pixelRatio = Math.min(window.devicePixelRatio || 1, 2);
|
||||
|
||||
canvas.width = Math.max(1, Math.floor(width * pixelRatio));
|
||||
canvas.height = Math.max(1, Math.floor(height * pixelRatio));
|
||||
this.context?.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);
|
||||
this.createColumns(width, height);
|
||||
this.draw();
|
||||
}
|
||||
|
||||
private createColumns(width: number, height: number): void {
|
||||
const fontSize = Math.max(14, Math.min(20, width / 58));
|
||||
const columnCount = Math.max(24, Math.floor(width / (fontSize * 0.72)));
|
||||
this.columns.length = 0;
|
||||
|
||||
for (let index = 0; index < columnCount; index += 1) {
|
||||
const length = Math.floor(Math.random() * 25) + 14;
|
||||
this.columns.push({
|
||||
x: (index / columnCount) * width + Math.random() * fontSize * 0.6,
|
||||
y: -Math.random() * (height * 0.9) - length * fontSize,
|
||||
speed: Math.floor(Math.random() * 130) + 150,
|
||||
length,
|
||||
opacity: 0.25 + Math.random() * 0.65,
|
||||
characters: Array.from({ length }, () => this.randomCharacter())
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private update(deltaSeconds: number): void {
|
||||
if (!this.rainCanvas) return;
|
||||
const parent = this.rainCanvas.nativeElement.parentElement;
|
||||
const height = parent ? parent.clientHeight : this.rainCanvas.nativeElement.clientHeight;
|
||||
const width = parent ? parent.clientWidth : this.rainCanvas.nativeElement.clientWidth;
|
||||
const fontSize = Math.max(14, Math.min(20, width / 58));
|
||||
|
||||
for (const column of this.columns) {
|
||||
column.y += column.speed * deltaSeconds;
|
||||
if (column.y - column.length * fontSize > height) {
|
||||
column.y = -Math.random() * height * 0.75 - column.length * fontSize;
|
||||
column.speed = Math.floor(Math.random() * 130) + 150;
|
||||
column.length = Math.floor(Math.random() * 25) + 14;
|
||||
column.opacity = 0.25 + Math.random() * 0.65;
|
||||
column.characters = Array.from({ length: column.length }, () => this.randomCharacter());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private draw(): void {
|
||||
if (!this.rainCanvas || !this.context) return;
|
||||
|
||||
const canvas = this.rainCanvas.nativeElement;
|
||||
const parent = canvas.parentElement;
|
||||
const width = parent ? parent.clientWidth : canvas.clientWidth;
|
||||
const height = parent ? parent.clientHeight : canvas.clientHeight;
|
||||
const fontSize = Math.max(14, Math.min(20, width / 58));
|
||||
|
||||
this.context.clearRect(0, 0, width, height);
|
||||
this.context.font = `${fontSize}px monospace`;
|
||||
this.context.textAlign = 'center';
|
||||
this.context.textBaseline = 'top';
|
||||
this.context.shadowBlur = 0;
|
||||
|
||||
for (const column of this.columns) {
|
||||
for (let i = 0; i < column.characters.length; i++) {
|
||||
const charY = column.y + i * fontSize;
|
||||
if (charY < -fontSize || charY > height) continue;
|
||||
|
||||
const isHead = i === 0;
|
||||
const isHighlight = i === Math.floor(column.length * 0.35) && column.opacity > 0.4;
|
||||
const trailAlpha = column.opacity * (1 - i / (column.length * 1.15));
|
||||
const edgeFade = Math.min(1, Math.max(0, (height - charY) / (fontSize * 5)));
|
||||
const alpha = Math.max(0, trailAlpha * edgeFade);
|
||||
|
||||
if (alpha <= 0) continue;
|
||||
|
||||
this.context.fillStyle = isHead
|
||||
? `rgba(220, 255, 226, ${Math.min(1, alpha + 0.35)})`
|
||||
: isHighlight
|
||||
? `rgba(80, 255, 126, ${alpha})`
|
||||
: `rgba(18, 174, 78, ${alpha})`;
|
||||
|
||||
if (isHead || isHighlight) {
|
||||
this.context.shadowColor = 'rgba(37, 255, 104, 0.85)';
|
||||
this.context.shadowBlur = isHead ? 9 : 5;
|
||||
}
|
||||
|
||||
this.context.fillText(column.characters[i], column.x, charY);
|
||||
this.context.shadowBlur = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private randomCharacter(): string {
|
||||
const r = Math.random();
|
||||
const set = r < 0.48 ? BINARY_CHARS : r < 0.68 ? HEX_CHARS : r < 0.72 ? CODE_CHARS : TERM_CHARS;
|
||||
return set[Math.floor(Math.random() * set.length)];
|
||||
}
|
||||
|
||||
onSubmit(): void {
|
||||
if (this.contactForm.invalid) {
|
||||
this.contactForm.markAllAsTouched();
|
||||
|
|
@ -285,7 +79,6 @@ export class ContactSectionComponent implements OnInit, AfterViewInit, OnDestroy
|
|||
this.isSuccess.set(true);
|
||||
},
|
||||
error: () => {
|
||||
// En caso de fallo de red en webhook, la experiencia del usuario no se interrumpe
|
||||
this.isSubmitting.set(false);
|
||||
this.isSuccess.set(true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -449,3 +449,76 @@
|
|||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
/* Light Mode Adaptations (Vercel-inspired Glassmorphism) */
|
||||
:host-context([data-theme='zen-light']) .project-card,
|
||||
:host-context(body.theme-light) .project-card {
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .project-card:hover,
|
||||
:host-context(body.theme-light) .project-card:hover {
|
||||
background: #ffffff;
|
||||
border-color: var(--zen-accent-kintsugi);
|
||||
box-shadow: 0 12px 28px rgba(217, 119, 6, 0.12);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .project-card.is-selected,
|
||||
:host-context(body.theme-light) .project-card.is-selected {
|
||||
border-color: var(--zen-accent-kintsugi);
|
||||
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12), 0 0 20px rgba(217, 119, 6, 0.15);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .project-image-slot,
|
||||
:host-context(body.theme-light) .project-image-slot {
|
||||
background-color: #f1f5f9;
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .tech-blueprint-slot,
|
||||
:host-context(body.theme-light) .tech-blueprint-slot {
|
||||
background:
|
||||
radial-gradient(circle at center, rgba(3, 105, 161, 0.06) 0%, transparent 70%),
|
||||
#f8fafc;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .blueprint-grid-overlay,
|
||||
:host-context(body.theme-light) .blueprint-grid-overlay {
|
||||
background-image:
|
||||
linear-gradient(rgba(3, 105, 161, 0.08) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(3, 105, 161, 0.08) 1px, transparent 1px);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .project-detail-overlay,
|
||||
:host-context(body.theme-light) .project-detail-overlay {
|
||||
background: rgba(15, 23, 42, 0.45);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .carousel-nav-btn,
|
||||
:host-context(body.theme-light) .carousel-nav-btn {
|
||||
background: rgba(15, 23, 42, 0.04);
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
color: var(--zen-text-primary);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .carousel-nav-btn:hover,
|
||||
:host-context(body.theme-light) .carousel-nav-btn:hover {
|
||||
background: rgba(15, 23, 42, 0.08);
|
||||
border-color: var(--zen-accent-kintsugi);
|
||||
color: var(--zen-accent-kintsugi);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .tech-chip,
|
||||
:host-context(body.theme-light) .tech-chip {
|
||||
background: rgba(15, 23, 42, 0.04);
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
color: var(--zen-text-secondary);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .carousel-dot .dot-inner,
|
||||
:host-context(body.theme-light) .carousel-dot .dot-inner {
|
||||
background: rgba(15, 23, 42, 0.15);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -381,3 +381,95 @@
|
|||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* Adaptación a Modo Claro (Vercel-inspired Glassmorphism) */
|
||||
:host-context([data-theme='zen-light']) .project-detail-panel,
|
||||
:host-context(body.theme-light) .project-detail-panel {
|
||||
background: #ffffff;
|
||||
border-color: rgba(15, 23, 42, 0.1);
|
||||
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .main-image-viewport,
|
||||
:host-context(body.theme-light) .main-image-viewport {
|
||||
background: #f8fafc;
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .main-image-viewport img,
|
||||
:host-context(body.theme-light) .main-image-viewport img {
|
||||
background-color: #f8fafc;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .thumb-btn,
|
||||
:host-context(body.theme-light) .thumb-btn {
|
||||
background: #f1f5f9;
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .thumb-btn:hover,
|
||||
:host-context(body.theme-light) .thumb-btn:hover {
|
||||
border-color: rgba(15, 23, 42, 0.25);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .close-button,
|
||||
:host-context(body.theme-light) .close-button {
|
||||
background: rgba(15, 23, 42, 0.05);
|
||||
border-color: rgba(15, 23, 42, 0.1);
|
||||
color: var(--zen-text-primary);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .close-button:hover,
|
||||
:host-context(body.theme-light) .close-button:hover {
|
||||
background: rgba(15, 23, 42, 0.1);
|
||||
border-color: var(--zen-accent-kintsugi);
|
||||
color: var(--zen-accent-kintsugi);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .meta-pill,
|
||||
:host-context(body.theme-light) .meta-pill {
|
||||
background: rgba(15, 23, 42, 0.04);
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
color: var(--zen-text-primary);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .meta-pill.subtle,
|
||||
:host-context(body.theme-light) .meta-pill.subtle {
|
||||
color: var(--zen-text-secondary);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .detail-block,
|
||||
:host-context(body.theme-light) .detail-block {
|
||||
background: #f8fafc;
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .detail-tags span,
|
||||
:host-context(body.theme-light) .detail-tags span {
|
||||
background: rgba(15, 23, 42, 0.04);
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
color: var(--zen-text-secondary);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .technical-blueprint-panel,
|
||||
:host-context(body.theme-light) .technical-blueprint-panel {
|
||||
background:
|
||||
radial-gradient(circle at center, rgba(3, 105, 161, 0.05) 0%, transparent 70%),
|
||||
#f8fafc;
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .blueprint-circuit-bg,
|
||||
:host-context(body.theme-light) .blueprint-circuit-bg {
|
||||
background-image:
|
||||
linear-gradient(rgba(3, 105, 161, 0.08) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(3, 105, 161, 0.08) 1px, transparent 1px);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .blueprint-specs-list .spec-item,
|
||||
:host-context(body.theme-light) .blueprint-specs-list .spec-item {
|
||||
background: #ffffff;
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
color: var(--zen-text-secondary);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -209,6 +209,18 @@
|
|||
box-shadow: 0 0 10px rgba(226, 185, 74, 0.3);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .submit-firm-btn,
|
||||
:host-context(body.theme-light) .submit-firm-btn {
|
||||
background: #0f172a;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .submit-firm-btn:hover:not(:disabled),
|
||||
:host-context(body.theme-light) .submit-firm-btn:hover:not(:disabled) {
|
||||
background: #1e293b;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
|
||||
}
|
||||
|
||||
.submit-firm-btn:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,58 @@
|
|||
50% { opacity: 1; transform: scale(1.15); }
|
||||
}
|
||||
|
||||
.zen-scroll-hint {
|
||||
position: absolute;
|
||||
bottom: 28px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 6px 14px;
|
||||
background: rgba(12, 14, 20, 0.7);
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--zen-border-subtle);
|
||||
border-radius: var(--zen-radius-xs);
|
||||
z-index: 20;
|
||||
transition: opacity 0.4s ease, transform 0.4s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
.zen-scroll-hint.faded {
|
||||
opacity: 0;
|
||||
transform: translate(-50%, 12px);
|
||||
}
|
||||
.scroll-mouse-icon {
|
||||
width: 14px;
|
||||
height: 22px;
|
||||
border: 1.5px solid var(--zen-accent-kintsugi);
|
||||
border-radius: 8px;
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
.scroll-wheel-dot {
|
||||
width: 2.5px;
|
||||
height: 4px;
|
||||
background: var(--zen-accent-kintsugi);
|
||||
border-radius: 1px;
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
animation: scrollWheelPulse 1.6s infinite ease-in-out;
|
||||
}
|
||||
@keyframes scrollWheelPulse {
|
||||
0% { transform: translate(-50%, 0); opacity: 1; }
|
||||
100% { transform: translate(-50%, 8px); opacity: 0; }
|
||||
}
|
||||
.scroll-hint-text {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--zen-text-secondary);
|
||||
}
|
||||
|
||||
.lateral-panel {
|
||||
position: absolute; z-index: 10; width: min(100%, 25rem); opacity: 0; visibility: hidden; pointer-events: none;
|
||||
transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
|
||||
|
|
@ -221,6 +273,27 @@
|
|||
background: rgba(78, 155, 111, 0.12);
|
||||
}
|
||||
|
||||
:host-context(body.theme-light) {
|
||||
.hero-sticky-stage { background: #d9d9d9; }
|
||||
.lateral-panel *, .mobile-only * { text-shadow: none; }
|
||||
.zen-loader-pill, .zen-scroll-hint { background: var(--zen-bg-overlay); }
|
||||
.lead-footer { border-color: var(--zen-border-subtle); }
|
||||
.zen-chip { box-shadow: var(--zen-shadow-sm); }
|
||||
.zen-chip:not(.chip-gold):not(.chip-matcha) {
|
||||
background: var(--zen-bg-surface);
|
||||
border-color: var(--zen-border-subtle);
|
||||
}
|
||||
.mobile-lead-card, .mobile-pillar-card {
|
||||
background: var(--zen-bg-surface);
|
||||
box-shadow: var(--zen-shadow-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.lateral-panel, .zen-scroll-hint { transition: none; }
|
||||
.loader-dot, .scroll-wheel-dot { animation: none; }
|
||||
}
|
||||
|
||||
.mobile-only {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,6 +130,14 @@
|
|||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- Indicador Zen de Scroll Interactivo (se oculta al avanzar fases) -->
|
||||
<div class="zen-scroll-hint" [class.faded]="activePhase() > 1" aria-hidden="true">
|
||||
<span class="scroll-mouse-icon">
|
||||
<span class="scroll-wheel-dot"></span>
|
||||
</span>
|
||||
<span class="scroll-hint-text">SCROLL // DESARMAR ARQUITECTURA</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
import { TestBed } from '@angular/core/testing';
|
||||
import { ThemeService } from '../../../application/services/theme.service';
|
||||
import { Hero3dComponent } from './hero-3d.component';
|
||||
|
||||
describe('Hero3dComponent theme sequences', () => {
|
||||
it('keeps the canvas when switching themes and finishes loading after a failed frame', async () => {
|
||||
const width = window.innerWidth;
|
||||
const savedTheme = localStorage.getItem('portfolio_theme_mode');
|
||||
const sources: string[] = [];
|
||||
Object.defineProperty(window, 'innerWidth', { configurable: true, value: 1440 });
|
||||
spyOn(window, 'Image').and.callFake(function () { return {
|
||||
get src() { return ''; },
|
||||
set src(value: string) { sources.push(value); },
|
||||
naturalWidth: 0,
|
||||
decode: () => sources.length === 1 ? Promise.reject(new Error('Failed frame')) : Promise.resolve()
|
||||
} as HTMLImageElement; });
|
||||
|
||||
try {
|
||||
await TestBed.configureTestingModule({ imports: [Hero3dComponent] }).compileComponents();
|
||||
const theme = TestBed.inject(ThemeService);
|
||||
theme.setTheme('light');
|
||||
const fixture = TestBed.createComponent(Hero3dComponent);
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
fixture.detectChanges();
|
||||
const canvas = fixture.nativeElement.querySelector('canvas');
|
||||
expect(sources.length).toBe(240);
|
||||
expect(sources.every(src => src.includes('/thinkpad-sequence-light/'))).toBeTrue();
|
||||
expect(fixture.nativeElement.querySelector('.zen-loader-pill')).toBeNull();
|
||||
|
||||
theme.setTheme('dark');
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
fixture.detectChanges();
|
||||
expect(sources.length).toBe(480);
|
||||
expect(sources.slice(240).every(src => src.includes('/thinkpad-sequence/'))).toBeTrue();
|
||||
expect(fixture.nativeElement.querySelector('canvas')).toBe(canvas);
|
||||
expect(fixture.nativeElement.querySelector('.zen-loader-pill')).toBeNull();
|
||||
fixture.destroy();
|
||||
} finally {
|
||||
Object.defineProperty(window, 'innerWidth', { configurable: true, value: width });
|
||||
TestBed.inject(ThemeService).setTheme(savedTheme === 'light' ? 'light' : 'dark');
|
||||
if (savedTheme === null) localStorage.removeItem('portfolio_theme_mode');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
@ -7,16 +7,17 @@ import {
|
|||
ElementRef,
|
||||
ChangeDetectionStrategy,
|
||||
signal,
|
||||
effect,
|
||||
inject,
|
||||
NgZone,
|
||||
input
|
||||
} from '@angular/core';
|
||||
import { I18nService } from '../../../application/services/i18n.service';
|
||||
import { ThemeMode, ThemeService } from '../../../application/services/theme.service';
|
||||
|
||||
const TOTAL_FRAMES = 240;
|
||||
const LERP_FACTOR = 0.09;
|
||||
const SHARED_IMAGE_CACHE: HTMLImageElement[] = new Array(TOTAL_FRAMES + 1);
|
||||
let isPreloadDone = false;
|
||||
const SHARED_IMAGE_CACHE: Record<ThemeMode, HTMLImageElement[]> = { dark: [], light: [] };
|
||||
|
||||
@Component({
|
||||
selector: 'app-hero-3d',
|
||||
|
|
@ -32,6 +33,7 @@ export class Hero3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
@ViewChild('canvas') private canvasRef!: ElementRef<HTMLCanvasElement>;
|
||||
|
||||
protected readonly i18n = inject(I18nService);
|
||||
private readonly themeService = inject(ThemeService);
|
||||
private readonly ngZone = inject(NgZone);
|
||||
|
||||
protected readonly activePhase = signal<number>(1);
|
||||
|
|
@ -39,6 +41,8 @@ export class Hero3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
protected readonly isLoaded = signal<boolean>(false);
|
||||
|
||||
private ctx: CanvasRenderingContext2D | null = null;
|
||||
private images: HTMLImageElement[] = [];
|
||||
private readonly isDesktop = signal(window.innerWidth > 900);
|
||||
private targetFrame = 1;
|
||||
private currentInterpolatedFrame = 1;
|
||||
private lastRenderedFrame = 0;
|
||||
|
|
@ -49,19 +53,31 @@ export class Hero3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
private intersectionObserver?: IntersectionObserver;
|
||||
private mediaQueryList?: MediaQueryList;
|
||||
|
||||
constructor() {
|
||||
effect((onCleanup) => {
|
||||
const mode = this.themeService.themeMode();
|
||||
let active = true;
|
||||
onCleanup(() => { active = false; });
|
||||
this.images = SHARED_IMAGE_CACHE[mode];
|
||||
this.loadProgress.set(0);
|
||||
this.isLoaded.set(false);
|
||||
this.lastRenderedFrame = 0;
|
||||
this.renderFrame(Math.round(this.currentInterpolatedFrame));
|
||||
if (!this.isDesktop()) {
|
||||
this.isLoaded.set(true);
|
||||
} else {
|
||||
this.preloadImages(mode, () => active);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
const isBottom = this.initialPosition() === 'bottom';
|
||||
this.targetFrame = isBottom ? TOTAL_FRAMES : 1;
|
||||
this.currentInterpolatedFrame = isBottom ? TOTAL_FRAMES : 1;
|
||||
this.lastRenderedFrame = isBottom ? TOTAL_FRAMES : 1;
|
||||
this.activePhase.set(isBottom ? 3 : 1);
|
||||
this.targetFrame = 1;
|
||||
this.currentInterpolatedFrame = 1;
|
||||
this.lastRenderedFrame = 1;
|
||||
this.activePhase.set(1);
|
||||
|
||||
this.checkReducedMotion();
|
||||
if (typeof window !== 'undefined' && window.innerWidth <= 900) {
|
||||
this.isLoaded.set(true);
|
||||
} else {
|
||||
this.preloadImages();
|
||||
}
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
|
|
@ -91,41 +107,9 @@ export class Hero3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
});
|
||||
|
||||
if (typeof window !== 'undefined' && window.innerWidth > 900) {
|
||||
const container = this.containerRef.nativeElement;
|
||||
const isBottom = this.initialPosition() === 'bottom';
|
||||
|
||||
if (isBottom) {
|
||||
const scrollableDistance = container.offsetHeight - window.innerHeight;
|
||||
window.scrollTo({ top: scrollableDistance > 0 ? scrollableDistance : 3000, behavior: 'instant' });
|
||||
this.targetFrame = TOTAL_FRAMES;
|
||||
this.currentInterpolatedFrame = TOTAL_FRAMES;
|
||||
this.lastRenderedFrame = TOTAL_FRAMES;
|
||||
this.activePhase.set(3);
|
||||
} else {
|
||||
window.scrollTo({ top: 0, behavior: 'instant' });
|
||||
this.targetFrame = 1;
|
||||
this.currentInterpolatedFrame = 1;
|
||||
this.lastRenderedFrame = 1;
|
||||
this.activePhase.set(1);
|
||||
}
|
||||
|
||||
this.onResize();
|
||||
this.onScroll();
|
||||
this.renderFrame(Math.round(this.currentInterpolatedFrame));
|
||||
|
||||
// Reasegurar la posición al desbloquear el scroll
|
||||
if (isBottom) {
|
||||
setTimeout(() => {
|
||||
const maxDist = container.offsetHeight - window.innerHeight;
|
||||
if (maxDist > 0) {
|
||||
window.scrollTo({ top: maxDist, behavior: 'instant' });
|
||||
}
|
||||
this.targetFrame = TOTAL_FRAMES;
|
||||
this.currentInterpolatedFrame = TOTAL_FRAMES;
|
||||
this.lastRenderedFrame = TOTAL_FRAMES;
|
||||
this.activePhase.set(3);
|
||||
this.renderFrame(TOTAL_FRAMES);
|
||||
}, 780);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -147,53 +131,45 @@ export class Hero3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
});
|
||||
}
|
||||
|
||||
private preloadImages(): void {
|
||||
if (isPreloadDone) {
|
||||
this.loadProgress.set(100);
|
||||
this.isLoaded.set(true);
|
||||
this.renderFrame(this.targetFrame);
|
||||
return;
|
||||
}
|
||||
|
||||
private preloadImages(mode: ThemeMode, isCurrent: () => boolean): void {
|
||||
const images = this.images;
|
||||
let loaded = 0;
|
||||
const startFrame = this.initialPosition() === 'bottom' ? TOTAL_FRAMES : 1;
|
||||
const startFrame = this.isReducedMotion ? 1 : this.initialPosition() === 'bottom'
|
||||
? TOTAL_FRAMES : Math.round(this.currentInterpolatedFrame);
|
||||
|
||||
const loadSingle = (index: number, cb?: () => void) => {
|
||||
if (SHARED_IMAGE_CACHE[index]?.complete) {
|
||||
const loadSingle = async (index: number) => {
|
||||
const img = images[index] ??= new Image();
|
||||
if (!img.src) img.src = this.getFramePath(mode, index);
|
||||
try {
|
||||
await img.decode();
|
||||
} catch {
|
||||
// Un fotograma fallido no bloquea el resto de la secuencia.
|
||||
} finally {
|
||||
loaded++;
|
||||
cb?.();
|
||||
return;
|
||||
}
|
||||
const img = new Image();
|
||||
img.src = this.getFramePath(index);
|
||||
img.onload = () => {
|
||||
SHARED_IMAGE_CACHE[index] = img;
|
||||
loaded++;
|
||||
cb?.();
|
||||
if (loaded % 12 === 0 || loaded === TOTAL_FRAMES) {
|
||||
this.loadProgress.set(Math.round((loaded / TOTAL_FRAMES) * 100));
|
||||
if (loaded === TOTAL_FRAMES) {
|
||||
isPreloadDone = true;
|
||||
this.isLoaded.set(true);
|
||||
if (isCurrent()) {
|
||||
if (loaded % 12 === 0 || loaded === TOTAL_FRAMES) {
|
||||
this.loadProgress.set(Math.round((loaded / TOTAL_FRAMES) * 100));
|
||||
this.isLoaded.set(loaded === TOTAL_FRAMES);
|
||||
}
|
||||
if (loaded === 1 || loaded === TOTAL_FRAMES) {
|
||||
this.renderFrame(this.isReducedMotion ? 1 : Math.round(this.currentInterpolatedFrame));
|
||||
}
|
||||
}
|
||||
};
|
||||
img.onerror = () => {
|
||||
loaded++;
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
loadSingle(startFrame, () => {
|
||||
this.renderFrame(startFrame);
|
||||
void loadSingle(startFrame).then(() => {
|
||||
if (!isCurrent()) return;
|
||||
for (let i = 1; i <= TOTAL_FRAMES; i++) {
|
||||
if (i !== startFrame) loadSingle(i);
|
||||
if (i !== startFrame) void loadSingle(i);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private getFramePath(index: number): string {
|
||||
private getFramePath(mode: ThemeMode, index: number): string {
|
||||
const padded = String(index).padStart(3, '0');
|
||||
return `/assets/images/thinkpad-sequence/ezgif-frame-${padded}.jpg`;
|
||||
const folder = mode === 'light' ? 'thinkpad-sequence-light' : 'thinkpad-sequence';
|
||||
return `/assets/images/${folder}/ezgif-frame-${padded}.jpg`;
|
||||
}
|
||||
|
||||
private onScroll = (): void => {
|
||||
|
|
@ -222,6 +198,7 @@ export class Hero3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
};
|
||||
|
||||
private onResize = (): void => {
|
||||
this.isDesktop.set(window.innerWidth > 900);
|
||||
if (typeof window !== 'undefined' && window.innerWidth <= 900) {
|
||||
if (this.animationFrameId !== null) {
|
||||
cancelAnimationFrame(this.animationFrameId);
|
||||
|
|
@ -304,30 +281,30 @@ export class Hero3dComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
|
||||
private getBestFrame(targetIndex: number): HTMLImageElement | null {
|
||||
const rounded = Math.min(Math.max(1, Math.round(targetIndex)), TOTAL_FRAMES);
|
||||
if (SHARED_IMAGE_CACHE[rounded]?.complete) return SHARED_IMAGE_CACHE[rounded];
|
||||
if (this.images[rounded]?.naturalWidth) return this.images[rounded];
|
||||
|
||||
for (let offset = 1; offset < TOTAL_FRAMES; offset++) {
|
||||
const prev = rounded - offset;
|
||||
if (prev >= 1 && SHARED_IMAGE_CACHE[prev]?.complete) return SHARED_IMAGE_CACHE[prev];
|
||||
if (prev >= 1 && this.images[prev]?.naturalWidth) return this.images[prev];
|
||||
const next = rounded + offset;
|
||||
if (next <= TOTAL_FRAMES && SHARED_IMAGE_CACHE[next]?.complete) return SHARED_IMAGE_CACHE[next];
|
||||
if (next <= TOTAL_FRAMES && this.images[next]?.naturalWidth) return this.images[next];
|
||||
}
|
||||
return SHARED_IMAGE_CACHE[1]?.complete ? SHARED_IMAGE_CACHE[1] : null;
|
||||
return null;
|
||||
}
|
||||
|
||||
private renderFrame(targetIndex: number): void {
|
||||
if (!this.ctx || !this.canvasRef) return;
|
||||
this.resizeCanvas();
|
||||
|
||||
const img = this.getBestFrame(targetIndex);
|
||||
if (!img || !img.complete) return;
|
||||
|
||||
const canvas = this.canvasRef.nativeElement;
|
||||
const ctx = this.ctx;
|
||||
|
||||
ctx.fillStyle = '#000000';
|
||||
ctx.fillStyle = this.themeService.isLightMode() ? '#d9d9d9' : '#000000';
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
const img = this.getBestFrame(targetIndex);
|
||||
if (!img) return;
|
||||
|
||||
const imgAspect = 16 / 9;
|
||||
const drawW = canvas.width;
|
||||
const drawH = canvas.width / imgAspect;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,284 @@
|
|||
:host {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.vercel-hero-stage {
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding-top: clamp(4.5rem, 8vh, 6.5rem);
|
||||
background: var(--zen-bg-base, #f8f9fb);
|
||||
color: var(--zen-text-primary, #0f172a);
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Rejilla de fondo ultra-limpia estilo Vercel */
|
||||
.vercel-bg-grid {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
|
||||
background-size: 28px 28px;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.vercel-hero-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 1540px;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
padding: 2rem clamp(1rem, 3vw, 2.5rem);
|
||||
display: grid;
|
||||
grid-template-columns: 1.25fr 1fr 0.85fr;
|
||||
align-items: center;
|
||||
gap: clamp(2rem, 4vw, 4rem);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Columna Izquierda */
|
||||
.hero-left-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.hero-status-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
||||
border-radius: 9999px;
|
||||
padding: 0.35rem 0.85rem;
|
||||
}
|
||||
|
||||
.status-pulse-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #16a34a;
|
||||
box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
|
||||
}
|
||||
|
||||
.status-label {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 700;
|
||||
color: #000000;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.hero-main-heading {
|
||||
margin: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-size: clamp(2.5rem, 5vw, 4.25rem);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.04em;
|
||||
line-height: 1.05;
|
||||
color: var(--zen-text-primary, #0f172a);
|
||||
}
|
||||
|
||||
.hero-subtext {
|
||||
margin: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-size: clamp(1rem, 1.4vw, 1.15rem);
|
||||
color: var(--zen-text-secondary, #475569);
|
||||
line-height: 1.5;
|
||||
max-width: 520px;
|
||||
}
|
||||
|
||||
.hero-actions-deck {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.85rem;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-primary-pill {
|
||||
background: #000000;
|
||||
color: #ffffff;
|
||||
border: 1px solid #000000;
|
||||
border-radius: 9999px;
|
||||
padding: 0.75rem 1.6rem;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.btn-primary-pill:hover {
|
||||
background: #27272a;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.btn-secondary-pill {
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
border: 1px solid rgba(0, 0, 0, 0.12);
|
||||
border-radius: 9999px;
|
||||
padding: 0.75rem 1.6rem;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.btn-secondary-pill:hover {
|
||||
background: #f4f4f5;
|
||||
border-color: #000000;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-ghost-pill {
|
||||
background: transparent;
|
||||
color: #52525b;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 9999px;
|
||||
padding: 0.75rem 1.25rem;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.btn-ghost-pill:hover {
|
||||
color: #000000;
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
/* Columna Central: Prisma Espectral Vercel */
|
||||
.hero-prism-col {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 380px;
|
||||
}
|
||||
|
||||
.prism-spectral-halo {
|
||||
position: absolute;
|
||||
width: 360px;
|
||||
height: 360px;
|
||||
border-radius: 50%;
|
||||
background: conic-gradient(
|
||||
from 180deg at 50% 50%,
|
||||
rgba(244, 63, 94, 0.75) 0deg,
|
||||
rgba(245, 158, 11, 0.75) 60deg,
|
||||
rgba(16, 185, 129, 0.75) 130deg,
|
||||
rgba(6, 182, 212, 0.75) 200deg,
|
||||
rgba(139, 92, 246, 0.75) 270deg,
|
||||
rgba(244, 63, 94, 0.75) 360deg
|
||||
);
|
||||
filter: blur(52px);
|
||||
opacity: 0.75;
|
||||
animation: vercelAuraPulse 8s infinite alternate ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes vercelAuraPulse {
|
||||
0% {
|
||||
transform: scale(0.92) rotate(0deg);
|
||||
opacity: 0.65;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1.08) rotate(360deg);
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
.prism-black-triangle {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 150px;
|
||||
height: 130px;
|
||||
background: #000000;
|
||||
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
|
||||
animation: vercelTriangleFloat 6s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes vercelTriangleFloat {
|
||||
0% { transform: translateY(0px); }
|
||||
100% { transform: translateY(-10px); }
|
||||
}
|
||||
|
||||
/* Columna Derecha */
|
||||
.hero-right-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-feature-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
color: #3f3f46;
|
||||
}
|
||||
|
||||
.feature-bullet {
|
||||
color: #000000;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
/* Barra Inferior Marquee */
|
||||
.vercel-marquee-slot {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 1100px) {
|
||||
.vercel-hero-content {
|
||||
grid-template-columns: 1fr;
|
||||
text-align: center;
|
||||
gap: 2.5rem;
|
||||
}
|
||||
|
||||
.hero-left-col {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-subtext {
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
.hero-actions-deck {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.hero-right-col {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-feature-list {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
<div class="vercel-hero-stage">
|
||||
<!-- Fondo con rejilla ultra-sutil y aura radial estilo Vercel -->
|
||||
<div class="vercel-bg-grid" aria-hidden="true"></div>
|
||||
|
||||
<div class="vercel-hero-content">
|
||||
<!-- Columna Izquierda: Titular & Llamados a la Acción -->
|
||||
<div class="hero-left-col">
|
||||
<div class="hero-status-pill">
|
||||
<span class="status-pulse-dot"></span>
|
||||
<span class="status-label">{{ i18n.t().p1LeadStatus }}</span>
|
||||
</div>
|
||||
|
||||
<h1 class="hero-main-heading">
|
||||
{{ i18n.currentLang() === 'es' ? 'Arquitectura Cloud & Sistemas Empresariales' : 'Cloud Architecture & Enterprise Systems' }}
|
||||
</h1>
|
||||
|
||||
<p class="hero-subtext">
|
||||
{{ i18n.currentLang() === 'es'
|
||||
? 'Diseñando software de alta concurrencia con .NET 9 Clean Architecture, Angular Signals y telemetría autónoma.'
|
||||
: 'Engineering high-concurrency systems with .NET 9 Clean Architecture, Angular Signals, and autonomous telemetry.' }}
|
||||
</p>
|
||||
|
||||
<div class="hero-actions-deck">
|
||||
<button type="button" class="btn-primary-pill" (click)="explore.emit()">
|
||||
{{ i18n.currentLang() === 'es' ? 'Explorar Proyectos' : 'Explore Projects' }}
|
||||
</button>
|
||||
<button type="button" class="btn-secondary-pill" (click)="terminal.emit()">
|
||||
{{ i18n.currentLang() === 'es' ? 'Probar Terminal' : 'Launch Terminal' }}
|
||||
</button>
|
||||
<button type="button" class="btn-ghost-pill" (click)="contact.emit()">
|
||||
{{ i18n.currentLang() === 'es' ? 'Contacto' : 'Get in Touch' }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Centro: Prisma Zen Vercel con Refracción Espectral Multicolor -->
|
||||
<div class="hero-prism-col" aria-hidden="true">
|
||||
<div class="prism-spectral-halo"></div>
|
||||
<div class="prism-black-triangle"></div>
|
||||
</div>
|
||||
|
||||
<!-- Columna Derecha: Bullets de Especialidad -->
|
||||
<div class="hero-right-col">
|
||||
<ul class="hero-feature-list">
|
||||
<li class="feature-item">
|
||||
<span class="feature-bullet">●</span>
|
||||
<span class="feature-text">{{ i18n.currentLang() === 'es' ? 'Arquitectura Hexagonal & CQRS' : 'Hexagonal Architecture & CQRS' }}</span>
|
||||
</li>
|
||||
<li class="feature-item">
|
||||
<span class="feature-bullet">●</span>
|
||||
<span class="feature-text">{{ i18n.currentLang() === 'es' ? 'Frontend Angular Signals 60 FPS' : 'Angular Signals Frontend 60 FPS' }}</span>
|
||||
</li>
|
||||
<li class="feature-item">
|
||||
<span class="feature-bullet">●</span>
|
||||
<span class="feature-text">{{ i18n.currentLang() === 'es' ? 'Cloud OCI, AWS & SecOps' : 'Cloud OCI, AWS & SecOps' }}</span>
|
||||
</li>
|
||||
<li class="feature-item">
|
||||
<span class="feature-bullet">●</span>
|
||||
<span class="feature-text">{{ i18n.currentLang() === 'es' ? 'Telemetría & Agentes Autónomos' : 'Telemetry & Autonomous Agents' }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Barra Inferior: Marcas & Tecnologías estilo Vercel -->
|
||||
<div class="vercel-marquee-slot">
|
||||
<app-tech-stack-strip></app-tech-stack-strip>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
import { Component, ChangeDetectionStrategy, output, inject } from '@angular/core';
|
||||
import { I18nService } from '../../../application/services/i18n.service';
|
||||
import { TechStackStripComponent } from '../../shared/components/tech-stack-strip/tech-stack-strip.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-hero-vercel',
|
||||
standalone: true,
|
||||
imports: [TechStackStripComponent],
|
||||
templateUrl: './hero-vercel.component.html',
|
||||
styleUrl: './hero-vercel.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class HeroVercelComponent {
|
||||
protected readonly i18n = inject(I18nService);
|
||||
|
||||
readonly explore = output<void>();
|
||||
readonly terminal = output<void>();
|
||||
readonly contact = output<void>();
|
||||
}
|
||||
|
|
@ -2,68 +2,91 @@
|
|||
display: block;
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
background-color: #121517;
|
||||
background-color: var(--zen-bg-base, #121517);
|
||||
color: var(--zen-text-primary);
|
||||
}
|
||||
|
||||
.landing-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
background-color: #121517;
|
||||
background-color: var(--zen-bg-base, #121517);
|
||||
}
|
||||
|
||||
.landing-container.transitioning-lock {
|
||||
overflow: hidden !important;
|
||||
height: 100vh !important;
|
||||
max-height: 100vh !important;
|
||||
}
|
||||
/* ==============================================================================
|
||||
NAVBAR FLOTANTE GLASSMORPHISM (Barra desprendida con vidrio esmerilado)
|
||||
============================================================================== */
|
||||
|
||||
/* Header Minimalista Flotante */
|
||||
.zen-header {
|
||||
--glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(12, 14, 20, 0.55);
|
||||
--glass-edge: rgba(255, 255, 255, 0.09);
|
||||
--glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
--glass-track: rgba(255, 255, 255, 0.04);
|
||||
--glass-chip: rgba(255, 255, 255, 0.1);
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 12px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 56px;
|
||||
padding: 0 clamp(0.75rem, 2vw, 2rem);
|
||||
background: rgba(10, 10, 11, 0.85);
|
||||
backdrop-filter: blur(14px) saturate(160%);
|
||||
border-bottom: 1px solid var(--zen-border-subtle);
|
||||
gap: var(--space-3);
|
||||
width: min(1240px, calc(100% - 24px));
|
||||
height: 52px;
|
||||
padding: 0 var(--space-2) 0 var(--space-4);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
||||
border: 1px solid var(--glass-edge);
|
||||
border-radius: var(--zen-radius-md);
|
||||
box-shadow: var(--glass-shadow);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .zen-header {
|
||||
--glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
|
||||
--glass-edge: rgba(15, 23, 42, 0.08);
|
||||
--glass-shadow: 0 10px 40px rgba(15, 23, 42, 0.1), inset 0 1px 0 #ffffff;
|
||||
--glass-track: rgba(15, 23, 42, 0.04);
|
||||
--glass-chip: #ffffff;
|
||||
}
|
||||
|
||||
.brand-block-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
transition: opacity var(--transition-fast);
|
||||
}
|
||||
|
||||
.brand-block-btn:hover {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
height: 30px;
|
||||
height: 28px;
|
||||
width: auto;
|
||||
object-fit: contain;
|
||||
border-radius: var(--zen-radius-xs);
|
||||
}
|
||||
|
||||
/* Barra de Navegación Rápida */
|
||||
/* Riel de navegación hundido con chip activo elevado */
|
||||
.zen-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
gap: 2px;
|
||||
padding: 3px;
|
||||
background: var(--glass-track);
|
||||
border: 1px solid var(--glass-edge);
|
||||
border-radius: var(--zen-radius-sm);
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.zen-nav::-webkit-scrollbar {
|
||||
|
|
@ -71,34 +94,40 @@
|
|||
}
|
||||
|
||||
.nav-item {
|
||||
position: relative;
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
border: none;
|
||||
color: var(--zen-text-secondary);
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
padding: 5px 10px;
|
||||
padding: 6px 14px;
|
||||
border-radius: var(--zen-radius-xs);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
transition: color var(--transition-fast), background var(--transition-fast);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
color: var(--zen-text-primary);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
color: var(--zen-accent-kintsugi);
|
||||
background: rgba(197, 155, 39, 0.1);
|
||||
border-color: rgba(197, 155, 39, 0.35);
|
||||
color: var(--zen-text-primary);
|
||||
background: var(--glass-chip);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.nav-item.nav-all {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.85;
|
||||
.nav-item.active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 2px;
|
||||
width: 14px;
|
||||
height: 2px;
|
||||
transform: translateX(-50%);
|
||||
background: var(--zen-accent-kintsugi);
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.header-right-group {
|
||||
|
|
@ -112,578 +141,230 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
font-family: var(--font-sans);
|
||||
line-height: 1.25;
|
||||
font-family: var(--font-mono);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.live-clock {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--zen-text-primary);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.location-label {
|
||||
font-size: 0.6875rem;
|
||||
font-size: 0.625rem;
|
||||
color: var(--zen-text-muted);
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.lang-toggle-btn {
|
||||
font-family: var(--font-sans);
|
||||
/* Control segmentado: idioma + tema en una sola pieza de vidrio */
|
||||
.header-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--glass-track);
|
||||
border: 1px solid var(--glass-edge);
|
||||
border-radius: var(--zen-radius-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.lang-toggle-btn,
|
||||
.theme-toggle-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 34px;
|
||||
min-width: 36px;
|
||||
padding: 0 10px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--zen-text-secondary);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
color: var(--zen-text-primary);
|
||||
background: var(--zen-bg-surface);
|
||||
border: 1px solid var(--zen-border-subtle);
|
||||
border-radius: var(--zen-radius-xs);
|
||||
padding: 4px 8px;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-fast);
|
||||
transition: color var(--transition-fast), background var(--transition-fast);
|
||||
}
|
||||
|
||||
.lang-toggle-btn:hover {
|
||||
border-color: var(--zen-accent-kintsugi);
|
||||
.theme-toggle-btn {
|
||||
border-left: 1px solid var(--glass-edge);
|
||||
}
|
||||
|
||||
.lang-toggle-btn:hover,
|
||||
.theme-toggle-btn:hover {
|
||||
color: var(--zen-accent-kintsugi);
|
||||
background: var(--zen-bg-elevated);
|
||||
background: var(--glass-chip);
|
||||
}
|
||||
|
||||
.hero-container {
|
||||
width: 100%;
|
||||
:host-context([data-theme='zen-light']) .cyber-matrix-stage-wrapper,
|
||||
:host-context(body.theme-light) .cyber-matrix-stage-wrapper {
|
||||
background-color: var(--zen-bg-base, #f8f9fb);
|
||||
background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
|
||||
background-size: 26px 26px;
|
||||
}
|
||||
|
||||
/* Vista Aislada (Single Component View) */
|
||||
.isolated-view {
|
||||
min-height: calc(100vh - 56px);
|
||||
padding-top: calc(56px + var(--space-4));
|
||||
box-sizing: border-box;
|
||||
background-color: #121517;
|
||||
flex: 1 0 auto;
|
||||
animation: zenViewEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
|
||||
}
|
||||
|
||||
@keyframes zenViewEnter {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(8px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.hero-container.isolated-view {
|
||||
padding-top: 0;
|
||||
background-color: #000000;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view {
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
max-height: 100vh;
|
||||
overflow: hidden;
|
||||
padding: 56px clamp(1rem, 3vw, 2.5rem) 0 clamp(1rem, 3vw, 2.5rem);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .stage-grid {
|
||||
height: 100%;
|
||||
max-height: calc(100vh - 72px);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .retro-module-card {
|
||||
height: 100%;
|
||||
max-height: calc(100vh - 72px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .retro-module-card app-retro-os {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .vintage-monitor-wrapper {
|
||||
max-height: calc(100vh - 90px);
|
||||
width: auto;
|
||||
aspect-ratio: 1398 / 1564;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .profile-module-card {
|
||||
max-height: calc(100vh - 72px);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.hero-container.isolated-view {
|
||||
padding: calc(56px + var(--space-4)) clamp(0.75rem, 3vw, 1.5rem) var(--space-8);
|
||||
background-color: #121517;
|
||||
min-height: calc(100vh - 56px);
|
||||
height: auto;
|
||||
overflow-y: visible;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view {
|
||||
height: auto;
|
||||
min-height: calc(100vh - 56px);
|
||||
max-height: none;
|
||||
overflow-y: visible;
|
||||
display: block;
|
||||
padding: calc(56px + var(--space-4)) clamp(0.75rem, 3vw, 1.5rem) var(--space-12) clamp(0.75rem, 3vw, 1.5rem);
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .stage-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
gap: var(--space-8);
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .retro-module-card {
|
||||
order: 1;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .profile-module-card {
|
||||
order: 2;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.interactive-stage.isolated-view .vintage-monitor-wrapper {
|
||||
max-height: none;
|
||||
width: 100%;
|
||||
max-width: 520px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
:host-context([data-theme='zen-light']) .fullscreen-stage,
|
||||
:host-context(body.theme-light) .fullscreen-stage {
|
||||
border-bottom-color: rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
MÓDULOS INTERACTIVOS (50/50 HORIZONTAL)
|
||||
ESTRUCTURA DE SECCIONES CONTINUAS (Single Page Scroll Flow)
|
||||
============================================================================== */
|
||||
|
||||
.interactive-stage {
|
||||
/* ==============================================================================
|
||||
ESTRUCTURA DE SECCIONES (Hero 3D + Pantalla Completa con Matrix Rain)
|
||||
============================================================================== */
|
||||
|
||||
.landing-section {
|
||||
width: 100%;
|
||||
padding: var(--space-16) clamp(1rem, 3vw, 2.5rem) var(--space-12) clamp(1rem, 3vw, 2.5rem);
|
||||
background-color: #121517;
|
||||
background: linear-gradient(180deg, #000000 0%, #121517 var(--space-12));
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 01. HERO SECTION (Laptop 3D al scroll en ambos temas) */
|
||||
.hero-section {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
background-color: #000000;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .hero-section,
|
||||
:host-context(body.theme-light) .hero-section {
|
||||
background-color: #d9d9d9;
|
||||
}
|
||||
|
||||
/* CONTENEDOR MAESTRO DE ETAPAS PANTALLA COMPLETA CON MATRIX RAIN */
|
||||
.cyber-matrix-stage-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
background-color: #0b0e14;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Lluvia Matrix ambiental sticky: se mantiene visible durante todas las etapas siguientes */
|
||||
.global-matrix-bg {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
display: block;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
margin-bottom: -100vh;
|
||||
opacity: 0.28;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .global-matrix-bg,
|
||||
:host-context(body.theme-light) .global-matrix-bg {
|
||||
opacity: 0.38;
|
||||
}
|
||||
|
||||
/* ETAPAS EN PANTALLA COMPLETA (100vh con centrado vertical y espacio negativo Zen) */
|
||||
.fullscreen-stage {
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
box-sizing: border-box;
|
||||
padding: clamp(4.5rem, 8vh, 6rem) clamp(1rem, 3vw, 2.5rem);
|
||||
border-bottom: 1px solid rgba(30, 37, 51, 0.45);
|
||||
}
|
||||
|
||||
.fullscreen-stage-content {
|
||||
width: 100%;
|
||||
max-width: 1540px;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* ETAPA 02: RETRO OS & PROFILE */
|
||||
.stage-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-8);
|
||||
gap: clamp(2rem, 4vw, 4rem);
|
||||
width: 100%;
|
||||
align-items: stretch;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.module-card {
|
||||
background: transparent;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.profile-module-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.retro-module-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.retro-module-card app-retro-os {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 680px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* ETAPA 05: TERMINAL INTERACTIVA (Centrada con ancho óptimo) */
|
||||
.terminal-content-box {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
ADAPTABILIDAD RESPONSIVA (Tablet & Mobile)
|
||||
============================================================================== */
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.stage-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--space-8);
|
||||
}
|
||||
|
||||
.retro-module-card {
|
||||
order: 1;
|
||||
max-width: 520px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.profile-module-card {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.fullscreen-stage {
|
||||
min-height: auto;
|
||||
padding: clamp(4rem, 6vh, 5rem) clamp(1rem, 2vw, 1.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
.module-card {
|
||||
background: var(--zen-bg-surface);
|
||||
border: 1px solid var(--zen-border-subtle);
|
||||
border-radius: var(--zen-radius-sm);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--zen-shadow-sm);
|
||||
}
|
||||
|
||||
.retro-module-card {
|
||||
background: #121517;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.profile-module-card {
|
||||
background: transparent;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.profile-module-card app-technical-profile {
|
||||
display: block;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
SECCIÓN DE PROYECTOS DESTACADOS
|
||||
============================================================================== */
|
||||
|
||||
.projects-stage {
|
||||
width: 100%;
|
||||
padding: var(--space-16) clamp(1rem, 3vw, 2.5rem);
|
||||
background-color: #121517;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.projects-stage.isolated-view {
|
||||
min-height: calc(100vh - 56px);
|
||||
padding-top: calc(56px + var(--space-6));
|
||||
padding-bottom: var(--space-8);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #121517;
|
||||
}
|
||||
|
||||
.projects-stage-inner {
|
||||
width: 100%;
|
||||
max-width: 1540px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
SECCIÓN: SIMULADOR DE RESPUESTA A INCIDENTES CLOUD
|
||||
============================================================================== */
|
||||
|
||||
.simulator-stage {
|
||||
width: 100%;
|
||||
padding: var(--space-12) clamp(1rem, 3vw, 2.5rem);
|
||||
background-color: #121517;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.simulator-stage.isolated-view {
|
||||
min-height: calc(100vh - 56px);
|
||||
padding-top: calc(56px + var(--space-4));
|
||||
padding-bottom: var(--space-6);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #121517;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
SECCIÓN: TERMINAL ARCH LINUX
|
||||
============================================================================== */
|
||||
|
||||
.terminal-stage {
|
||||
width: 100%;
|
||||
padding: var(--space-16) clamp(1rem, 3vw, 2.5rem);
|
||||
background-color: #121517;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.terminal-stage.isolated-view {
|
||||
min-height: calc(100vh - 56px);
|
||||
padding-top: calc(56px + var(--space-4));
|
||||
padding-bottom: var(--space-6);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #121517;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.terminal-stage-inner {
|
||||
max-width: 1540px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
/* Cabecera Normalizada de Sección */
|
||||
.terminal-section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
padding-bottom: var(--space-2);
|
||||
border-bottom: 1px solid var(--zen-border-subtle);
|
||||
margin-bottom: var(--space-1);
|
||||
}
|
||||
|
||||
.terminal-section-header .header-left,
|
||||
.terminal-section-header .title-with-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
.terminal-section-header .pulse-indicator {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--zen-accent-kintsugi);
|
||||
box-shadow: 0 0 12px var(--zen-accent-kintsugi);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.terminal-section-header .section-title {
|
||||
margin: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-size: clamp(1.6rem, 3vw, 2.25rem);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--zen-text-primary);
|
||||
line-height: 1.15;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
SECCIÓN: CONTACTO
|
||||
============================================================================== */
|
||||
|
||||
.contact-stage {
|
||||
width: 100%;
|
||||
background-color: #121517;
|
||||
}
|
||||
|
||||
.contact-stage.isolated-view {
|
||||
min-height: calc(100vh - 56px);
|
||||
padding-top: 56px;
|
||||
background-color: #121517;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
FLECHAS SUTILES FLOTANTES DE NAVEGACIÓN (DEBAJO DEL NAVBAR)
|
||||
============================================================================== */
|
||||
|
||||
.zen-floating-nav-controls {
|
||||
position: fixed;
|
||||
top: 68px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 950;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 clamp(0.75rem, 2.5vw, 2.5rem);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.zen-nav-arrow-btn {
|
||||
pointer-events: auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: rgba(10, 13, 20, 0.75);
|
||||
backdrop-filter: blur(12px) saturate(160%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 999px;
|
||||
padding: 6px 14px;
|
||||
color: #9aa5b8;
|
||||
font-family: var(--font-mono, monospace);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.zen-nav-arrow-btn:hover:not(:disabled) {
|
||||
color: #f0f3f8;
|
||||
border-color: rgba(197, 155, 39, 0.5);
|
||||
background: rgba(18, 22, 32, 0.9);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 0 14px rgba(197, 155, 39, 0.25);
|
||||
}
|
||||
|
||||
.zen-nav-arrow-btn.disabled,
|
||||
.zen-nav-arrow-btn:disabled {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: scale(0.92);
|
||||
}
|
||||
|
||||
.nav-arrow-svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
stroke: #c59b27;
|
||||
flex-shrink: 0;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.nav-arrow-left:hover:not(:disabled) .nav-arrow-svg {
|
||||
transform: translateX(-3px);
|
||||
}
|
||||
|
||||
.nav-arrow-right:hover:not(:disabled) .nav-arrow-svg {
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
.nav-arrow-label {
|
||||
letter-spacing: 0.02em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
TELÓN DE TRANSICIÓN SUAVE Y SCANLINE ZEN
|
||||
============================================================================== */
|
||||
|
||||
.zen-transition-curtain {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 9999;
|
||||
background: rgba(8, 10, 14, 0.94);
|
||||
backdrop-filter: blur(10px);
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.zen-transition-curtain.visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.curtain-logo-wrapper {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 14px;
|
||||
animation: logoWrapperEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
|
||||
}
|
||||
|
||||
.logo-glow-ring {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(197, 155, 39, 0.5) 0%, rgba(56, 189, 248, 0.2) 50%, transparent 70%);
|
||||
filter: blur(16px);
|
||||
animation: logoPulseGlow 1.2s ease-in-out infinite alternate;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.logo-image-container {
|
||||
position: relative;
|
||||
width: 78px;
|
||||
height: 78px;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(197, 155, 39, 0.5);
|
||||
box-shadow: 0 0 28px rgba(197, 155, 39, 0.35), 0 8px 32px rgba(0, 0, 0, 0.85);
|
||||
background: #000000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.curtain-logo-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transform: scale(0.92);
|
||||
animation: logoBreath 1.2s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
.logo-shimmer-sweep {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
|
||||
transform: translateX(-100%);
|
||||
animation: logoShimmer 1.0s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@keyframes logoWrapperEnter {
|
||||
from { opacity: 0; transform: scale(0.92); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
@keyframes logoPulseGlow {
|
||||
0% { transform: scale(0.85); opacity: 0.4; }
|
||||
100% { transform: scale(1.3); opacity: 0.95; }
|
||||
}
|
||||
|
||||
@keyframes logoBreath {
|
||||
0% { transform: scale(0.88); filter: drop-shadow(0 0 4px rgba(197, 155, 39, 0.3)); }
|
||||
100% { transform: scale(0.96); filter: drop-shadow(0 0 12px rgba(197, 155, 39, 0.7)); }
|
||||
}
|
||||
|
||||
@keyframes logoShimmer {
|
||||
0% { transform: translateX(-100%); }
|
||||
100% { transform: translateX(100%); }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
@media (max-width: 640px) {
|
||||
.zen-header {
|
||||
padding: 0 8px;
|
||||
gap: 6px;
|
||||
height: 50px;
|
||||
top: 8px;
|
||||
width: calc(100% - 16px);
|
||||
padding: 0 var(--space-1) 0 var(--space-2);
|
||||
}
|
||||
|
||||
.time-location-block {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.zen-nav {
|
||||
gap: 3px;
|
||||
padding: 3px 6px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 20px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
padding: 4px 7px;
|
||||
font-size: 0.6875rem;
|
||||
border-radius: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lang-toggle-btn {
|
||||
padding: 3px 6px;
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
|
||||
.zen-floating-nav-controls {
|
||||
top: 58px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.nav-arrow-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.zen-nav-arrow-btn {
|
||||
padding: 6px 10px;
|
||||
font-size: 0.75rem;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,17 @@
|
|||
<div class="landing-container" [class.transitioning-lock]="isCurtainVisible()">
|
||||
<div class="landing-container">
|
||||
<!-- Header Minimalista Flotante (Glassmorphism & Zen High-Contrast) -->
|
||||
<header class="zen-header">
|
||||
<button type="button" class="brand-block-btn" (click)="setSection('hero')" [attr.aria-label]="i18n.t().navHome">
|
||||
<img src="assets/images/logo.jpg" alt="Bryan Baño" class="brand-logo" />
|
||||
<button
|
||||
type="button"
|
||||
class="brand-block-btn"
|
||||
(click)="scrollToSection('hero')"
|
||||
[attr.aria-label]="i18n.t().navHome"
|
||||
>
|
||||
<img
|
||||
[src]="themeService.isLightMode() ? 'assets/images/logo-light.png' : 'assets/images/logo.jpg'"
|
||||
alt="Bryan Baño"
|
||||
class="brand-logo"
|
||||
/>
|
||||
</button>
|
||||
|
||||
<!-- Barra de Navegación Rápida Zen -->
|
||||
|
|
@ -12,7 +21,7 @@
|
|||
class="nav-item"
|
||||
data-nav="hero"
|
||||
[class.active]="activeSection() === 'hero'"
|
||||
(click)="setSection('hero')"
|
||||
(click)="scrollToSection('hero')"
|
||||
>
|
||||
{{ i18n.t().navHome }}
|
||||
</button>
|
||||
|
|
@ -22,7 +31,7 @@
|
|||
class="nav-item"
|
||||
data-nav="retro"
|
||||
[class.active]="activeSection() === 'retro'"
|
||||
(click)="setSection('retro')"
|
||||
(click)="scrollToSection('retro')"
|
||||
>
|
||||
{{ i18n.t().navRetro }}
|
||||
</button>
|
||||
|
|
@ -32,7 +41,7 @@
|
|||
class="nav-item"
|
||||
data-nav="projects"
|
||||
[class.active]="activeSection() === 'projects'"
|
||||
(click)="setSection('projects')"
|
||||
(click)="scrollToSection('projects')"
|
||||
>
|
||||
{{ i18n.t().navProjects }}
|
||||
</button>
|
||||
|
|
@ -42,7 +51,7 @@
|
|||
class="nav-item"
|
||||
data-nav="simulator"
|
||||
[class.active]="activeSection() === 'simulator'"
|
||||
(click)="setSection('simulator')"
|
||||
(click)="scrollToSection('simulator')"
|
||||
>
|
||||
{{ i18n.t().navSimulator }}
|
||||
</button>
|
||||
|
|
@ -52,7 +61,7 @@
|
|||
class="nav-item"
|
||||
data-nav="terminal"
|
||||
[class.active]="activeSection() === 'terminal'"
|
||||
(click)="setSection('terminal')"
|
||||
(click)="scrollToSection('terminal')"
|
||||
>
|
||||
{{ i18n.t().navTerminal }}
|
||||
</button>
|
||||
|
|
@ -62,140 +71,116 @@
|
|||
class="nav-item"
|
||||
data-nav="contact"
|
||||
[class.active]="activeSection() === 'contact'"
|
||||
(click)="setSection('contact')"
|
||||
(click)="scrollToSection('contact')"
|
||||
>
|
||||
{{ i18n.t().navContact }}
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
<div class="header-right-group">
|
||||
<app-telemetry-hud></app-telemetry-hud>
|
||||
|
||||
<div class="time-location-block">
|
||||
<span class="live-clock">{{ currentTime() }}</span>
|
||||
<span class="location-label"> {{ i18n.t().location }}</span>
|
||||
</div>
|
||||
|
||||
<button type="button" class="lang-toggle-btn" (click)="i18n.toggleLanguage()"
|
||||
[attr.aria-label]="i18n.t().switchLangAria">
|
||||
<div class="header-controls">
|
||||
<button
|
||||
type="button"
|
||||
class="lang-toggle-btn"
|
||||
(click)="i18n.toggleLanguage()"
|
||||
[attr.aria-label]="i18n.t().switchLangAria"
|
||||
>
|
||||
{{ i18n.currentLang() === 'es' ? 'EN' : 'ES' }}
|
||||
</button>
|
||||
|
||||
<!-- Botón de Conmutación de Modo Claro / Modo Oscuro -->
|
||||
<button
|
||||
type="button"
|
||||
class="theme-toggle-btn"
|
||||
(click)="themeService.toggleTheme()"
|
||||
[attr.aria-label]="themeService.isLightMode() ? 'Activar modo oscuro' : 'Activar modo claro'"
|
||||
[title]="themeService.isLightMode() ? 'Modo Oscuro' : 'Modo Claro'"
|
||||
>
|
||||
@if (themeService.isLightMode()) {
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
||||
</svg>
|
||||
} @else {
|
||||
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<circle cx="12" cy="12" r="5"></circle>
|
||||
<line x1="12" y1="1" x2="12" y2="3"></line>
|
||||
<line x1="12" y1="21" x2="12" y2="23"></line>
|
||||
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
||||
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
||||
<line x1="1" y1="12" x2="3" y2="12"></line>
|
||||
<line x1="21" y1="12" x2="23" y2="12"></line>
|
||||
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
||||
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
||||
</svg>
|
||||
}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Flechas Sutiles de Navegación Flotantes (Izquierda y Derecha debajo del Navbar) -->
|
||||
<aside class="zen-floating-nav-controls" aria-label="Navegación entre secciones">
|
||||
<button
|
||||
type="button"
|
||||
class="zen-nav-arrow-btn nav-arrow-left"
|
||||
[class.disabled]="!hasPrevSection()"
|
||||
[disabled]="!hasPrevSection()"
|
||||
(click)="goToPrevSection()"
|
||||
[attr.aria-label]="i18n.t().navPrevSection + ': ' + prevSectionName()"
|
||||
[title]="hasPrevSection() ? i18n.t().navPrevSection + ' (' + prevSectionName() + ')' : ''"
|
||||
>
|
||||
<svg class="nav-arrow-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<polyline points="15 18 9 12 15 6"></polyline>
|
||||
</svg>
|
||||
<span class="nav-arrow-label">{{ prevSectionName() }}</span>
|
||||
</button>
|
||||
<!-- SECCIÓN 01: Laptop animada al scroll con una secuencia por tema -->
|
||||
<section id="hero" class="landing-section hero-section">
|
||||
<app-hero-3d></app-hero-3d>
|
||||
<app-tech-stack-strip></app-tech-stack-strip>
|
||||
</section>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="zen-nav-arrow-btn nav-arrow-right"
|
||||
[class.disabled]="!hasNextSection()"
|
||||
[disabled]="!hasNextSection()"
|
||||
(click)="goToNextSection()"
|
||||
[attr.aria-label]="i18n.t().navNextSection + ': ' + nextSectionName()"
|
||||
[title]="hasNextSection() ? i18n.t().navNextSection + ' (' + nextSectionName() + ')' : ''"
|
||||
>
|
||||
<span class="nav-arrow-label">{{ nextSectionName() }}</span>
|
||||
<svg class="nav-arrow-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<polyline points="9 18 15 12 9 6"></polyline>
|
||||
</svg>
|
||||
</button>
|
||||
</aside>
|
||||
<!-- CONTENEDOR DE SECCIONES CON LLUVIA MATRIX AMBIENTAL (PANTALLA COMPLETA) -->
|
||||
<div class="cyber-matrix-stage-wrapper" [class.is-light]="themeService.isLightMode()">
|
||||
<!-- Lienzo Matrix Global activo en Dark Mode para estas secciones -->
|
||||
<!-- Lluvia Matrix ambiental continua (Visible en modo oscuro y claro) -->
|
||||
<app-matrix-rain class="global-matrix-bg"></app-matrix-rain>
|
||||
|
||||
<!-- Telón de Transición Suave con Animación de Logo Zen -->
|
||||
<div
|
||||
class="zen-transition-curtain"
|
||||
[class.visible]="isCurtainVisible()"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="curtain-logo-wrapper">
|
||||
<div class="logo-glow-ring"></div>
|
||||
<div class="logo-image-container">
|
||||
<img src="assets/images/logo.jpg" alt="Bryan Baño Logo" class="curtain-logo-img" />
|
||||
<div class="logo-shimmer-sweep"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- SECCIÓN 02: Módulos Interactivos (Perfil Técnico & Retro Monitor CRT) -->
|
||||
<section id="retro" class="landing-section fullscreen-stage">
|
||||
<div class="fullscreen-stage-content">
|
||||
<div class="stage-grid">
|
||||
<!-- Slot 1: Perfil Técnico & Filosofía de Ingeniería -->
|
||||
<article class="module-card profile-module-card">
|
||||
<app-technical-profile></app-technical-profile>
|
||||
</article>
|
||||
|
||||
<!-- Hero con Laptop 3D desarmable al scroll (240 frames) -->
|
||||
@if (activeSection() === 'hero') {
|
||||
<main class="hero-container isolated-view">
|
||||
<app-hero-3d [initialPosition]="heroEntryPosition()"></app-hero-3d>
|
||||
</main>
|
||||
}
|
||||
|
||||
<!-- Contenedor Base para Módulos Interactivos (50/50 Perfil Técnico y Retro Monitor) -->
|
||||
@if (activeSection() === 'retro') {
|
||||
<section class="interactive-stage isolated-view">
|
||||
<div class="stage-grid">
|
||||
<!-- Slot 1: Perfil Técnico & Filosofía de Ingeniería -->
|
||||
<article class="module-card profile-module-card">
|
||||
<app-technical-profile></app-technical-profile>
|
||||
</article>
|
||||
|
||||
<!-- Slot 2: Retro OS en Monitor CRT Antiguo (50% Horizontal) -->
|
||||
<article class="module-card retro-module-card">
|
||||
<app-retro-os></app-retro-os>
|
||||
</article>
|
||||
<!-- Slot 2: Retro OS en Monitor CRT Antiguo -->
|
||||
<article class="module-card retro-module-card">
|
||||
<app-retro-os></app-retro-os>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
<!-- Sección de Proyectos Destacados (Casos Reales del CV a Ancho Completo) -->
|
||||
@if (activeSection() === 'projects') {
|
||||
<section class="projects-stage isolated-view">
|
||||
<div class="projects-stage-inner">
|
||||
<!-- SECCIÓN 03: Proyectos Destacados (Casos Reales del CV) -->
|
||||
<section id="projects" class="landing-section fullscreen-stage">
|
||||
<div class="fullscreen-stage-content">
|
||||
<app-featured-projects></app-featured-projects>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
<!-- Sección Simulador de Respuesta a Incidentes (Visualización de Arquitectura Cloud Security Serverless) -->
|
||||
@if (activeSection() === 'simulator') {
|
||||
<section class="simulator-stage isolated-view">
|
||||
<app-incident-simulator></app-incident-simulator>
|
||||
<!-- SECCIÓN 04: Simulador de Incidentes Cloud (Packet Tracer) -->
|
||||
<section id="simulator" class="landing-section fullscreen-stage">
|
||||
<div class="fullscreen-stage-content">
|
||||
<app-incident-simulator></app-incident-simulator>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
<!-- Sección Dedicada para la Terminal Interactiva Arch Linux / Fish Shell (Espaciosa y a Escala Completa) -->
|
||||
@if (activeSection() === 'terminal') {
|
||||
<section class="terminal-stage isolated-view">
|
||||
<div class="terminal-stage-inner">
|
||||
<!-- Cabecera Normalizada de Sección -->
|
||||
<header class="terminal-section-header">
|
||||
<div class="header-left">
|
||||
<div class="title-with-badge">
|
||||
<span class="pulse-indicator" aria-hidden="true"></span>
|
||||
<h2 class="section-title">{{ i18n.t().navTerminal }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- SECCIÓN 05: Terminal Interactiva Arch Linux / Fish Shell -->
|
||||
<section id="terminal" class="landing-section fullscreen-stage">
|
||||
<div class="fullscreen-stage-content terminal-content-box">
|
||||
<app-terminal></app-terminal>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
<!-- Sección de Contacto Corporativa Premium (Full Width debajo de la Terminal) -->
|
||||
@if (activeSection() === 'contact') {
|
||||
<section class="contact-stage isolated-view">
|
||||
<app-contact-section></app-contact-section>
|
||||
<!-- SECCIÓN 06: Contacto & Muro de Firmas Guestbook -->
|
||||
<section id="contact" class="landing-section fullscreen-stage">
|
||||
<div class="fullscreen-stage-content">
|
||||
<app-contact-section></app-contact-section>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
</div>
|
||||
|
||||
<!-- Asistente Virtual Flotante Cyber-Zen (n8n + Gemini) -->
|
||||
<app-chat-bot></app-chat-bot>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,14 @@
|
|||
import { Component, ChangeDetectionStrategy, OnInit, OnDestroy, signal, computed, inject, ViewChild, ElementRef } from '@angular/core';
|
||||
import {
|
||||
Component,
|
||||
ChangeDetectionStrategy,
|
||||
OnInit,
|
||||
AfterViewInit,
|
||||
OnDestroy,
|
||||
signal,
|
||||
inject,
|
||||
ElementRef,
|
||||
ViewChild
|
||||
} from '@angular/core';
|
||||
import { Hero3dComponent } from '../hero-3d/hero-3d.component';
|
||||
import { RetroOsComponent } from '../retro-os/retro-os.component';
|
||||
import { TerminalComponent } from '../terminal/terminal.component';
|
||||
|
|
@ -7,8 +17,10 @@ import { ContactSectionComponent } from '../contact-section/contact-section.comp
|
|||
import { TechnicalProfileComponent } from '../technical-profile/technical-profile.component';
|
||||
import { IncidentSimulatorComponent } from '../incident-simulator/incident-simulator.component';
|
||||
import { ChatBotComponent } from '../chat-bot/chat-bot.component';
|
||||
import { TelemetryHudComponent } from '../telemetry-hud/telemetry-hud.component';
|
||||
import { MatrixRainComponent } from '../../shared/components/matrix-rain/matrix-rain.component';
|
||||
import { TechStackStripComponent } from '../../shared/components/tech-stack-strip/tech-stack-strip.component';
|
||||
import { I18nService } from '../../../application/services/i18n.service';
|
||||
import { ThemeService } from '../../../application/services/theme.service';
|
||||
|
||||
export type LandingSection = 'hero' | 'retro' | 'projects' | 'simulator' | 'terminal' | 'contact';
|
||||
|
||||
|
|
@ -33,311 +45,126 @@ export const LANDING_SECTIONS: readonly LandingSection[] = [
|
|||
TechnicalProfileComponent,
|
||||
IncidentSimulatorComponent,
|
||||
ChatBotComponent,
|
||||
TelemetryHudComponent
|
||||
MatrixRainComponent,
|
||||
TechStackStripComponent
|
||||
],
|
||||
templateUrl: './landing.component.html',
|
||||
styleUrl: './landing.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class LandingComponent implements OnInit, OnDestroy {
|
||||
export class LandingComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
protected readonly i18n = inject(I18nService);
|
||||
protected readonly themeService = inject(ThemeService);
|
||||
protected readonly currentYear = signal(new Date().getFullYear());
|
||||
protected readonly currentTime = signal<string>('');
|
||||
protected readonly activeSection = signal<LandingSection>('hero');
|
||||
protected readonly heroEntryPosition = signal<'top' | 'bottom'>('top');
|
||||
protected readonly isCurtainVisible = signal<boolean>(false);
|
||||
protected readonly transitionTargetSection = signal<LandingSection>('hero');
|
||||
|
||||
protected readonly hasPrevSection = computed(() => {
|
||||
return LANDING_SECTIONS.indexOf(this.activeSection()) > 0;
|
||||
});
|
||||
|
||||
protected readonly hasNextSection = computed(() => {
|
||||
return LANDING_SECTIONS.indexOf(this.activeSection()) < LANDING_SECTIONS.length - 1;
|
||||
});
|
||||
|
||||
protected readonly prevSectionName = computed(() => {
|
||||
const idx = LANDING_SECTIONS.indexOf(this.activeSection());
|
||||
return idx > 0 ? this.getSectionTitle(LANDING_SECTIONS[idx - 1]) : '';
|
||||
});
|
||||
|
||||
protected readonly nextSectionName = computed(() => {
|
||||
const idx = LANDING_SECTIONS.indexOf(this.activeSection());
|
||||
return idx < LANDING_SECTIONS.length - 1 ? this.getSectionTitle(LANDING_SECTIONS[idx + 1]) : '';
|
||||
});
|
||||
|
||||
protected readonly transitionTargetTitle = computed(() => {
|
||||
return this.getSectionTitle(this.transitionTargetSection());
|
||||
});
|
||||
|
||||
private clockInterval: ReturnType<typeof setInterval> | null = null;
|
||||
private readonly timeFormatter = new Intl.DateTimeFormat('en-GB', {
|
||||
timeZone: 'America/Guayaquil',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
hour12: false
|
||||
});
|
||||
private sectionObserver?: IntersectionObserver;
|
||||
private isUserClickScrolling = false;
|
||||
private clickScrollTimer: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
@ViewChild('navContainer') private navContainerRef?: ElementRef<HTMLElement>;
|
||||
|
||||
private isTransitioning = false;
|
||||
private touchStartY = 0;
|
||||
private touchStartX = 0;
|
||||
private touchStartAtTop = false;
|
||||
private touchStartAtBottom = false;
|
||||
private wheelDeltaAccum = 0;
|
||||
private wheelGestureArmed = false;
|
||||
private lastWheelAt = 0;
|
||||
private transitionTimer: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
ngOnInit(): void {
|
||||
this.updateClock();
|
||||
this.clockInterval = setInterval(() => this.updateClock(), 1000);
|
||||
}
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
this.setupIntersectionObserver();
|
||||
this.parseInitialHash();
|
||||
this.setupScrollTransitions();
|
||||
}
|
||||
|
||||
getSectionTitle(section: LandingSection): string {
|
||||
const dict = this.i18n.t();
|
||||
switch (section) {
|
||||
case 'hero': return dict.navHome;
|
||||
case 'retro': return dict.navRetro;
|
||||
case 'projects': return dict.navProjects;
|
||||
case 'simulator': return dict.navSimulator;
|
||||
case 'terminal': return dict.navTerminal;
|
||||
case 'contact': return dict.navContact;
|
||||
ngOnDestroy(): void {
|
||||
if (this.clockInterval) clearInterval(this.clockInterval);
|
||||
if (this.clickScrollTimer) clearTimeout(this.clickScrollTimer);
|
||||
if (this.sectionObserver) {
|
||||
this.sectionObserver.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
setSection(section: LandingSection, entryPosition: 'top' | 'bottom' = 'top'): void {
|
||||
if (this.activeSection() === section || this.isTransitioning) return;
|
||||
this.isTransitioning = true;
|
||||
this.transitionTargetSection.set(section);
|
||||
this.isCurtainVisible.set(true);
|
||||
scrollToSection(section: LandingSection): void {
|
||||
this.activeSection.set(section);
|
||||
this.isUserClickScrolling = true;
|
||||
if (this.clickScrollTimer) clearTimeout(this.clickScrollTimer);
|
||||
this.clickScrollTimer = setTimeout(() => {
|
||||
this.isUserClickScrolling = false;
|
||||
}, 900);
|
||||
|
||||
if (typeof document !== 'undefined') {
|
||||
document.documentElement.style.overflow = 'hidden';
|
||||
document.body.style.overflow = 'hidden';
|
||||
if (typeof window === 'undefined') return;
|
||||
|
||||
if (section === 'hero') {
|
||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
} else {
|
||||
const el = document.getElementById(section);
|
||||
if (el) {
|
||||
const headerOffset = 64;
|
||||
const elementPosition = el.getBoundingClientRect().top;
|
||||
const offsetPosition = elementPosition + window.pageYOffset - headerOffset;
|
||||
window.scrollTo({ top: offsetPosition, behavior: 'smooth' });
|
||||
}
|
||||
}
|
||||
|
||||
if (this.transitionTimer) clearTimeout(this.transitionTimer);
|
||||
const hash = section === 'hero' ? '' : `#${section}`;
|
||||
const url = window.location.pathname + window.location.search + hash;
|
||||
window.history.replaceState(null, '', url);
|
||||
this.scrollActiveNavIntoView(section);
|
||||
}
|
||||
|
||||
// Initial phase: show curtain and animated logo
|
||||
this.transitionTimer = setTimeout(() => {
|
||||
if (section === 'hero') {
|
||||
this.heroEntryPosition.set(entryPosition);
|
||||
}
|
||||
private setupIntersectionObserver(): void {
|
||||
if (typeof window === 'undefined' || !('IntersectionObserver' in window)) return;
|
||||
|
||||
this.activeSection.set(section);
|
||||
this.sectionObserver = new IntersectionObserver((entries) => {
|
||||
if (this.isUserClickScrolling) return;
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
const hash = section === 'hero' ? '' : `#${section}`;
|
||||
const url = window.location.pathname + window.location.search + hash;
|
||||
window.history.replaceState(null, '', url);
|
||||
this.scrollActiveNavIntoView(section);
|
||||
|
||||
if (entryPosition === 'bottom') {
|
||||
const maxScroll = Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
|
||||
window.scrollTo({ top: maxScroll, behavior: 'instant' });
|
||||
} else {
|
||||
window.scrollTo({ top: 0, behavior: 'instant' });
|
||||
}
|
||||
}
|
||||
|
||||
// Appreciate the animated logo for a full animation cycle before smoothly fading out
|
||||
setTimeout(() => {
|
||||
this.isCurtainVisible.set(false);
|
||||
if (typeof document !== 'undefined') {
|
||||
document.documentElement.style.overflow = '';
|
||||
document.body.style.overflow = '';
|
||||
}
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
if (entryPosition === 'bottom') {
|
||||
const maxScroll = Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
|
||||
window.scrollTo({ top: maxScroll, behavior: 'instant' });
|
||||
} else {
|
||||
window.scrollTo({ top: 0, behavior: 'instant' });
|
||||
for (const entry of entries) {
|
||||
if (entry.isIntersecting) {
|
||||
const id = entry.target.id as LandingSection;
|
||||
if (LANDING_SECTIONS.includes(id)) {
|
||||
this.activeSection.set(id);
|
||||
const hash = id === 'hero' ? '' : `#${id}`;
|
||||
window.history.replaceState(null, '', window.location.pathname + window.location.search + hash);
|
||||
this.scrollActiveNavIntoView(id);
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
this.isTransitioning = false;
|
||||
}, 300);
|
||||
}, 550);
|
||||
}, 220);
|
||||
}
|
||||
|
||||
private setupScrollTransitions(): void {
|
||||
if (typeof window === 'undefined') return;
|
||||
window.addEventListener('wheel', this.onWheel, { passive: false });
|
||||
window.addEventListener('touchstart', this.onTouchStart, { passive: true });
|
||||
window.addEventListener('touchend', this.onTouchEnd, { passive: true });
|
||||
}
|
||||
|
||||
private onWheel = (e: WheelEvent): void => {
|
||||
if (this.isTransitioning || this.isCurtainVisible()) {
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignorar si el usuario está interactuando con un modal
|
||||
const target = e.target as HTMLElement | null;
|
||||
if (target?.closest('.project-detail-overlay')) {
|
||||
return;
|
||||
}
|
||||
|
||||
const now = performance.now();
|
||||
const isNewGesture = now - this.lastWheelAt > 160;
|
||||
this.lastWheelAt = now;
|
||||
|
||||
const scrollY = window.scrollY || window.pageYOffset;
|
||||
const maxScroll = Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
|
||||
const goingDown = e.deltaY > 0;
|
||||
const atBoundary = goingDown ? scrollY >= maxScroll - 6 : scrollY <= 6;
|
||||
const innerCanScroll = atBoundary && this.canInnerScroll(target, goingDown);
|
||||
|
||||
if (innerCanScroll) {
|
||||
this.wheelDeltaAccum = 0;
|
||||
this.wheelGestureArmed = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (isNewGesture) {
|
||||
this.wheelDeltaAccum = 0;
|
||||
this.wheelGestureArmed = atBoundary;
|
||||
}
|
||||
|
||||
if (!this.wheelGestureArmed || !atBoundary) {
|
||||
this.wheelDeltaAccum = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
this.wheelDeltaAccum += e.deltaY;
|
||||
if (Math.abs(this.wheelDeltaAccum) > 160) {
|
||||
this.wheelDeltaAccum = 0;
|
||||
this.wheelGestureArmed = false;
|
||||
if (goingDown) {
|
||||
this.goToNextSection();
|
||||
} else {
|
||||
this.goToPrevSection();
|
||||
}
|
||||
}
|
||||
};
|
||||
}, {
|
||||
rootMargin: '-20% 0px -60% 0px',
|
||||
threshold: 0
|
||||
});
|
||||
|
||||
private canInnerScroll(target: HTMLElement | null, goingDown: boolean): boolean {
|
||||
for (let el = target; el && el !== document.documentElement; el = el.parentElement) {
|
||||
const overflowY = getComputedStyle(el).overflowY;
|
||||
if (overflowY !== 'auto' && overflowY !== 'scroll') continue;
|
||||
if (goingDown ? el.scrollTop + el.clientHeight < el.scrollHeight - 1 : el.scrollTop > 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private onTouchStart = (e: TouchEvent): void => {
|
||||
if (this.isTransitioning || this.isCurtainVisible()) return;
|
||||
if (e.touches.length > 0) {
|
||||
this.touchStartY = e.touches[0].clientY;
|
||||
this.touchStartX = e.touches[0].clientX;
|
||||
|
||||
const scrollY = window.scrollY || window.pageYOffset;
|
||||
const maxScroll = Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
|
||||
const target = e.target as HTMLElement | null;
|
||||
this.touchStartAtTop = scrollY <= 10 && !this.canInnerScroll(target, false);
|
||||
this.touchStartAtBottom = scrollY >= maxScroll - 10 && !this.canInnerScroll(target, true);
|
||||
}
|
||||
};
|
||||
|
||||
private onTouchEnd = (e: TouchEvent): void => {
|
||||
if (this.isTransitioning || this.isCurtainVisible() || e.changedTouches.length === 0) return;
|
||||
|
||||
const target = e.target as HTMLElement | null;
|
||||
if (target?.closest('.project-detail-overlay')) {
|
||||
return;
|
||||
}
|
||||
|
||||
const touchEndY = e.changedTouches[0].clientY;
|
||||
const touchEndX = e.changedTouches[0].clientX;
|
||||
const diffY = this.touchStartY - touchEndY;
|
||||
const diffX = this.touchStartX - touchEndX;
|
||||
|
||||
if (Math.abs(diffY) > 50 && Math.abs(diffY) > Math.abs(diffX) * 1.3) {
|
||||
if (diffY > 0 && this.touchStartAtBottom) {
|
||||
this.goToNextSection();
|
||||
} else if (diffY < 0 && this.touchStartAtTop) {
|
||||
this.goToPrevSection();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
protected goToNextSection(): void {
|
||||
const currentIndex = LANDING_SECTIONS.indexOf(this.activeSection());
|
||||
if (currentIndex >= 0 && currentIndex < LANDING_SECTIONS.length - 1) {
|
||||
const next = LANDING_SECTIONS[currentIndex + 1];
|
||||
this.setSection(next, 'top');
|
||||
}
|
||||
}
|
||||
|
||||
protected goToPrevSection(): void {
|
||||
const currentIndex = LANDING_SECTIONS.indexOf(this.activeSection());
|
||||
if (currentIndex > 0) {
|
||||
const prev = LANDING_SECTIONS[currentIndex - 1];
|
||||
this.setSection(prev, 'bottom');
|
||||
}
|
||||
}
|
||||
|
||||
private scrollActiveNavIntoView(section: LandingSection): void {
|
||||
if (typeof window === 'undefined') return;
|
||||
setTimeout(() => {
|
||||
if (!this.navContainerRef) return;
|
||||
const activeEl = this.navContainerRef.nativeElement.querySelector(`[data-nav="${section}"]`);
|
||||
if (activeEl) {
|
||||
activeEl.scrollIntoView({ behavior: 'smooth', inline: 'center', block: 'nearest' });
|
||||
}
|
||||
}, 60);
|
||||
LANDING_SECTIONS.forEach(id => {
|
||||
const el = document.getElementById(id);
|
||||
if (el) this.sectionObserver?.observe(el);
|
||||
});
|
||||
}
|
||||
|
||||
private parseInitialHash(): void {
|
||||
if (typeof window === 'undefined') return;
|
||||
const hash = window.location.hash.toLowerCase().replace('#', '');
|
||||
let targetSection: LandingSection = 'hero';
|
||||
if (hash === 'retro' || hash === 'desktop') {
|
||||
targetSection = 'retro';
|
||||
} else if (hash === 'projects' || hash === 'proyectos') {
|
||||
targetSection = 'projects';
|
||||
} else if (hash === 'simulator' || hash === 'simulador') {
|
||||
targetSection = 'simulator';
|
||||
} else if (hash === 'terminal') {
|
||||
targetSection = 'terminal';
|
||||
} else if (hash === 'contact' || hash === 'contacto') {
|
||||
targetSection = 'contact';
|
||||
const hash = window.location.hash.replace('#', '') as LandingSection;
|
||||
if (LANDING_SECTIONS.includes(hash)) {
|
||||
setTimeout(() => this.scrollToSection(hash), 120);
|
||||
}
|
||||
}
|
||||
|
||||
private scrollActiveNavIntoView(section: LandingSection): void {
|
||||
if (!this.navContainerRef) return;
|
||||
const navEl = this.navContainerRef.nativeElement;
|
||||
const activeBtn = navEl.querySelector(`[data-nav="${section}"]`) as HTMLElement | null;
|
||||
if (activeBtn) {
|
||||
activeBtn.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' });
|
||||
}
|
||||
this.activeSection.set(targetSection);
|
||||
this.scrollActiveNavIntoView(targetSection);
|
||||
}
|
||||
|
||||
private updateClock(): void {
|
||||
this.currentTime.set(this.timeFormatter.format(new Date()));
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
if (this.clockInterval !== null) {
|
||||
clearInterval(this.clockInterval);
|
||||
}
|
||||
if (this.transitionTimer !== null) {
|
||||
clearTimeout(this.transitionTimer);
|
||||
}
|
||||
if (typeof document !== 'undefined') {
|
||||
document.documentElement.style.overflow = '';
|
||||
document.body.style.overflow = '';
|
||||
}
|
||||
if (typeof window !== 'undefined') {
|
||||
window.removeEventListener('wheel', this.onWheel);
|
||||
window.removeEventListener('touchstart', this.onTouchStart);
|
||||
window.removeEventListener('touchend', this.onTouchEnd);
|
||||
}
|
||||
const formatter = new Intl.DateTimeFormat('en-GB', {
|
||||
timeZone: 'America/Guayaquil',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
hour12: false
|
||||
});
|
||||
this.currentTime.set(formatter.format(new Date()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
:host {
|
||||
display: block;
|
||||
width: 100%;
|
||||
background-color: #121517;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
|
|
@ -14,10 +14,10 @@
|
|||
aspect-ratio: 1398 / 1564;
|
||||
margin: 0 auto;
|
||||
user-select: none;
|
||||
background-color: #121517;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Imagen del Monitor de Fondo (Ocupa el 100% del ancho sin márgenes vacíos) */
|
||||
/* Imagen del Monitor de Fondo (Transparente sin corte de bordes) */
|
||||
.monitor-background-img {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
|
|
@ -26,6 +26,26 @@
|
|||
object-fit: contain;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .monitor-background-img,
|
||||
:host-context(body.theme-light) .monitor-background-img {
|
||||
filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.08));
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .vintage-monitor-wrapper::after,
|
||||
:host-context(body.theme-light) .vintage-monitor-wrapper::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 18%;
|
||||
width: 64%;
|
||||
height: 24px;
|
||||
background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.12) 0%, transparent 70%);
|
||||
filter: blur(8px);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
/* Área de Pantalla CRT Calibrada al Milímetro (81.83% del ancho del chasis) */
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="vintage-monitor-wrapper" (click)="closeStartMenu()">
|
||||
<!-- 1. Imagen del Monitor CRT en el Fondo (Chasis, Biseles, Botones y Base) -->
|
||||
<img src="/assets/images/monitor.webp" alt="Monitor CRT Vintage" class="monitor-background-img" loading="eager" />
|
||||
<!-- 1. Imagen del Monitor CRT en el Fondo (Transparente sin corte de bordes) -->
|
||||
<img src="/assets/images/monitor-transparent.webp" alt="Monitor CRT Vintage" class="monitor-background-img" loading="eager" />
|
||||
|
||||
<!-- 2. Pantalla Windows XP Sobrepuesta en el Área del Tubo (100% Visible e Interactiva) -->
|
||||
<div class="monitor-screen-glass">
|
||||
|
|
|
|||
|
|
@ -59,11 +59,17 @@
|
|||
font-family: var(--font-sans);
|
||||
font-size: clamp(2rem, 5cqw, 3rem);
|
||||
font-weight: 900;
|
||||
color: #ffffff;
|
||||
color: var(--zen-text-primary);
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .ascii-portrait,
|
||||
:host-context(body.theme-light) .ascii-portrait {
|
||||
color: #0f172a;
|
||||
opacity: 0.88;
|
||||
}
|
||||
|
||||
.about-description {
|
||||
margin: 0 0 var(--space-4) 0;
|
||||
color: var(--zen-text-secondary);
|
||||
|
|
|
|||
|
|
@ -327,3 +327,61 @@
|
|||
width: 290px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ==============================================================================
|
||||
ADAPTACIÓN PARA MODO CLARO (ZEN LIGHT)
|
||||
============================================================================== */
|
||||
|
||||
:host-context([data-theme='zen-light']) .hud-pill,
|
||||
:host-context(body.theme-light) .hud-pill {
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
border-color: rgba(15, 23, 42, 0.12);
|
||||
color: #475569;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .hud-pill:hover,
|
||||
:host-context(body.theme-light) .hud-pill:hover,
|
||||
:host-context([data-theme='zen-light']) .hud-pill.active,
|
||||
:host-context(body.theme-light) .hud-pill.active {
|
||||
background: #ffffff;
|
||||
border-color: rgba(15, 23, 42, 0.25);
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .hud-ping-badge,
|
||||
:host-context(body.theme-light) .hud-ping-badge {
|
||||
background: rgba(15, 23, 42, 0.05);
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .hud-drawer,
|
||||
:host-context(body.theme-light) .hud-drawer {
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border-color: rgba(15, 23, 42, 0.1);
|
||||
box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .node-card,
|
||||
:host-context(body.theme-light) .node-card,
|
||||
:host-context([data-theme='zen-light']) .metric-tile,
|
||||
:host-context(body.theme-light) .metric-tile {
|
||||
background: #f1f4f8;
|
||||
border-color: rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .zen-action-btn,
|
||||
:host-context(body.theme-light) .zen-action-btn {
|
||||
border-color: rgba(15, 23, 42, 0.15);
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .zen-action-btn:hover,
|
||||
:host-context(body.theme-light) .zen-action-btn:hover {
|
||||
background: rgba(15, 23, 42, 0.05);
|
||||
border-color: #0f172a;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -235,3 +235,86 @@
|
|||
.ghost-spacer {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .arch-terminal-card,
|
||||
:host-context(body.theme-light) .arch-terminal-card {
|
||||
background-color: #ffffff;
|
||||
box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.06);
|
||||
border-color: rgba(15, 23, 42, 0.12);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-window-header,
|
||||
:host-context(body.theme-light) .term-window-header {
|
||||
background-color: #f1f5f9;
|
||||
border-bottom: 1px solid rgba(15, 23, 42, 0.08);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-title-block,
|
||||
:host-context(body.theme-light) .term-title-block {
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-body,
|
||||
:host-context(body.theme-light) .term-body {
|
||||
background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.04) 0%, transparent 60%);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-image-banner,
|
||||
:host-context(body.theme-light) .term-image-banner {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-banner-text,
|
||||
:host-context([data-theme='zen-light']) .term-banner,
|
||||
:host-context(body.theme-light) .term-banner-text,
|
||||
:host-context(body.theme-light) .term-banner {
|
||||
color: #0369a1;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-output,
|
||||
:host-context(body.theme-light) .term-output {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .typed-command,
|
||||
:host-context([data-theme='zen-light']) .term-input,
|
||||
:host-context(body.theme-light) .typed-command,
|
||||
:host-context(body.theme-light) .term-input {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-ghost-text,
|
||||
:host-context(body.theme-light) .term-ghost-text {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .prompt-user,
|
||||
:host-context(body.theme-light) .prompt-user {
|
||||
color: #0284c7;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .prompt-path,
|
||||
:host-context(body.theme-light) .prompt-path {
|
||||
color: #7c3aed;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .prompt-symbol,
|
||||
:host-context(body.theme-light) .prompt-symbol {
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .term-ascii,
|
||||
:host-context(body.theme-light) .term-ascii {
|
||||
color: #2563eb;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .git-branch,
|
||||
:host-context(body.theme-light) .git-branch {
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .branch-name,
|
||||
:host-context(body.theme-light) .branch-name {
|
||||
color: #7c3aed;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
:host {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.matrix-rain-canvas {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
<canvas #canvas class="matrix-rain-canvas" aria-hidden="true"></canvas>
|
||||
|
|
@ -0,0 +1,242 @@
|
|||
import {
|
||||
Component,
|
||||
ChangeDetectionStrategy,
|
||||
ElementRef,
|
||||
ViewChild,
|
||||
AfterViewInit,
|
||||
OnDestroy,
|
||||
NgZone,
|
||||
inject
|
||||
} from '@angular/core';
|
||||
import { ThemeService } from '../../../../application/services/theme.service';
|
||||
|
||||
interface RainColumn {
|
||||
x: number;
|
||||
y: number;
|
||||
speed: number;
|
||||
length: number;
|
||||
opacity: number;
|
||||
characters: string[];
|
||||
}
|
||||
|
||||
const BINARY_CHARS = '01';
|
||||
const HEX_CHARS = '0123456789ABCDEF';
|
||||
const KATAKANA_CHARS = 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン';
|
||||
const CODE_CHARS = '{}[]()<>&|/\\:;=+-_*#$%@?!~^';
|
||||
const TERM_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
||||
|
||||
@Component({
|
||||
selector: 'app-matrix-rain',
|
||||
standalone: true,
|
||||
templateUrl: './matrix-rain.component.html',
|
||||
styleUrl: './matrix-rain.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class MatrixRainComponent implements AfterViewInit, OnDestroy {
|
||||
@ViewChild('canvas', { static: true }) private readonly canvasRef!: ElementRef<HTMLCanvasElement>;
|
||||
|
||||
private readonly hostRef = inject(ElementRef<HTMLElement>);
|
||||
private readonly ngZone = inject(NgZone);
|
||||
private readonly themeService = inject(ThemeService);
|
||||
|
||||
private readonly columns: RainColumn[] = [];
|
||||
private context?: CanvasRenderingContext2D;
|
||||
private animationFrameId?: number;
|
||||
private intersectionObserver?: IntersectionObserver;
|
||||
private resizeObserver?: ResizeObserver;
|
||||
private motionQuery?: MediaQueryList;
|
||||
private isVisible = false;
|
||||
private isReducedMotion = false;
|
||||
private lastFrameTime = 0;
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
const canvas = this.canvasRef.nativeElement;
|
||||
this.context = canvas.getContext('2d', { alpha: true }) ?? undefined;
|
||||
if (!this.context) return;
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
this.motionQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
|
||||
this.isReducedMotion = this.motionQuery.matches;
|
||||
this.motionQuery.addEventListener('change', this.onMotionPreferenceChange);
|
||||
}
|
||||
|
||||
// Ejecutar fuera de Angular Zone para evitar disparar ciclos de Change Detection en cada frame
|
||||
this.ngZone.runOutsideAngular(() => {
|
||||
this.resizeObserver = new ResizeObserver(() => this.resizeCanvas());
|
||||
this.resizeObserver.observe(this.hostRef.nativeElement);
|
||||
|
||||
this.intersectionObserver = new IntersectionObserver(([entry]) => {
|
||||
const wasVisible = this.isVisible;
|
||||
this.isVisible = entry.isIntersecting;
|
||||
|
||||
if (this.isVisible && !wasVisible && !this.isReducedMotion) {
|
||||
this.lastFrameTime = 0;
|
||||
this.startAnimation();
|
||||
} else if (!this.isVisible && wasVisible) {
|
||||
this.stopAnimation();
|
||||
}
|
||||
}, { threshold: 0.01 });
|
||||
|
||||
this.intersectionObserver.observe(this.hostRef.nativeElement);
|
||||
this.resizeCanvas();
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.stopAnimation();
|
||||
this.motionQuery?.removeEventListener('change', this.onMotionPreferenceChange);
|
||||
this.intersectionObserver?.disconnect();
|
||||
this.resizeObserver?.disconnect();
|
||||
}
|
||||
|
||||
private readonly onMotionPreferenceChange = (event: MediaQueryListEvent): void => {
|
||||
this.isReducedMotion = event.matches;
|
||||
if (this.isReducedMotion) {
|
||||
this.stopAnimation();
|
||||
this.draw();
|
||||
} else if (this.isVisible) {
|
||||
this.lastFrameTime = 0;
|
||||
this.startAnimation();
|
||||
}
|
||||
};
|
||||
|
||||
private startAnimation(): void {
|
||||
if (this.animationFrameId === undefined && !this.isReducedMotion) {
|
||||
this.animationFrameId = requestAnimationFrame(this.animate);
|
||||
}
|
||||
}
|
||||
|
||||
private stopAnimation(): void {
|
||||
if (this.animationFrameId !== undefined) {
|
||||
cancelAnimationFrame(this.animationFrameId);
|
||||
this.animationFrameId = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
private readonly animate = (timestamp: number): void => {
|
||||
this.animationFrameId = undefined;
|
||||
if (!this.isVisible || this.isReducedMotion) return;
|
||||
|
||||
const elapsed = this.lastFrameTime === 0 ? 0 : Math.min(timestamp - this.lastFrameTime, 50);
|
||||
this.lastFrameTime = timestamp;
|
||||
|
||||
this.update(elapsed / 1000);
|
||||
this.draw();
|
||||
|
||||
this.animationFrameId = requestAnimationFrame(this.animate);
|
||||
};
|
||||
|
||||
private resizeCanvas(): void {
|
||||
const canvas = this.canvasRef.nativeElement;
|
||||
const width = window.innerWidth || this.hostRef.nativeElement.clientWidth || 320;
|
||||
const height = window.innerHeight || this.hostRef.nativeElement.clientHeight || 600;
|
||||
const pixelRatio = Math.min(window.devicePixelRatio || 1, 2);
|
||||
|
||||
canvas.width = Math.max(1, Math.floor(width * pixelRatio));
|
||||
canvas.height = Math.max(1, Math.floor(height * pixelRatio));
|
||||
this.context?.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);
|
||||
|
||||
this.createColumns(width, height);
|
||||
this.draw();
|
||||
}
|
||||
|
||||
private createColumns(width: number, height: number): void {
|
||||
const fontSize = Math.max(13, Math.min(18, width / 64));
|
||||
const columnCount = Math.max(30, Math.floor(width / (fontSize * 0.75)));
|
||||
this.columns.length = 0;
|
||||
|
||||
for (let index = 0; index < columnCount; index += 1) {
|
||||
const length = Math.floor(Math.random() * 26) + 14;
|
||||
this.columns.push({
|
||||
x: (index / columnCount) * width + Math.random() * fontSize * 0.4,
|
||||
y: -Math.random() * (height * 0.95) - length * fontSize,
|
||||
speed: Math.floor(Math.random() * 120) + 140,
|
||||
length,
|
||||
opacity: 0.25 + Math.random() * 0.65,
|
||||
characters: Array.from({ length }, () => this.randomCharacter())
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private update(deltaSeconds: number): void {
|
||||
const width = window.innerWidth || 320;
|
||||
const height = window.innerHeight || 600;
|
||||
const fontSize = Math.max(13, Math.min(18, width / 64));
|
||||
|
||||
for (const column of this.columns) {
|
||||
column.y += column.speed * deltaSeconds;
|
||||
if (column.y - column.length * fontSize > height) {
|
||||
column.y = -Math.random() * height * 0.65 - column.length * fontSize;
|
||||
column.speed = Math.floor(Math.random() * 120) + 140;
|
||||
column.length = Math.floor(Math.random() * 26) + 14;
|
||||
column.opacity = 0.25 + Math.random() * 0.65;
|
||||
column.characters = Array.from({ length: column.length }, () => this.randomCharacter());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private draw(): void {
|
||||
if (!this.context) return;
|
||||
const width = window.innerWidth || 320;
|
||||
const height = window.innerHeight || 600;
|
||||
const fontSize = Math.max(13, Math.min(18, width / 64));
|
||||
|
||||
this.context.clearRect(0, 0, width, height);
|
||||
this.context.font = `${fontSize}px monospace`;
|
||||
this.context.textAlign = 'center';
|
||||
this.context.textBaseline = 'top';
|
||||
|
||||
const isLight = this.themeService.isLightMode();
|
||||
|
||||
for (const column of this.columns) {
|
||||
for (let i = 0; i < column.characters.length; i++) {
|
||||
const charY = column.y + i * fontSize;
|
||||
if (charY < -fontSize || charY > height) continue;
|
||||
|
||||
const isHead = i === 0;
|
||||
const isHighlight = i === Math.floor(column.length * 0.3) && column.opacity > 0.4;
|
||||
const trailAlpha = column.opacity * (1 - i / (column.length * 1.15));
|
||||
const edgeFade = Math.min(1, Math.max(0, (height - charY) / (fontSize * 4)));
|
||||
const alpha = Math.max(0, trailAlpha * edgeFade);
|
||||
|
||||
if (alpha <= 0) continue;
|
||||
|
||||
if (isLight) {
|
||||
this.context.fillStyle = isHead
|
||||
? `rgba(15, 23, 42, ${Math.min(1, alpha + 0.45)})`
|
||||
: isHighlight
|
||||
? `rgba(21, 128, 61, ${Math.min(1, alpha + 0.25)})`
|
||||
: `rgba(22, 101, 52, ${alpha * 0.9})`;
|
||||
|
||||
if (isHead || isHighlight) {
|
||||
this.context.shadowColor = 'rgba(21, 128, 61, 0.4)';
|
||||
this.context.shadowBlur = isHead ? 4 : 2;
|
||||
}
|
||||
} else {
|
||||
this.context.fillStyle = isHead
|
||||
? `rgba(235, 255, 240, ${Math.min(1, alpha + 0.4)})`
|
||||
: isHighlight
|
||||
? `rgba(80, 255, 130, ${alpha})`
|
||||
: `rgba(20, 185, 85, ${alpha})`;
|
||||
|
||||
if (isHead || isHighlight) {
|
||||
this.context.shadowColor = 'rgba(40, 255, 110, 0.85)';
|
||||
this.context.shadowBlur = isHead ? 8 : 4;
|
||||
}
|
||||
}
|
||||
|
||||
this.context.fillText(column.characters[i], column.x, charY);
|
||||
this.context.shadowBlur = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private randomCharacter(): string {
|
||||
const r = Math.random();
|
||||
if (r < 0.4) return BINARY_CHARS[Math.floor(Math.random() * BINARY_CHARS.length)];
|
||||
if (r < 0.65) return KATAKANA_CHARS[Math.floor(Math.random() * KATAKANA_CHARS.length)];
|
||||
if (r < 0.8) return HEX_CHARS[Math.floor(Math.random() * HEX_CHARS.length)];
|
||||
if (r < 0.9) return CODE_CHARS[Math.floor(Math.random() * CODE_CHARS.length)];
|
||||
return TERM_CHARS[Math.floor(Math.random() * TERM_CHARS.length)];
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,99 @@
|
|||
:host {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tech-marquee-wrapper {
|
||||
width: 100%;
|
||||
padding: 1.5rem 0;
|
||||
border-top: 1px solid var(--zen-border-subtle);
|
||||
border-bottom: 1px solid var(--zen-border-subtle);
|
||||
background: rgba(10, 12, 16, 0.4);
|
||||
backdrop-filter: blur(12px);
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .tech-marquee-wrapper,
|
||||
:host-context(body.theme-light) .tech-marquee-wrapper {
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.tech-marquee-container {
|
||||
max-width: 1540px;
|
||||
margin: 0 auto;
|
||||
padding: 0 clamp(1rem, 3vw, 2.5rem);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.tech-brand-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0.85rem;
|
||||
border-radius: var(--zen-radius-sm);
|
||||
background: transparent;
|
||||
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
color: var(--zen-text-secondary);
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.tech-brand-item:hover {
|
||||
color: var(--zen-text-primary);
|
||||
transform: translateY(-2px);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
:host-context([data-theme='zen-light']) .tech-brand-item:hover,
|
||||
:host-context(body.theme-light) .tech-brand-item:hover {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.tech-icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tech-icon ::ng-deep svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tech-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.tech-name {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.tech-sub {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.65rem;
|
||||
color: var(--zen-text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.tech-marquee-container {
|
||||
justify-content: center;
|
||||
gap: 0.75rem 1.25rem;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<section class="tech-marquee-wrapper" aria-label="Stack tecnológico de ingeniería">
|
||||
<div class="tech-marquee-container">
|
||||
@for (tech of techList; track tech.name) {
|
||||
<div class="tech-brand-item" [attr.aria-label]="tech.name + ' - ' + tech.category">
|
||||
<span class="tech-icon" [innerHTML]="tech.svg" aria-hidden="true"></span>
|
||||
<div class="tech-meta">
|
||||
<span class="tech-name">{{ tech.name }}</span>
|
||||
<span class="tech-sub">{{ tech.category }}</span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||
|
||||
interface TechItem {
|
||||
name: string;
|
||||
category: string;
|
||||
svg: string;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-tech-stack-strip',
|
||||
standalone: true,
|
||||
templateUrl: './tech-stack-strip.component.html',
|
||||
styleUrl: './tech-stack-strip.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class TechStackStripComponent {
|
||||
// Tecnologías empresariales solicitadas por el usuario con SVGs vectoriales nativos de alta fidelidad
|
||||
protected readonly techList: readonly TechItem[] = [
|
||||
{
|
||||
name: '.NET Core',
|
||||
category: 'Backend Core',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-4.7 14.5c-.4 0-.8-.1-1.1-.3-.3-.2-.5-.5-.7-.9-.2-.4-.3-.8-.3-1.4 0-.6.1-1.1.3-1.5.2-.4.4-.7.7-.9.3-.2.7-.3 1.1-.3.4 0 .7.1 1 .2.3.2.5.4.6.7.1.3.2.7.2 1.1h-1.2c0-.3-.1-.5-.2-.7-.1-.1-.3-.2-.5-.2-.2 0-.4.1-.5.2-.1.1-.2.3-.3.6-.1.3-.1.6-.1 1 0 .4 0 .7.1 1 .1.3.2.5.3.6.1.1.3.2.5.2.2 0 .4-.1.5-.2.1-.1.2-.3.2-.6h1.2c0 .4-.1.8-.2 1.1-.1.3-.3.6-.6.7-.3.2-.6.2-1 .2zm3.3 0V9.5h1.3l2.8 4.7V9.5h1.2v7h-1.2l-2.9-4.8v4.8h-1.2zm6.6-4.6h-2.1v-1.1h2.1v1.1zm0 2.3h-2.1v-1.1h2.1v1.1zm0 2.3h-2.1v-1.1h2.1v1.1z"/></svg>`
|
||||
},
|
||||
{
|
||||
name: 'Angular',
|
||||
category: 'Frontend Engine',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2.5L3.5 5.5l1.3 11.2L12 21.5l7.2-4.8 1.3-11.2L12 2.5zm0 2.4l5.9 2.1-1 8.6L12 18.8l-4.9-3.2-1-8.6 5.9-2.1zm0 2.6L8.4 15h1.8l.9-2.2h3.8l.9 2.2h1.8L12 7.5zm0 2.2l1.2 3.1h-2.4l1.2-3.1z"/></svg>`
|
||||
},
|
||||
{
|
||||
name: 'Docker',
|
||||
category: 'Containers',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M13.98 10.02h2.04v2.04h-2.04zm-3.06 0h2.04v2.04h-2.04zm-3.06 0h2.04v2.04H7.86zm-3.06 0h2.04v2.04H4.8zm9.18-3.06h2.04V9H13.98zm-3.06 0h2.04V9h-2.04zm-3.06 0h2.04V9H7.86zm6.12-3.06h2.04v2.04h-2.04zm-3.06 0h2.04v2.04h-2.04zm10.74 8.76c-.48-.34-1.54-.42-2.38-.28-.14-.7-.52-1.34-1.12-1.78l-.66-.46-.42.7c-.5 1.1-1.38 1.4-2.18 1.54H2.4c-.22 0-.4.18-.4.4 0 2.44.82 4.46 2.44 5.74C6.26 21.04 8.76 21.5 12 21.5c6.32 0 10.34-3.32 10.66-8.76.02-.38-.24-.76-.64-.86z"/></svg>`
|
||||
},
|
||||
{
|
||||
name: 'AWS',
|
||||
category: 'Cloud Infrastructure',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M6.7 15.6c-.6 0-1.1-.2-1.5-.5-.4-.3-.6-.8-.6-1.4 0-.8.4-1.4 1.1-1.8.8-.4 1.8-.6 3.1-.6v-.3c0-.5-.1-.8-.4-1.1-.3-.2-.7-.4-1.3-.4-.5 0-1 .1-1.4.3-.4.2-.7.5-.9.9l-.9-.7c.3-.5.7-.9 1.3-1.2.6-.3 1.3-.4 2.1-.4.9 0 1.6.2 2.1.7.5.5.8 1.2.8 2.1v4h-1.2v-.9c-.7.7-1.5 1.1-2.3 1.1zm.4-1.1c.5 0 1-.2 1.4-.5.4-.3.7-.8.7-1.3v-.6c-1 0-1.8.2-2.3.5-.5.3-.8.7-.8 1.2 0 .4.1.6.3.8.2.2.4.3.7.3zm6.3 1h-1.3l-1.9-6.3h1.4l1.2 4.7 1.3-4.7h1.3l1.3 4.7 1.2-4.7h1.3l-1.9 6.3h-1.3l-1.3-4.5-1.3 4.5zm-8.8 3.8c4.2 1.6 9 1.6 13.2 0 .4-.1.8.2.8.6 0 .3-.2.6-.5.7-4.5 1.7-9.6 1.7-14.1 0-.4-.1-.5-.5-.4-.9.1-.3.4-.5.8-.4zm13.7-.7l1.5-1.5c.2-.2.6-.1.6.2v3.1c0 .3-.3.5-.6.3l-1.5-1.5c-.2-.1-.2-.4 0-.6z"/></svg>`
|
||||
},
|
||||
{
|
||||
name: 'Oracle Cloud',
|
||||
category: 'Enterprise Cloud',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M16.4 5H7.6C3.4 5 0 8.4 0 12.6s3.4 7.6 7.6 7.6h8.8c4.2 0 7.6-3.4 7.6-7.6S20.6 5 16.4 5zm0 12.5H7.6C4.9 17.5 2.7 15.3 2.7 12.6S4.9 7.7 7.6 7.7h8.8c2.7 0 4.9 2.2 4.9 4.9s-2.2 4.9-4.9 4.9z"/></svg>`
|
||||
},
|
||||
{
|
||||
name: 'PostgreSQL',
|
||||
category: 'Relational DB',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 2.2c3.5 0 6.5 2.3 7.4 5.6-.4-.2-.8-.4-1.3-.5-.3-.7-.7-1.3-1.3-1.8-.7-.6-1.6-1-2.6-1.1-.3-.4-.7-.8-1.1-1.1-.3-.3-.7-.6-1.1-.7v-.4zm-2.8 1.7c.3.1.6.3.8.5.5.4.9.9 1.2 1.4-1.3.2-2.5.7-3.4 1.5-.7-.9-1-2-.9-3.1.7-.2 1.5-.3 2.3-.3zm-4.7 3.3c.2.8.6 1.6 1.2 2.2-1.1.9-1.9 2.1-2.2 3.5-.3-1.3-.2-2.7.3-3.9.2-.7.4-1.3.7-1.8zm2.7 3.2c1-.9 2.3-1.4 3.7-1.6.4.8.6 1.7.6 2.6v.4c-.6.2-1.3.4-1.9.6-.8.3-1.6.7-2.2 1.3-.4-.9-.5-2.2-.2-3.3zm2.8 7.3c-.6 0-1.1-.2-1.6-.5-.5-.4-.8-.9-.9-1.5.7-.6 1.6-1 2.5-1.3.6-.2 1.2-.4 1.8-.5v2c-.6.8-1.2 1.3-1.8 1.3zm6.6-2c-.5.8-1.2 1.4-2 1.8v-2.3c.5-.1 1-.3 1.5-.6.3.3.4.7.5 1.1zm1.5-2.6c-.6.3-1.2.6-1.8.8-.2-.8-.6-1.5-1.2-2.1.6-.2 1.2-.5 1.8-.9.6.7 1 1.4 1.2 2.2z"/></svg>`
|
||||
},
|
||||
{
|
||||
name: 'Linux',
|
||||
category: 'SecOps & OS',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12.3 2c-2.4 0-4.3 1.8-4.3 4.1 0 1.2.5 2.3 1.3 3-.2.8-.8 2.2-1.7 3.1-.7.7-1.5 1.2-2.3 1.4-.4.1-.7.4-.7.8 0 .5.3.9.7 1 .8.2 1.6.7 2.2 1.3.8.8 1.3 1.8 1.5 2.8.1.5.5.9 1 .9h8.4c.5 0 .9-.4 1-.9.2-1 .7-2 1.5-2.8.6-.6 1.4-1.1 2.2-1.3.4-.1.7-.5.7-1 0-.4-.3-.7-.7-.8-.8-.2-1.6-.7-2.3-1.4-.9-.9-1.5-2.3-1.7-3.1.8-.7 1.3-1.8 1.3-3 0-2.3-1.9-4.1-4.3-4.1h-.6zm-.3 2h.6c1.3 0 2.3 1 2.3 2.1 0 .6-.3 1.2-.7 1.6l-.3.3.1.4c.2 1.2.8 2.4 1.7 3.3.3.3.6.5.9.7-.7.5-1.3 1.2-1.7 2-.5.9-.8 1.9-.9 3h-4c-.1-1.1-.4-2.1-.9-3-.4-.8-1-1.5-1.7-2 .3-.2.6-.4.9-.7.9-.9 1.5-2.1 1.7-3.3l.1-.4-.3-.3c-.4-.4-.7-1-.7-1.6 0-1.1 1-2.1 2.3-2.1z"/></svg>`
|
||||
},
|
||||
{
|
||||
name: 'TypeScript',
|
||||
category: 'Type Safety',
|
||||
svg: `<svg viewBox="0 0 24 24" fill="currentColor"><path d="M3 3h18v18H3V3zm8.3 10.4h1.7v-1.3H9.4v1.3h1.7V17h1.9v-3.6h-1.7zm3.4 3.7c.7 0 1.3-.2 1.8-.5.5-.3.8-.8.9-1.4h-1.6c-.1.3-.2.5-.4.6-.2.1-.5.2-.8.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.4.1-.7.4-.9.3-.2.7-.4 1.3-.6.8-.3 1.4-.6 1.8-1 .4-.4.6-1 .6-1.6 0-.7-.3-1.3-.8-1.7-.5-.4-1.2-.6-2-.6-.8 0-1.5.2-2 .7-.5.5-.8 1.1-.8 1.8h1.6c0-.4.2-.6.4-.8.2-.2.5-.3.8-.3.4 0 .6.1.8.3.2.2.3.4.3.7 0 .3-.1.5-.3.7-.2.2-.6.3-1.2.5-.8.3-1.4.6-1.8 1-.4.4-.6 1-.6 1.7 0 .7.3 1.3.8 1.7.5.5 1.2.7 2 .7z"/></svg>`
|
||||
}
|
||||
];
|
||||
}
|
||||
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 462 KiB |
|
Before Width: | Height: | Size: 310 KiB After Width: | Height: | Size: 300 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 28 KiB |