summaryrefslogtreecommitdiff
path: root/html/public/index.php
diff options
context:
space:
mode:
authorLizzy Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 21:29:25 -0700
committerLizzy Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 21:29:25 -0700
commit67e4b234d31626976ad630043814235c936f8bbf (patch)
treefcf4259005094271ab475d4f55cea1c251357817 /html/public/index.php
parent2c4b0cf6c40d7b866a9c538a4df06bc36e189d89 (diff)
downloadtilde.club-67e4b234d31626976ad630043814235c936f8bbf.tar.gz
tilde.club-67e4b234d31626976ad630043814235c936f8bbf.zip
finish static page
Diffstat (limited to 'html/public/index.php')
-rw-r--r--html/public/index.php54
1 files changed, 42 insertions, 12 deletions
diff --git a/html/public/index.php b/html/public/index.php
index 3ed5805..004a131 100644
--- a/html/public/index.php
+++ b/html/public/index.php
@@ -1,19 +1,49 @@
<?php
-// todo: startup go program if not started. use low cpu priority.
+$content = '
+<p>you are at my <a href="https://tilde.club">tilde.club</a> page right now! hi!</p>
-$ch = curl_init();
-$url = "http:/localhost";
-$unix = "/home/simponic/http.sock";
+<img src="/img/penguin.gif" alt="a penguin" style="width: 200px; height: 200px;"/>
+<p><em>this is a penguin</em></p>
-if (defined('CURLOPT_UNIX_SOCKET_PATH')) {
- curl_setopt($ch, CURLOPT_UNIX_SOCKET_PATH, $unix);
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+<p>here you can:</p>
- $response = curl_exec($ch);
- echo $response;
-}
+<ul>
+ <li>vote on your favorite <a href="/fruit">fruit</a></li>
+ <li>play <a href="/the-abstraction-engine">the abstraction engine</a> (WIP)</li>
+ <li>play <a href="/euler-golf">euler golf 2</a></li>
+ <li>program a <a href="/turing-machine">turing machine</a></li>
+ <li>mess with <a href="/godel-explorer">godel numbers</a></li>
+ <li>more to come?</li>
+</ul>
-curl_close($ch);
+<br />
+<br />
+
+<p>
+here are some stuffs i like:
+<ul>
+ <li>penguins, dogs, birds</li>
+ <li>programming (((with parentheses)))</li>
+ <li>compilers, languages, distributed systems</li>
+ <li>emacs</li>
+ <li>math</li>
+ <li>boys (and girls) 🏳️‍🌈</li>
+ <li>gruvbox & catpuccin</li>
+</ul>
+</p>
+
+<p>
+here are some stuffs i don\'t like:
+<ul>
+ <li>bugs (hahahaha)</li>
+ <li>capitalism, expensive healthcare, yadayada</li>
+ <li>mmmm i can\'t think of more</li>
+</ul>
+</p>
+';
+
+$template = file_get_contents('template.html');
+
+echo str_replace("{{content}}", $content, $template);
?>