Updated a lot

This commit is contained in:
2026-02-27 02:48:23 -05:00
parent 7a5f04497b
commit 76f26454d3
21 changed files with 76 additions and 42 deletions
+9 -8
View File
@@ -1,5 +1,6 @@
<?php
$title = 'Log';
$description = "A running tab of what I've been into.";
include $_SERVER['DOCUMENT_ROOT'] . '/includes/head.php';
$data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/assets/data/log.json'), true);
@@ -11,24 +12,24 @@ $fields = ['listening', 'watching', 'reading', 'working on', 'thinking'];
<main class="pt-16">
<div class="max-w-3xl mx-auto px-4 sm:px-6 py-12">
<h1 class="text-2xl font-semibold mb-4">Log</h1>
<p class="text-neutral-300 text-sm mb-16 text-center">What I've been doing recently. Don't expect this to be updated recently</p>
<h1 class="text-2xl font-semibold mb-6">Log</h1>
<p class="text-neutral-300 text-lg mb-16 text-center">What I've been spending my time on. It's most likely not upto date.</p>
<div class="space-y-12">
<?php if (empty($entries)): ?>
<p class="text-neutral-700 text-sm">Nothing yet.</p>
<p class="text-neutral-700 text-base">Nothing yet.</p>
<?php endif; ?>
<?php foreach ($entries as $entry): ?>
<article>
<h2 class="mb-5"><?= htmlspecialchars($entry['title']) ?></h2>
<p class="text-[#a3a3a3] text-xs font-mono mb-6"><?= date('F j, Y', strtotime($entry['date'])) ?></p>
<h2 class="text-xl text-neutral-300 uppercase tracking-widest mb-5"><?= htmlspecialchars($entry['title']) ?></h2>
<p class="text-[#a3a3a3] text-sm font-mono mb-6"><?= date('F j, Y', strtotime($entry['date'])) ?></p>
<dl class="space-y-3">
<?php foreach ($fields as $field): ?>
<?php if (!empty($entry[$field])): ?>
<div class="grid grid-cols-[90px_1fr] gap-4">
<dt class="text-neutral-500 text-xs"><?= $field ?></dt>
<dd class="text-neutral-200 text-sm"><?= htmlspecialchars($entry[$field]) ?></dd>
<div class="grid grid-cols-[110px_1fr] gap-4">
<dt class="text-neutral-400 text-base"><?= $field ?></dt>
<dd class="text-neutral-200 text-base"><?= htmlspecialchars($entry[$field]) ?></dd>
</div>
<?php endif; ?>
<?php endforeach; ?>