updated roadmap, added css, minor fix to register page

This commit is contained in:
gtlsgamr 2022-08-12 21:05:43 +05:30
parent b4cd2569c9
commit b0bfba53b6
6 changed files with 133 additions and 20 deletions

View File

@ -1,5 +1,8 @@
<?php include("./includes/header.php")?>
<?php
$pagetitle = 'funds';
include("./includes/header.php")?>
<main>
<h3>Funding</h3>
<p>You can support us by providing small amount of chanda (Donation).
It doesnt matter how much or little you donate because we know
not everyone is paid employee or has a job.</p>

View File

@ -1,16 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/css/writ.css">
<title>~varsh<?php - $pagetitle ?></title>
</head>
<body>
<header>
<h1><a href="/">~Tildevarsh</a></h1>
<nav>
<ul>
<li><a href="/funds">funding info</a></li>
<li><a href="/register">register</a></li>
<li><a href="/roadmap">roadmap</a></li>
<li><a href="/voting">voting</a></li>
<li><a href="/register">REGISTER</a></li>
</ul>
</nav>
</header>

View File

@ -5,24 +5,49 @@
Everyone is connected via the internet, and yet something is lacking. Something that we all know isn't there and yet somehow have collectively forgotten.
<br><br>
<b><h4>Welcome, to ~tildevarsh.</h4></b>
<br>
<h6>Bharatvarsh is the land of Bharat (India, or the king who ruled the Indian subcontinent). This is where the name of this tilde comes from.</h6>
<br> An India-based shared unix system which focuses on mutual development of skills and sharing of ideas. Services are secondary in this tilde, community is prime.
<br><br>
An India-based shared unix system which focuses on mutual development of skills and sharing of ideas. Services are secondary in this tilde, community is prime.
<br><br>
<h5>Roadmap</h5>
<ul>
<li>A logo.</li>
<li>An actual website, not this placeholder. --- DONE </li>
<li>A way to enforce community participation.</li>
<li>Switch to our own VPS provider and not this free oracle instance. We have funds that will last us three months, but we will start using them once we are fully fleshed out.</li>
<li>Central communication channel. (Not telegram)</li>
<li>Fully functional tilde with public_html sites for the users, subdomains, and an easy way to register. </li>
<li>A git instance. (Or we could use tildegit.org)</li>
<li>An internal voting system to facilitate decision making for the tilde.</li>
</ul>
<br><b><a href="https://yewtu.be/watch?v=qK1mInnbfrU">What is a tilde?</a></b>
<br><b><a href="https://scribe.citizen4.eu/message/tilde-club-i-had-a-couple-drinks-and-woke-up-with-1-000-nerds-a8904f0a2ebf">The story of tilde.club</a></b>
<h5>Contact</h5>
<br><ul>
<li><b>#tildevarsh</b> on irc.libera.chat<br></li>
<li><b>#tildevarsh:libera.chat</b> on matrix<br></li>
<li>The telegram is no longer operational. Please switch ASAP.</li>
<div class="row">
<div class="col-6">
<h5>users</h5>
<ul>
<?php
$usercount = 0;
foreach (glob("/home/*/public_html", GLOB_ONLYDIR) as $user):
if (
(
// make sure we have an index page
!is_file("$user/index.html")
&& !is_file("$user/index.htm")
&& !is_file("$user/index.cgi")
&& !is_file("$user/index.php")
)
) continue;
$user = basename(dirname($user));
$usercount++; ?>
<li><a href="https://<?=$user?>.tildevarsh.in" class="list-group-item col-xs-6 col-sm-4 col-md-2">~<?=$user?></a></li>
<?php endforeach; ?>
</ul>
</div>
<div class="col-6">
<h5>news</h5>
<ul>
<li>Registrations are now open for tildevarsh.</li>
<li> We now have a new <a href="/voting">voting</a> system in place. </li>
<li>Play nethack and try to beat others' highscore! run `nethack` to start.</li>
</ul>
</div>
</div>
</main>
<?php include("./includes/footer.php")?>

View File

@ -13,12 +13,12 @@ if($_SERVER['REQUEST_METHOD']=="POST"){
}
else{
$success= true;
$success_msg= "You have been registered! Please wait for an email to arrive with confirmation";
$success_msg= "Your registration request is submitted successfully! Please wait for an approval E-mail.";
}
}
if($success){
$file = fopen("/var/varsh/user_regs.csv","a");
$file = fopen("/var/varsh/registrations/".$_POST['name'],"w");
$txt = $_POST['name'].','.$_POST['email'].','.$_POST['ssh'].','.$_POST['reason']."\n";
fwrite($file,$txt);
fclose($file);
@ -44,11 +44,11 @@ if($_SERVER['REQUEST_METHOD']=="POST"){
<br>
<div class="row">
<div class="col-6">Your SSH key(Need one so can login to the server):</div>
<div class="col-6"> <textarea name="ssh" style="height:max-content; width:80%;" required></textarea></div>
<div class="col-6"> <textarea name="ssh" rows="5" style="height:max-content; width:80%;" required></textarea></div>
</div>
<div class="row">
<div class="col-6">Why would you like to join tildevarsh?:</div>
<div class="col-6"> <textarea name="reason" style="height:max-content; width:80%;" required></textarea></div>
<div class="col-6">Why would you like to join tildevarsh? (Please try to write more than just one word):</div>
<div class="col-6"> <textarea name="reason" rows="5" style="height:max-content; width:80%;" required></textarea></div>
</div>
<br>
<div class="row">

18
roadmap.php Normal file
View File

@ -0,0 +1,18 @@
<?php
$pagetitle = 'roadmap';
include("./includes/header.php")?>
<main>
<h3>Roadmap</h3>
Here is a brief roadmap for this tilde:
<ul>
<li>A logo.</li>
<li>An actual website, not this placeholder. --- DONE </li>
<li>A way to enforce community participation.</li>
<li>Switch to our own VPS provider and not this free oracle instance. We have funds that will last us three months, but we will start using them once we are fully fleshed out. --- DONE</li>
<li>Central communication channel. (Not telegram) --- DONE</li>
<li>Fully functional tilde with public_html sites for the users, subdomains, and an easy way to register. --- DONE</li>
<li>A git instance. (Or we could use tildegit.org)</li>
<li>An internal voting system to facilitate decision making for the tilde. ---DONE</li>
</ul>
</main>
<?php include("./includes/footer.php")?>

View File

@ -229,3 +229,66 @@ input, textarea{
color:green;
font-size:small;
}
@media (prefers-color-scheme:dark) {
body {
color: #eee;
background-color: #141414;
}
header h1{
color: #eee;
}
a:link {
color: #91ccee;
}
a:visited {
color: #8daabb;
}
a:focus,
a:hover {
color: #b0dffb;
}
a, header nav a:visited, a code { color: #91ccee; }
samp,
code,
kbd,
pre {
color: #6cf;
background:#24323d;
}
pre kbd {
color: #9c6;
}
blockquote {
border-color: #d8d8d8;
background-color:#141414;
}
td,
th {
border-color: #666;
}
button,
input,
textarea {
background-color: #4a4b4c;
color: #cccdce;
}
input, textarea {
border:none;
outline:none;
}
header a:active,
header a:focus,
header a:hover,
header a:link,
header a:visited {
color: #eee;
text-decoration: none;
}
#solution div div {
background: #262626;
}
header > h1 > a:visited, a:hover, a:focus, a:active{
color:#eee;
text-decoration:none;
}
}