@extends('layouts.app')

@section('styles')
<style>
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4rem 2rem 2rem;
    }
    .hero .container {
        text-align: center;
        padding: 2rem;
    }
    .hero h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #f8fafc;
    }
    .hero h1 .dim {
        display: inline-block;
        max-width: 0;
        overflow: hidden;
        vertical-align: bottom;
        color: #475569;
        transition: max-width 0.8s ease;
    }
    .hero h1.expanded .dim {
        max-width: 10ch;
    }
    .hero p {
        font-size: 1.25rem;
        color: #94a3b8;
        max-width: 500px;
        line-height: 1.6;
        margin: 0 auto;
    }
    .projects-section {
        padding: 2rem 2rem 4rem;
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }
    .projects-section h2 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: #f8fafc;
    }
</style>
@endsection

@section('content')
<div class="hero">
    <div class="container">
        <h1 id="title">M<span class="dim">ikkel</span>Thy<span class="dim">gesen</span>.dev</h1>
        <p>Thanks for stopping by. This site is currently under construction — stay tuned for more.</p>
    </div>
</div>
<div class="projects-section">
    <h2>Projects</h2>
    <div class="projects-grid">
        <a href="/projects/brewnite" class="project-card">
            <img src="/images/brewnite.png" alt="Brewnite">
            <div class="card-body">
                <h3>Brewnite</h3>
                <p>Find and collect all your homebrew packages</p>
            </div>
        </a>
        <a href="/projects/gitbit" class="project-card">
            <img src="/images/project2.png" alt="Gitbit">
            <div class="card-body">
                <h3>Gitbit</h3>
                <p>Ad hoc git repos for quick pushing and cloning</p>
            </div>
        </a>
    </div>
</div>
@endsection

@section('scripts')
<script>
    setTimeout(function() {
        document.getElementById('title').classList.add('expanded');
    }, 1000);
</script>
@endsection