added some new pages

This commit is contained in:
gtlsgamr 2022-08-10 20:47:58 +05:30
parent 46adccafb5
commit 9fa93b78f8
6 changed files with 351 additions and 0 deletions

27
funds.php Normal file
View File

@ -0,0 +1,27 @@
<?php include("./header.php")?>
<main>
<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>
<p> Please let us know how you would prefer to donate so we can set it up that way: </p>
<ul>
<li>UPI : tildevarshfunds@ybl</li>
<li>Crypto (monero) : <pre>82dpRT2EpyP2i3CMzJFAvV3HNqTFvsxBSZ3EaSKREGH8JwfrkF9Wqzkhq6N9T1Da719mD8Q3EvBM4WUSB6QGvZqyAShXpxz</pre></li>
<h4>Current list of received funds </h4><br>
<ul>
<li>Received 500 rupees from @SpantheSlayer</li>
<li>Received 170 rupees from @spyjetfayed</li>
<li>Received 150 rupees from @neovoidtk</li>
<li>Received 150 rupees from @JB</li>
<li>Received 111 from @aryan_exists</li>
<li>Received 150 from Hello</li>
</ul>
<h5>Total: 1231</h5>
</main>
</body>
</html>

15
header.php Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/css/writ.css">
<body>
<header>
<h1><a href="/">~Tildevarsh</a></h1>
<nav>
<ul>
<li><a href="funds.html">funding info</a></li>
<li><a href="register.php">register</a></li>
</ul>
</nav>
</header>

30
index.php Normal file
View File

@ -0,0 +1,30 @@
<?php include("./header.php")?>
<main>
<h3>Bharatvarsh, the year is 2022.</h3>
<hr>
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><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. </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>
<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>
<h6>Registrations open soon!</h6>
</main>
</body>
</html>

1
info.php Normal file
View File

@ -0,0 +1 @@
<?php echo "HI THER;" ?>

56
register.php Normal file
View File

@ -0,0 +1,56 @@
<?php
include("header.php");
if($_SERVER['REQUEST_METHOD']=="POST"){
if($_POST['name']){
$username = filter_var($_POST['name'],FILTER_SANITIZE_STRING );
if(preg_match('/^'.$username.':.*'.'/m',file_get_contents('/etc/passwd') == 1)){
$err = "Username already exists!";
}
else if(!preg_match($username_reg,$username)){
$err = "Make sure you enter a valid username!";
}
else{
$success= true;
}
}
if($success){
$file = fopen("/var/www/html/user_regs.csv","a");
$txt = $_POST['name'].','.$_POST['email'].','.$_POST['ssh'];
fwrite($file,$txt);
fclose($file);
}
}
?>
<main>
<p>So you want to be a part of tildevarsh?
<br>Go ahead, register.</p>
<p>The only thing that we ask for is <b>participation</b>.<br> As seen on the homepage, tildevarsh is more about the community and less about services. Please try to be active in the community. Unlike other tildes, your account will be deleted if you seem inactive for a long period of time. We plan to make this a vibrant community of like-minded people.</p>
<h3>Register</h3>
<form method="POST" action="">
<div class="container">
<div class="row">
<div class="col-6">Your name: </div>
<div class="col-6"><input type="text" name="name" required/><br></div>
</div>
<br>
<div class="row">
<div class="col-6">Your email (Need one so we can contact you):</div>
<div class="col-6"> <input type="email" name="email" required/></div>
</div>
<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>
<br>
<div class="row">
<div class="col-12">
<input type="submit" value="Sign up"/>
</div>
</div>
</div>
</form>
</main>

222
static/css/writ.css Normal file
View File

