diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-05-10 03:03:58 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-05-10 03:03:58 -0600 |
| commit | eb61c1bae2ffad114e17393d91d86fb00d7ac8cd (patch) | |
| tree | 4f997d73e0843dab760e5d988679a1a86b76f5da /stuff/webgarden/status.php | |
| parent | 4b9500ddeedbea21f80f41dfe4149cf3bf9be4c3 (diff) | |
Initialer commit
Just remade the repo because I don't *need* need a comprehensive source history for my personal website and this is easier than getting filter-repo to work good
Diffstat (limited to 'stuff/webgarden/status.php')
| -rw-r--r-- | stuff/webgarden/status.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/stuff/webgarden/status.php b/stuff/webgarden/status.php new file mode 100644 index 0000000..4330d31 --- /dev/null +++ b/stuff/webgarden/status.php @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Status</title> + <link href="style.css" rel="stylesheet" type="text/css" media="all"> + <style type="text/css"> + body { + background: #222222; + } + #statuscafe a { + color: #df1955; + } + #statuscafe a:hover { + color: #00ffd5; + } + #statuscafe { + display: flex; + flex-direction: column; + position: absolute; + left: 10px; + top: 10px; + height: 230px; + width: 230px; + justify-content: center; + align-items: center; + } + #statuscafe-content { + margin-top: 10px; + } + </style> + </head> + <body> + <div id="plant"> + <?php + $username = "niceopod"; // Your username here! + $status_data = json_decode(file_get_contents("https://status.cafe/users/$username/status.json"), true); + $content = $status_data["content"]; + $face = $status_data["face"]; + $timeago = str_replace(" "," ",$status_data["timeAgo"]); + if(strlen($content) < 1) { + $content = "No status yet."; + } + echo "<div id='statuscafe'><div id='statuscafe-username'><a href='https://status.cafe/users/$username' target='_blank'>$username</a> $face $timeago</div><div id='statuscafe-content'>$content</div></div>"; + ?> + <a id="back" href="index.php" style="font-size: 2em; position: absolute; left: 4px; top: 218px;"><</a> + </div> + </body> +</html> |
