From 80d945cbf3161effb65dfd9be13d5e4ae7d493ce Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 5 Dec 2025 16:55:01 +0000 Subject: [PATCH] v1 --- assets/css/custom.css | 47 +++++ db/migrations/001_create_delulus_table.sql | 7 + db/seed.php | 34 +++ index.php | 227 ++++++++------------- 4 files changed, 175 insertions(+), 140 deletions(-) create mode 100644 assets/css/custom.css create mode 100644 db/migrations/001_create_delulus_table.sql create mode 100644 db/seed.php diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..1a14744 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,47 @@ +body { + background-color: #FFFFFF; + font-family: 'Poppins', sans-serif; +} + +.navbar { + border-bottom: 1px solid #eee; +} + +.delulu-card { + background-color: #F8F9FA; + border: none; + border-radius: 1rem; + transition: all 0.2s ease-in-out; +} + +.delulu-card:hover { + transform: translateY(-5px); + box-shadow: 0 4px 20px rgba(0,0,0,0.05); +} + +.card-title { + color: #A076F9; + font-weight: bold; +} + +.card-subtitle { + color: #74C0FC; +} + +.btn-primary { + background-color: #A076F9; + border-color: #A076F9; +} + +.btn-primary:hover { + background-color: #74C0FC; + border-color: #74C0FC; +} + +.gradient-bg { + background: linear-gradient(135deg, #A076F9, #74C0FC); + color: white; + padding: 4rem 2rem; + border-radius: 1rem; + margin-bottom: 2rem; +} diff --git a/db/migrations/001_create_delulus_table.sql b/db/migrations/001_create_delulus_table.sql new file mode 100644 index 0000000..46d74fc --- /dev/null +++ b/db/migrations/001_create_delulus_table.sql @@ -0,0 +1,7 @@ +CREATE TABLE IF NOT EXISTS delulus ( + id INT AUTO_INCREMENT PRIMARY KEY, + username VARCHAR(255) NOT NULL, + title VARCHAR(255) NOT NULL, + body TEXT NOT NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); diff --git a/db/seed.php b/db/seed.php new file mode 100644 index 0000000..0eafecb --- /dev/null +++ b/db/seed.php @@ -0,0 +1,34 @@ + 'DreamyDolphin', + 'title' => 'Manifesting a trip to Japan', + 'body' => 'I can already taste the ramen and see the cherry blossoms. My bags are packed (in my head).' + ], + [ + 'username' => 'CosmicCat', + 'title' => 'My cat is secretly a world-renowned philosopher', + 'body' => 'He just sits there, judging my life choices. I am sure he is pondering the meaning of existence.' + ], + [ + 'username' => 'StarlightSailor', + 'title' => 'I am the main character', + 'body' => 'The world is my movie, and I am just waiting for the plot twist. It is going to be epic.' + ], + [ + 'username' => 'MoonbeamMoth', + 'title' => 'My plants are my therapists', + 'body' => 'They listen to all my problems and never talk back. Best therapy session ever.' + ], +]; + +$pdo = db(); +$stmt = $pdo->prepare('INSERT INTO delulus (username, title, body) VALUES (?, ?, ?)'); + +foreach ($delulus as $delulu) { + $stmt->execute([$delulu['username'], $delulu['title'], $delulu['body']]); +} + +echo 'Database seeded successfully!'; diff --git a/index.php b/index.php index 7205f3d..5bac7bf 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,97 @@ query('SELECT username, title, body, created_at FROM delulus ORDER BY created_at DESC'); + $delulus = $stmt->fetchAll(); +} catch (PDOException $e) { + // For now, we just show an error. In a real app, you'd log this. + error_log($e->getMessage()); +} + +$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'A playful social space where imagination meets validation.'; +$projectTitle = 'Delulu is the New Sululu'; ?> - - - New Style - - - - - - - - - - - - - - - - - - - + + + <?= htmlspecialchars($projectTitle) ?> + + + + + + + + + + + + + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- + + + +
+
+

Welcome to the Delulu Space

+

Share your dreams, manifest your future, and find your sululu.

+
+ +
+ +
+
No delulus posted yet. Be the first!
+
+ + +
+
+
+
+
@
+

100 ? '...' : '') ?>

+
+ +
+
+ + +
+
+ + + + - + \ No newline at end of file