30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php require __DIR__ . '/inc/header.php'; ?>
|
||
|
||
<h1>hey, I'm 0x <span class="phonetic">/ˈzɪəroʊ ɛks/</span></h1>
|
||
<p>welcome to my corner of the web. just PHP printing HTML as God intended.</p>
|
||
|
||
<section class="status-widget">
|
||
<h2>status</h2>
|
||
<div id="status" hx-get="/status.php" hx-trigger="every 3s" hx-ext="morph" hx-swap="morph:innerHTML">
|
||
<?php include __DIR__ . '/status.php'; ?>
|
||
</div>
|
||
</section>
|
||
|
||
<?php $age = (new DateTime('2002-11-07'))->diff(new DateTime('today'))->y; ?>
|
||
<p>I'm a <?= $age ?>-year-old developer (I know I'm unc), I hold a bachelor's degree in computer science (BUT Informatique) and I'm also a 42 school student.</p>
|
||
|
||
<p>if you wanna see what I'm building, feel free to check out my <a href="https://github.com/0xa00">GitHub</a> !</p>
|
||
|
||
<section class="posts-widget">
|
||
<h2>recent posts</h2>
|
||
<?php require_once __DIR__ . '/inc/posts.php'; ?>
|
||
<?php render_post_list(array_slice(all_posts(), 0, 3)); ?>
|
||
<p><a href="/blog.php">all posts →</a></p>
|
||
</section>
|
||
|
||
<p>If you want to leave a message, feel free to write something on my <a href="/guestbook.php">guestbook</a> !</p>
|
||
|
||
|
||
|
||
<?php require __DIR__ . '/inc/footer.php'; ?>
|