prepare('INSERT INTO saved_vibes (vibe, keywords) VALUES (?, ?)'); $stmt->execute([$vibe, $keywords]); $saved_vibe_id = $pdo->lastInsertId(); header("Location: vibe.php?saved_id=" . $saved_vibe_id); exit; } elseif ($action === 'generate' && $vibe) { $css_content = get_vibe_css($vibe); file_put_contents($vibe_css_path, $css_content); $vibe_generated = true; } } $saved_vibes = []; if ($pdo) { $stmt = $pdo->query('SELECT id, vibe, keywords, created_at FROM saved_vibes ORDER BY created_at DESC'); $saved_vibes = $stmt->fetchAll(); } ?> Vibe Generator - LAMP Demo

Vibe Saved!

Your vibe has been saved. You can share it with this link:

" readonly>

Create a Vibe Site

Choose an aesthetic, provide keywords, and generate a themed micro-site.

1. Choose a Vibe

['icon' => 'bi-pc-display-horizontal', 'desc' => '90s nostalgia, pixelated and chunky.'], 'Synthwave' => ['icon' => 'bi-sunset', 'desc' => 'Neon grids, chrome, and 80s futurism.'], 'Brutalism' => ['icon' => 'bi-building', 'desc' => 'Raw, blocky, and unapologetically functional.'], 'Dad-garage' => ['icon' => 'bi-tools', 'desc' => 'Rugged, practical, and built to last.'], 'Zen-mono' => ['icon' => 'bi-yin-yang', 'desc' => 'Minimalist, monochrome, and serene.'] ]; foreach ($vibes as $name => $details): ?>

2. Enter Keywords

Previously Saved Vibes

A micro-site generated with the vibe.

Feature One

This is a sample card.

Feature Two

Styles are from the vibe.

Feature Three

Save or start over.

Start Over