show links on index and move kofi button, post preview to aside
This commit is contained in:
parent
9458f0916e
commit
52ea913eb3
88
index.php
88
index.php
|
@ -9,29 +9,71 @@
|
|||
<?php require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/header.php'); ?>
|
||||
<?php require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/nav.php'); ?>
|
||||
<div class="content" id="content" role="main">
|
||||
<h1>Latest Post</h1>
|
||||
<?php
|
||||
try {
|
||||
|
||||
$stmt = $db->query('SELECT postID, postSlug, postTitle, postDesc, postDate FROM blog_posts ORDER BY postID DESC LIMIT 1');
|
||||
while($row = $stmt->fetch()){
|
||||
|
||||
echo '<div class="post-preview">';
|
||||
echo '<h2><a href="/blog/'.$row['postSlug'].'">'.$row['postTitle'].'</a></h2>';
|
||||
echo '<p class="post-date">Posted on '.date('jS M Y H:i:s', strtotime($row['postDate'])).'</p>';
|
||||
echo '<svg height="10" width="100%">';
|
||||
echo '<line x1="0" y1="0" x2="960" y2="0" />';
|
||||
echo '</svg>';
|
||||
echo '<p class="post-description">'.$row['postDesc'].'</p>';
|
||||
echo '<p><a href="/blog/'.$row['postSlug'].'">Read More</a></p>';
|
||||
echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
} catch(PDOException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="column main">
|
||||
<h1>Public Services Hosted by Joe</h1>
|
||||
<p>Everything is free to use and libre software! I provide no guarantees or warranties of any sort.</p>
|
||||
<svg height="10" width="100%"><line x1="0" y1="0" x2="960" y2="0"></line></svg>
|
||||
<h2><a href="https://searx.thisisjoes.site/">Searx</a></h2>
|
||||
<p>A customizable metasearch engine. Choose how your search works and which engines it uses.
|
||||
Does not keep logs or track users. <a href="https://github.com/asciimoo/searx">Source</a></p>
|
||||
<h2><a href="https://riot.thisisjoes.site/">Matrix</a></h2>
|
||||
<p>A federated real-time communications network. Send text with
|
||||
markdown support, make voice and video calls, and create communities.
|
||||
<a href="https://github.com/matrix-org/synapse">Source</a>(Server)
|
||||
<a href="https://github.com/vector-im/riot-web">Source</a>(Web-client)
|
||||
</p>
|
||||
<h2><a href="https://social.thisisjoes.site/">Mastodon</a></h2>
|
||||
<p>A federated micro-blogging network. Share with and follow users from all
|
||||
across the Fediverse. Supports up to 500 characters and small media
|
||||
attachments. <a href="https://github.com/tootsuite/mastodon">Source</a></p>
|
||||
<h2><a href="https://git.thisisjoes.site">Gitea</a></h2>
|
||||
<p>An easy to use alternative to GitHub. Host and manage your public or private
|
||||
repositories! Includes wiki functionality and an
|
||||
<a href="https://git.thisisjoes.site/api/swagger">advanced API</a>.
|
||||
<a href="https://github.com/go-gitea/gitea">Source</a>
|
||||
</p>
|
||||
<h2><a href="https://puny.space" class="new">PrivateBin</a></h2>
|
||||
<p>A minimalist, client-side encrypted pastebin. The server never sees the contents of your pastes.
|
||||
Offers password protection, comments, markdown, syntax highlighting, and one time use pastes.
|
||||
<a href="https://github.com/PrivateBin/PrivateBin">Source</a>
|
||||
</p>
|
||||
<h2><a href="https://uwu.ryukyu" class="new">Klip</a></h2>
|
||||
<p>An easy to use link shortener. Anonymously create up to 30 short links a day. Create an account
|
||||
to customize links, add password protected links, and see how many people click
|
||||
on them. Provides a public API and extensions for
|
||||
<a href="https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd">Chrome</a>
|
||||
and <a href="https://addons.mozilla.org/en-US/firefox/addon/kutt/">Firefox</a>.
|
||||
<a href="https://git.thisisjoes.site/joe/klip">Source</a>
|
||||
</div>
|
||||
<div class="column aside">
|
||||
<div id="kofi-button">
|
||||
<a class="kofi-content" href="https://ko-fi.com/thisisjoe" title="Support me on ko-fi.com">
|
||||
<img id="kofi-cup" src="/img/core/ko-fi-opt.png"><span class="kofi-cta">Buy joe a cup of joe</span>
|
||||
</a>
|
||||
</div>
|
||||
<h1>Latest Post</h1>
|
||||
<?php
|
||||
try {
|
||||
$stmt = $db->query('SELECT postID, postSlug, postTitle, postDesc, postDate FROM blog_posts ORDER BY postID DESC LIMIT 1');
|
||||
while($row = $stmt->fetch()){
|
||||
echo '<div class="post-preview">';
|
||||
echo '<h2><a href="/blog/'.$row['postSlug'].'">'.$row['postTitle'].'</a></h2>';
|
||||
echo '<p class="post-date">Posted on '.date('jS M Y H:i:s', strtotime($row['postDate'])).'</p>';
|
||||
echo '<svg height="10" width="100%">';
|
||||
echo '<line x1="0" y1="0" x2="960" y2="0" />';
|
||||
echo '</svg>';
|
||||
echo '<div class="post-description">'.$row['postDesc'].'</div>';
|
||||
echo '<p><a href="/blog/'.$row['postSlug'].'">Read More</a></p>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
catch(PDOException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php require($_SERVER['DOCUMENT_ROOT'] .'/sedulcni/footer.php'); ?>
|
||||
</div>
|
||||
|
|
1295
styles.css
1295
styles.css
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue