nicholai 0c41e45b97 Update site content and layout for personal branding
- Changed site title and description to reflect personal branding as a VFX Artist & Technical Generalist.
- Added social links for contact and networking.
- Revamped footer layout for improved aesthetics and functionality.
- Reorganized blog and homepage layouts to enhance user experience and visual appeal.
- Updated global styles to incorporate Tailwind CSS for a modern design approach.
2025-12-06 11:56:28 -07:00

59 lines
2.3 KiB
Plaintext

---
import { Image } from 'astro:assets';
import { getCollection } from 'astro:content';
import BaseLayout from '../../layouts/BaseLayout.astro';
import FormattedDate from '../../components/FormattedDate.astro';
import { SITE_DESCRIPTION, SITE_TITLE } from '../../consts';
const posts = (await getCollection('blog')).sort(
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
);
---
<BaseLayout title={SITE_TITLE} description={SITE_DESCRIPTION}>
<section class="container mx-auto px-6 lg:px-12">
<div class="mb-16">
<h1 class="text-6xl md:text-8xl font-bold uppercase text-white mb-4 tracking-tighter">Blog</h1>
<p class="text-slate-400 font-mono">/// THOUGHTS & PROCESS</p>
</div>
<ul class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-16">
{
posts.map((post) => (
<li class="group">
<a href={`/blog/${post.id}/`} class="block">
<div class="relative aspect-[16/9] mb-6 overflow-hidden border border-white/10 group-hover:border-brand-accent/50 transition-colors">
{post.data.heroImage && (
<Image
width={720}
height={360}
src={post.data.heroImage}
alt=""
class="w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"
/>
)}
<div class="absolute inset-0 bg-brand-dark/20 group-hover:bg-transparent transition-colors"></div>
</div>
<div class="flex flex-col">
<div class="flex items-center gap-2 mb-3">
<span class="text-xs font-mono text-brand-accent uppercase tracking-widest">
<FormattedDate date={post.data.pubDate} />
</span>
</div>
<h4 class="text-2xl font-bold text-white uppercase mb-2 group-hover:text-brand-accent transition-colors leading-tight">
{post.data.title}
</h4>
<p class="text-slate-400 line-clamp-2">
{/* We could add a description field to blog posts or just show title */}
</p>
<span class="mt-4 text-xs font-bold uppercase tracking-widest text-slate-500 group-hover:text-white transition-colors flex items-center gap-2">
Read Article <span class="block w-4 h-[1px] bg-slate-500 group-hover:bg-brand-accent transition-colors"></span>
</span>
</div>
</a>
</li>
))
}
</ul>
</section>
</BaseLayout>