@ -0,0 +1,222 @@
/*!
* Writ v1.0.4
*
* Copyright © 2015, Curtis McEnroe <curtis@cmcenroe.me>
*
* https://cmcenroe.me/writ/LICENSE (ISC)
*/
/* Fonts, sizes & vertical rhythm */
html {
font-family: Palatino, Georgia, Lucida Bright, Book Antiqua, serif;
font-size: 16px;
line-height: 1.5rem;
}
code, pre, samp, kbd {
font-family: Consolas, Liberation Mono, Menlo, Courier, monospace;
font-size: 0.833rem;
}
kbd { font-weight: bold; }
h1, h2, h3, h4, h5, h6, th { font-weight: normal; }
/* Minor third */
h1 { font-size: 2.488em; }
h2 { font-size: 2.074em; }
h3 { font-size: 1.728em; }
h4 { font-size: 1.44em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }
small { font-size: 0.833em; }
h1, h2, h3 { line-height: 3rem; }
p, ul, ol, dl, table, blockquote, pre, h1, h2, h3, h4, h5, h6 {
margin: 1.5rem 0 0;
}
ul ul, ol ol, ul ol, ol ul { margin: 0; }
hr {
margin: 0;
border: none;
padding: 1.5rem 0 0;
}
/* Accounting for borders */
table {
line-height: calc(1.5rem - 1px);
margin-bottom: -1px;
}
pre {
margin-top: calc(1.5rem - 1px);
margin-bottom: -1px;
}
/* Colors */
body { color: #222; }
code, pre, samp, kbd { color: #111; }
a, header nav a:visited, a code { color: #00e; }
a:visited, a:visited code { color: #60b; }
mark { color: inherit; }
code, pre, samp, thead, tfoot { background-color: rgba(0, 0, 0, 0.05); }
mark { background-color: #fe0; }
main aside, blockquote, ins { border: solid rgba(0, 0, 0, 0.05); }
pre, code, samp { border: solid rgba(0, 0, 0, 0.1); }
th, td { border: solid #dbdbdb; }
/* Layout */
body { margin: 1.5rem 1ch; }
body > header { text-align: center; }
main, body > footer {
display: block; /* Just in case */
max-width: 78ch;
margin: auto;
}
main figure, main aside {
float: right;
margin: 1.5rem 0 0 1ch;
}
main aside {
max-width: 26ch;
border-width: 0 0 0 0.5ch;
padding: 0 0 0 0.5ch;
}
/* Copy blocks */
blockquote {
margin-right: 3ch;
margin-left: 1.5ch;
border-width: 0 0 0 0.5ch;
padding: 0 0 0 1ch;
}
pre {
border-width: 1px;
border-radius: 2px;
padding: 0 0.5ch;
overflow-x: auto;
}
pre code {
border: none;
padding: 0;
background-color: transparent;
white-space: inherit;
}
img { max-width: 100%; }
/* Lists */
ul, ol, dd { padding: 0 0 0 3ch; }
dd { margin: 0; }
ul > li { list-style-type: disc; }
li ul > li { list-style-type: circle; }
li li ul > li { list-style-type: square; }
ol > li { list-style-type: decimal; }
li ol > li { list-style-type: lower-roman; }
li li ol > li { list-style-type: lower-alpha; }
nav ul {
padding: 0;
list-style-type: none;
}
nav ul li {
display: inline;
padding-left: 1ch;
white-space: nowrap;
}
nav ul li:first-child { padding-left: 0; }
/* Tables */
table {
width: 100%;
border-collapse: collapse;
overflow-x: auto;
}
th, td {
border-width: 1px;
padding: 0 0.5ch;
}
/* Copy inline */
a { text-decoration: none; }
sup, sub {
font-size: 0.75em;
line-height: 1em;
}
ins {
border-width: 1px;
padding: 1px;
text-decoration: none;
}
mark {
padding: 1px;
}
code, samp {
border-width: 1px;
border-radius: 2px;
padding: 0.1em 0.2em;
white-space: nowrap;
}
header > h1 > a{
color:black;
text-decoration:none;
}
header > h1 > a:visited, a:hover, a:focus, a:active{
color:black;
text-decoration:none;
}
.row {
display: flex;
width: 100%
}
.row::after {
/* display: block;*/
clear: both;
content: "";
}
.col-1 {width: 8.33%};
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}
* {
box-sizing: border-box;
}
input, textarea{
outline:none;
font-family:inherit;
font-size:inherit;
}