forked from unix.lgbt/site
commit
c1b69fd20f
12 changed files with 317 additions and 0 deletions
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
MIT License |
||||
|
||||
Copyright (c) 2020-2021 unix.lgbt team |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
of this software and associated documentation files (the "Software"), to deal |
||||
in the Software without restriction, including without limitation the rights |
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
copies of the Software, and to permit persons to whom the Software is |
||||
furnished to do so, subject to the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be included in all |
||||
copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
SOFTWARE. |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
The unix.lgbt official site source |
||||
|
||||
run ./buildsite to build the site |
||||
the generated site will appear in the out folder. |
@ -0,0 +1,115 @@
@@ -0,0 +1,115 @@
|
||||
#!/bin/sh |
||||
# |
||||
# Builds the website. |
||||
# |
||||
|
||||
extract () { |
||||
files="" |
||||
directories="" |
||||
paths="" |
||||
|
||||
while read -r line; do |
||||
fn="${line##*/}" |
||||
dr="${line%%$fn}" |
||||
dr="${dr##./src/}" |
||||
fn="${fn%%'.php'}" |
||||
files="${files}${fn} |
||||
" |
||||
directories="${directories}${dr} |
||||
" |
||||
paths="${paths}${dr}${fn} |
||||
" |
||||
done |
||||
case "$1" in |
||||
"d") |
||||
printf "$directories" ;; |
||||
"f") |
||||
printf "$files" ;; |
||||
"p") |
||||
printf "$paths" ;; |
||||
esac |
||||
} |
||||
|
||||
mk_templates () { |
||||
paths=$( find ./src/ -type f -name "*.php" ) |
||||
printf "$paths\n" | extract d | { |
||||
while read -r line; do |
||||
mkdir -p "./out/$line" |
||||
done |
||||
} |
||||
|
||||
printf "$paths\n" | extract p | { |
||||
while read -r line; do |
||||
cat header.html > ./out/$line.php |
||||
cat ./src/$line.php >> ./out/$line.php |
||||
cat footer.html >> ./out/$line.php |
||||
done |
||||
} |
||||
} |
||||
|
||||
cp_static () { |
||||
cp -r ./static/* ./out/ |
||||
} |
||||
|
||||
eee () { |
||||
paths=$( find ./src/ -type f -name "*.md" ) |
||||
printf "$paths\n" |
||||
printf "$paths\n" | extract p |
||||
} |
||||
|
||||
usage () { |
||||
cat << EOF |
||||
Usage: buildsite [CWD] [OPTIONS]... |
||||
|
||||
Options: |
||||
-s only copy static files |
||||
-m only render markdown |
||||
-h display this epic usage message |
||||
|
||||
CWD is the root where all files are stored. |
||||
EOF |
||||
} |
||||
|
||||
main () { |
||||
todo="a" |
||||
cwd="" |
||||
while [ "$1" != "" ]; do |
||||
case "$1" in |
||||
"-s") |
||||
todo="s" ;; |
||||
"-m") |
||||
todo="m" ;; |
||||
"-h") |
||||
usage |
||||
exit 0 ;; |
||||
*) |
||||
if [ -z "$cwd" ]; then |
||||
cwd="$1" |
||||
else |
||||
usage |
||||
exit 1 |
||||
fi |
||||
;; |
||||
esac |
||||
|
||||
shift 1 |
||||
done |
||||
|
||||
[ -z "$cwd" ] || cd $cwd |
||||
case "$todo" in |
||||
"a") |
||||
rm -rf ./out |
||||
|
||||
mk_templates |
||||
cp_static |
||||
;; |
||||
"s") |
||||
cp_static |
||||
;; |
||||
"m") |
||||
mk_templates |
||||
;; |
||||
esac |
||||
} |
||||
|
||||
main $@ |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
</main> |
||||
<main> |
||||
<a href="https://git.unix.lgbt/unix.lgbt/site">Site source</a> |
||||
</body> |
||||
</html> |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html /> |
||||
<html> |
||||
<head> |
||||
<title>unix.lgbt</title> |
||||
<meta name="description" |
||||
content="LGBTQ-friendly pubnix where we make stuff together!" /> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
<link rel="stylesheet" type="text/css" href="style.min.css" /> |
||||
</head> |
||||
<body> |
||||
<header> |
||||
<h1>unix.lgbt</h1> |
||||
<p><i>LGBTQ-friendly pubnix where we make stuff together!</i></p> |
||||
<nav> |
||||
<a href="/index.php">Home</a> |
||||
<a href="/register.php">Register</a> |
||||
<a href="https://wiki.cutebunni.es/ul/">Wiki</a> |
||||
<a href="/coc.php">Code of Conduct</a> |
||||
<a href="https://git.unix.lgbt">Git</a> |
||||
</nav> |
||||
</header> |
||||
<main> |
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
<p> |
||||
This is the code of conduct of unix.lgbt. It is highly recommended for you |
||||
to read it in order to get in. No one stops you from signing up anyways |
||||
without reading it but it's still better to get to know it. |
||||
</p> |
||||
|
||||
<p><b>TL;DR</b> |
||||
Don't be a dick, don't use this machine to do stuff like botnets, mining |
||||
bitcoin or attacking other machines and use common sense. |
||||
</p> |
||||
|
||||
<h2>Don't be a dick</h2> |
||||
<p> |
||||
Hate and discrimination of any form such as homophobia, racism, transphobia, |
||||
(trans)misogyny, ableism, etc. will not be tolerated. This is a safe space. |
||||
</p> |
||||
|
||||
<h2>We don't provide this service for garbage</h2> |
||||
<p> |
||||
If you are thinking about using the pubnix to do stuff such as hosting |
||||
botnets, cryptocurrency mining or any other garbage like that then you are |
||||
not at the right place. This is also |
||||
not a machine to let you attack other systems. This machine is a social |
||||
space to build a community. Not a freely available machine where you can do |
||||
whatever you want. |
||||
</p> |
||||
|
||||
<h2>Remember you are not alone</h2> |
||||
<p> |
||||
This machine is shared among other people, don't use too much resources. |
||||
There are people who needs these resources too. A quota system is set up in |
||||
order to prevent excessive size of user directories. You will be warned if |
||||
your home and pub dir exceeds the quota. Then erased if you are still |
||||
exceeding it a week after the first warning. |
||||
</p> |
||||
|
||||
<h2>Use common sense.</h2> |
||||
<p>I don't think I need to explain that one |
||||
|
||||
<hr /> |
||||
|
||||
<p>To report a user that you think is breaking one of these rules. Please use |
||||
the `report` command inside unix.lgbt to report the user in question.</p> |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
<p> |
||||
Welcome to unix.lgbt! A public access UNIX computer where queer |
||||
folks and allies can join to chill, play and create together! |
||||
</p> |
||||
|
||||
<h3>Shared computer with other people!</h3> |
||||
<p> |
||||
unix.lgbt is one computer shared with a community. You interact |
||||
with the community in one machine using remote access tools like |
||||
SSH! |
||||
</p> |
||||
|
||||
<h3>Create stuff</h3> |
||||
<p> |
||||
We provide programming tools and servers such as HTTP, Gemini, |
||||
to let you create anything! We are working on tools to make |
||||
sharing among other users easier such as a local, user-maintained |
||||
package manager, UNIX groups for common ownership of data |
||||
(useful for collaboration!) |
||||
</p> |
||||
|
||||
<h3>Social applications</h3> |
||||
<p> |
||||
We will provide stuff such as an IRC and our own BBS. Talk with |
||||
others, ask your questions, just like any chatting platform! |
||||
</p> |
||||
|
||||
<h3>Made by queer people for queer people</h3> |
||||
<p> |
||||
This pubnix is entirely LGBTQ-friendly and we will not tolerate |
||||
hatespeech and discrimination against anybody. |
||||
</p> |
@ -0,0 +1,34 @@
@@ -0,0 +1,34 @@
|
||||
<style> |
||||
input { width: 100% } |
||||
textarea { width: 100% } |
||||
</style> |
||||
|
||||
<p><b>NOTE: THE SERVICE IS NOT AVAILABLE YET, SO CLOSED FOR REGISTRATION.</b></p> |
||||
|
||||
<p> |
||||
This form is to register to the pubnix and become a member of the community. |
||||
When you register, it is important that you read the |
||||
<a href="/coc.html"><b>Code of Conduct!</b></a> |
||||
We take time to write this code of conduct for everyone to read it. If you |
||||
don't read it it's your choice, but then don't complain if you don't |
||||
understand why you've been banned if ever you break rules. |
||||
</p> |
||||
|
||||
<form method="post" action="#"> |
||||
<label>Username</label><br /> |
||||
<input type="text" name="username" disabled /><br /><br /> |
||||
|
||||
<label>E-mail Address</label><br /> |
||||
<input type="email" name="email" disabled /><br /><br /> |
||||
|
||||
<!-- TODO: Link to a page about how to get an SSH pubkey --> |
||||
<label>SSH public key</label><br /> |
||||
<input type="text" name="pubkey" disabled /><br /><br /> |
||||
|
||||
<label>What does brings you here?</label><br /> |
||||
<textarea name="description" rows=15 disabled |
||||
placeholder="Be clear, you don't have to write a whole essay."></textarea> |
||||
<br /><br /> |
||||
|
||||
<input type="submit" value="Registrations are closed" disabled /> |
||||
</form> |
After Width: | Height: | Size: 5.5 KiB |
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
body |
||||
{ |
||||
background-color: lightgray; |
||||
font-family: sans-serif; |
||||
margin: 16px; |
||||
} |
||||
|
||||
main, header |
||||
{ |
||||
padding: 16px; |
||||
padding-top: 32px; |
||||
margin: auto; |
||||
left: 0; |
||||
right: 0; |
||||
max-width: 600px; |
||||
|
||||
background-color: white; |
||||
|
||||
background-image: url("gay.png"); |
||||
background-repeat: repeat-x; |
||||
} |
||||
|
||||
nav a |
||||
{ |
||||
margin: 8px; |
||||
padding: 4px 12px; |
||||
background-color: #888; |
||||
color: white; |
||||
text-decoration: none; |
||||
|
||||
display: inline-block; |
||||
} |
||||
|
||||
nav > a:hover |
||||
{ |
||||
background-color: #999; |
||||
} |
||||
|
||||
header { margin-bottom: 12px; } |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
body{background-color:lightgray;font-family:sans-serif;margin:16px}header,main{padding:32px 16px 16px;margin:auto;left:0;right:0;max-width:600px;background-color:white;background-image:url("gay.png");background-repeat:repeat-x}nav a{margin:8px;padding:4px 12px;background-color:#888;color:white;text-decoration:none;display:inline-block}nav > a:hover{background-color:#999}header{margin-bottom:12px} |
Loading…
Reference in new issue