Add temperature and webring to homepage
This commit is contained in:
parent
3e4d994416
commit
6b8fae6062
45
index.php
45
index.php
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
$age = (new DateTime("now"))->diff(DateTime::createFromFormat("Y-m-d", "2004-01-15"))->y;
|
||||
$temp = str_replace("temp=", "", exec("/usr/bin/vcgencmd measure_temp"));
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@ -18,22 +19,42 @@
|
||||
|
||||
<div class="section container">
|
||||
<h1>Welcome</h1>
|
||||
<span>I'm <?= $age == 18 ? "an" : "a" ?> <?= $age ?> year old programmer from Denmark</span>
|
||||
<br>
|
||||
|
||||
<p>
|
||||
I'm <?= $age == 18 ? "an" : "a" ?> <?= $age ?> year old programmer from Denmark.<br>
|
||||
This website is self-hosted on a Raspberry Pi. Server temperature: <b><?= $temp ?></b>
|
||||
</p>
|
||||
|
||||
<img class="icon" src="/assets/icons/linkedin.png" alt="LinkedIn" width="16" height="16">
|
||||
<a href="https://www.linkedin.com/in/reimarpb/" target="_blank" title="LinkedIn">
|
||||
<img class="icon" src="/assets/icons/linkedin.png" alt="LinkedIn" width="16" height="16"><!--
|
||||
--></a>
|
||||
LinkedIn
|
||||
</a>
|
||||
<br>
|
||||
|
||||
<picture class="dark">
|
||||
<source type="image/svg+xml" srcset="/assets/icons/dark-mode/github.svg">
|
||||
<img class="dark icon" src="/assets/icons/dark-mode/github.png" alt="GitHub">
|
||||
</picture>
|
||||
<picture class="light">
|
||||
<source type="image/svg+xml" srcset="/assets/icons/light-mode/github.svg">
|
||||
<img class="light icon" src="/assets/icons/light-mode/github.png" alt="GitHub">
|
||||
</picture>
|
||||
<a href="https://github.com/ReimarPB" target="_blank" title="GitHub">
|
||||
<picture class="dark">
|
||||
<source type="image/svg+xml" srcset="/assets/icons/dark-mode/github.svg">
|
||||
<img class="dark icon" src="/assets/icons/dark-mode/github.png" alt="GitHub">
|
||||
</picture>
|
||||
<picture class="light">
|
||||
<source type="image/svg+xml" srcset="/assets/icons/light-mode/github.svg">
|
||||
<img class="light icon" src="/assets/icons/light-mode/github.png" alt="GitHub">
|
||||
</picture>
|
||||
GitHub
|
||||
</a>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<b style="letter-spacing: 0.1em;">Mercantec Webring:</b>
|
||||
<br>
|
||||
<a href="https://tpho.dk">tpho.dk</a>
|
||||
•
|
||||
<a href="https://sfja.dk">sfja.dk</a>
|
||||
•
|
||||
<a href="https://mtkonge.dk">mtkonge.dk</a>
|
||||
•
|
||||
<a href="https://handskemager.xyz">handskemager.xyz</a>
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div class="section container">
|
||||
|
Loading…
Reference in New Issue
Block a user