mirror of https://github.com/tildeclub/site.git
quotas notice added
This commit is contained in:
parent
230e1dfcba
commit
4c45bb9f27
119
404.html
119
404.html
|
@ -1,119 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>Error 404 - The page is not found</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-size: 0.9em;
|
||||
font-family: sans-serif,helvetica;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
:link {
|
||||
color: #c00;
|
||||
}
|
||||
:visited {
|
||||
color: #c00;
|
||||
}
|
||||
a:hover {
|
||||
color: #f50;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0.6em 2em 0.4em;
|
||||
background-color: #294172;
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
font-size: 1.75em;
|
||||
border-bottom: 2px solid #000;
|
||||
}
|
||||
h1 strong {
|
||||
font-weight: bold;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h2 {
|
||||
text-align: center;
|
||||
background-color: #3C6EB4;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
border-bottom: 2px solid #294172;
|
||||
}
|
||||
h3 {
|
||||
text-align: center;
|
||||
background-color: #ff0000;
|
||||
padding: 0.5em;
|
||||
color: #fff;
|
||||
}
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
.content {
|
||||
padding: 1em 5em;
|
||||
}
|
||||
.alert {
|
||||
border: 2px solid #000;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 2px solid #fff;
|
||||
padding: 2px;
|
||||
margin: 2px;
|
||||
}
|
||||
a:hover img {
|
||||
border: 2px solid #294172;
|
||||
}
|
||||
.logos {
|
||||
margin: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
/*]]>*/
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1><strong>nginx error!</strong></h1>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<h3>The page you are looking for is not found.</h3>
|
||||
|
||||
<div class="alert">
|
||||
<h2>Website Administrator</h2>
|
||||
<div class="content">
|
||||
<p>Something has triggered missing webpage on your
|
||||
website. This is the default 404 error page for
|
||||
<strong>nginx</strong> that is distributed with
|
||||
Fedora. It is located
|
||||
<tt>/usr/share/nginx/html/404.html</tt></p>
|
||||
|
||||
<p>You should customize this error page for your own
|
||||
site or edit the <tt>error_page</tt> directive in
|
||||
the <strong>nginx</strong> configuration file
|
||||
<tt>/etc/nginx/nginx.conf</tt>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="logos">
|
||||
<a href="http://nginx.net/"><img
|
||||
src="/nginx-logo.png"
|
||||
alt="[ Powered by nginx ]"
|
||||
width="121" height="32" /></a>
|
||||
|
||||
<a href="http://fedoraproject.org/"><img
|
||||
src="/poweredby.png"
|
||||
alt="[ Powered by Fedora ]"
|
||||
width="88" height="31" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
136
50x.html
136
50x.html
|
@ -1,119 +1,19 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>The page is temporarily unavailable</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
font-size: 0.9em;
|
||||
font-family: sans-serif,helvetica;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
:link {
|
||||
color: #c00;
|
||||
}
|
||||
:visited {
|
||||
color: #c00;
|
||||
}
|
||||
a:hover {
|
||||
color: #f50;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0.6em 2em 0.4em;
|
||||
background-color: #294172;
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
font-size: 1.75em;
|
||||
border-bottom: 2px solid #000;
|
||||
}
|
||||
h1 strong {
|
||||
font-weight: bold;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
h2 {
|
||||
text-align: center;
|
||||
background-color: #3C6EB4;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
border-bottom: 2px solid #294172;
|
||||
}
|
||||
h3 {
|
||||
text-align: center;
|
||||
background-color: #ff0000;
|
||||
padding: 0.5em;
|
||||
color: #fff;
|
||||
}
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
.content {
|
||||
padding: 1em 5em;
|
||||
}
|
||||
.alert {
|
||||
border: 2px solid #000;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 2px solid #fff;
|
||||
padding: 2px;
|
||||
margin: 2px;
|
||||
}
|
||||
a:hover img {
|
||||
border: 2px solid #294172;
|
||||
}
|
||||
.logos {
|
||||
margin: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
/*]]>*/
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1><strong>nginx error!</strong></h1>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<h3>The page you are looking for is temporarily unavailable. Please try again later.</h3>
|
||||
|
||||
<div class="alert">
|
||||
<h2>Website Administrator</h2>
|
||||
<div class="content">
|
||||
<p>Something has triggered an error on your
|
||||
website. This is the default error page for
|
||||
<strong>nginx</strong> that is distributed with
|
||||
Fedora. It is located
|
||||
<tt>/usr/share/nginx/html/50x.html</tt></p>
|
||||
|
||||
<p>You should customize this error page for your own
|
||||
site or edit the <tt>error_page</tt> directive in
|
||||
the <strong>nginx</strong> configuration file
|
||||
<tt>/etc/nginx/nginx.conf</tt>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="logos">
|
||||
<a href="http://nginx.net/"><img
|
||||
src="/nginx-logo.png"
|
||||
alt="[ Powered by nginx ]"
|
||||
width="121" height="32" /></a>
|
||||
|
||||
<a href="http://fedoraproject.org/"><img
|
||||
src="/poweredby.png"
|
||||
alt="[ Powered by Fedora ]"
|
||||
width="88" height="31" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Error</title>
|
||||
<style>
|
||||
html { color-scheme: light dark; }
|
||||
body { width: 35em; margin: 0 auto;
|
||||
font-family: Tahoma, Verdana, Arial, sans-serif; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>An error occurred.</h1>
|
||||
<p>Sorry, the page you are looking for is currently unavailable.<br/>
|
||||
Please try again later.</p>
|
||||
<p>If you are the system administrator of this resource then you should check
|
||||
the error log for details.</p>
|
||||
<p><em>Faithfully yours, nginx.</em></p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
17
index.php
17
index.php
|
@ -102,6 +102,23 @@
|
|||
</p>
|
||||
<hr>
|
||||
<?php endif; ?>
|
||||
<h2>UPDATE: August 2024:</h2>
|
||||
<h3>Hey Everyone, Disk Quotas are Here!</h3>
|
||||
<p>
|
||||
Just a heads up: we've rolled out disk quotas to keep things running smoothly for everyone. This will help us share space fairly and make sure the system stays in good shape.
|
||||
</p>
|
||||
<p>
|
||||
Here's the scoop:
|
||||
<ul>
|
||||
<li><strong>Soft Limit:</strong> 1 GB – You’ll get a nudge if you go over this, but no worries, you can still go up to the hard limit.</li>
|
||||
<li><strong>Hard Limit:</strong> 3 GB – This is the max. Once you hit this, you won’t be able to save more files until you clean up.</li>
|
||||
<li><strong>Grace Period:</strong> 1 week – If you go over the soft limit, you’ll have a week to get back under before things get strict.</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
You can check your usage and see how much space you’ve got left by running the <code>resources-used</code> script in your home directory. It’s easy!
|
||||
</p>
|
||||
<hr>
|
||||
<h2>UPDATE: March 2024:</h2>
|
||||
<h3>Hey everyone, we've leveled up to Fedora 39!</h3>
|
||||
<p>
|
||||
|
|
|
@ -30,9 +30,40 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<p>We're excited you're here! Let's get you signed up!</p>
|
||||
<p>Fill out this form and we'll get back to you with account info</p>
|
||||
<form method="post">
|
||||
<div>
|
||||
<p>your desired username (numbers and lowercase letters only, no spaces)</p>
|
||||
<input class="form-control" name="username" value="<?=esc("username")?>" type="text" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>email to contact you with account info</p>
|
||||
<input class="form-control" name="email" value="<?=esc("email")?>" type="text" required>
|
||||
</div>
|
||||
|
||||
<p>Sorry Signups are currently closed. Come back soon!</p>
|
||||
<div>
|
||||
<p>what interests you about tilde.club? we want to make sure you're a real human being :)</p>
|
||||
<textarea required class="form-control" name="interest" id="" cols="40" rows="7"><?=esc("interest")?></textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>SSH public key</p>
|
||||
<textarea required class="form-control" name="sshkey" id="" cols="40" rows="10"><?=esc("sshkey")?></textarea>
|
||||
<p>if you don't have a key, don't worry! <a href="https://tilde.club/wiki/ssh.html">check out our guide to ssh keys</a> and make sure that you only put your pubkey here</p>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<em>signing up implies that you agree to abide by <a href="/wiki/code-of-conduct.html">our code of conduct</a></em>
|
||||
<br>
|
||||
no drama. be respectful. have fun. we're all trying, and we're all in this together :)
|
||||
</p>
|
||||
<p>you must be at least 13 years or older to sign up and use tilde.club.</p>
|
||||
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
|
||||
</form>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,75 +0,0 @@
|
|||
<?php
|
||||
$title = "sign up for the tilde.club!";
|
||||
include __DIR__."/../header.php";
|
||||
|
||||
function esc($v) {
|
||||
return isset($_REQUEST[$v]) ? htmlspecialchars($_REQUEST[$v]) : "";
|
||||
}
|
||||
|
||||
function isGmail($email) {
|
||||
return substr(strrchr($email, "@"), 1) === 'gmail.com';
|
||||
}
|
||||
|
||||
$gmailError = false;
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (isGmail($_REQUEST['email'])) {
|
||||
$gmailError = true;
|
||||
} else {
|
||||
// Process the form here only if the email is not a Gmail address
|
||||
include 'signup-handler.php';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($gmailError): ?>
|
||||
<div class="alert alert-warning">
|
||||
<strong>We don't accept Gmail addresses due to Google not allowing emails to go through due to a recent spam issue.</> </div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h1 id="fancyboi">sign up to join tilde.club</h1>
|
||||
|
||||
<div class="grid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<p>We're excited you're here! Let's get you signed up!</p>
|
||||
<p>Fill out this form and we'll get back to you with account info</p>
|
||||
<form method="post">
|
||||
<div>
|
||||
<p>your desired username (numbers and lowercase letters only, no spaces)</p>
|
||||
<input class="form-control" name="username" value="<?=esc("username")?>" type="text" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>email to contact you with account info</p>
|
||||
<input class="form-control" name="email" value="<?=esc("email")?>" type="text" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>what interests you about tilde.club? we want to make sure you're a real human being :)</p>
|
||||
<textarea required class="form-control" name="interest" id="" cols="40" rows="7"><?=esc("interest")?></textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>SSH public key</p>
|
||||
<textarea required class="form-control" name="sshkey" id="" cols="40" rows="10"><?=esc("sshkey")?></textarea>
|
||||
<p>if you don't have a key, don't worry! <a href="https://tilde.club/wiki/ssh.html">check out our guide to ssh keys</a> and make sure that you only put your pubkey here</p>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<em>signing up implies that you agree to abide by <a href="/wiki/code-of-conduct.html">our code of conduct</a></em>
|
||||
<br>
|
||||
no drama. be respectful. have fun. we're all trying, and we're all in this together :)
|
||||
</p>
|
||||
<p>you must be at least 13 years or older to sign up and use tilde.club.</p>
|
||||
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
|
||||
</form>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include __DIR__."/../footer.php";
|
117
style.css
117
style.css
|
@ -159,3 +159,120 @@ blockquote {
|
|||
display: block;
|
||||
}
|
||||
}
|
||||
/* Ensure the user-list displays items in a single column */
|
||||
.single-column {
|
||||
display: block;
|
||||
}
|
||||
.single-column li {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Style for the article content */
|
||||
.article-headers {
|
||||
background-color: #333;
|
||||
color: #fb5;
|
||||
padding: 1em;
|
||||
border: 1px solid #fb5;
|
||||
border-radius: 0.25em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.article-headers p {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #333;
|
||||
color: #fb5;
|
||||
padding: 1em;
|
||||
border: 1px solid #fb5;
|
||||
border-radius: 0.25em;
|
||||
}
|
||||
|
||||
/* Style for error messages */
|
||||
.alert-warning {
|
||||
background-color: darkred;
|
||||
color: #fb5;
|
||||
padding: 1em;
|
||||
border-radius: 0.25em;
|
||||
font-weight: bold;
|
||||
}
|
||||
/* Ensure the user-list displays items in a single column */
|
||||
.single-column {
|
||||
display: block;
|
||||
}
|
||||
.single-column li {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Tree structure styles */
|
||||
.tree, .tree ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tree ul {
|
||||
margin-left: 1em; /* indentation for nested lists */
|
||||
}
|
||||
|
||||
.tree ul:before {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border-left: 1px solid #fb5;
|
||||
}
|
||||
|
||||
.tree li {
|
||||
margin: 0;
|
||||
padding: 0.5em 0 0.5em 1em; /* space between items */
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tree li:before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 1em; /* horizontal space for the branch line */
|
||||
height: 0;
|
||||
border-top: 1px solid #fb5;
|
||||
position: absolute;
|
||||
top: 1.2em; /* adjust as needed */
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.tree li:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: -0.5em; /* adjust to align with the branch */
|
||||
border-left: 1px solid #fb5;
|
||||
}
|
||||
|
||||
.tree li:last-child:after {
|
||||
display: none; /* hide the line for the last child */
|
||||
}
|
||||
|
||||
/* Style for timestamps */
|
||||
.timestamp {
|
||||
color: #999;
|
||||
font-size: 0.9em;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
/* Highlighted item */
|
||||
.highlighted {
|
||||
background-color: #333; /* Dark background to fit the page colorscheme */
|
||||
border: 1px solid #fb5; /* Matching border color */
|
||||
border-radius: 0.25em; /* Slight border radius for better appearance */
|
||||
padding: 0.5em; /* Padding for better readability */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue