Made it look a bit nicer and added images for the members section

This commit is contained in:
2025-10-22 19:42:25 +01:00
parent 6c5453ad17
commit 95af8d78bb
20 changed files with 153 additions and 82 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
*.swp
/chat/node_modules
mastodon-status/*
venv/

View File

@@ -18,4 +18,4 @@
/ `.`, | '--' `.
( `. __.j )
\_ |--""___| ,-'
`"--...,+"""" `._,.-' <a href="http://roysac.com/tutorial/diamondieasciiarttutorial.html">mh</a>
`"--...,+"""" `._,.-'

View File

@@ -0,0 +1,8 @@
__
/ \
^ ^
O O/
|| ||
|\_/|
`___'

View File

@@ -16,5 +16,4 @@
/ `.`, .'`" '--'.l
( `. / ^.^ \)
\_ |--""\ `===` /
`"--...,+"""" `--------`<a href="http://roysac.com/tutorial/diamondieasciiarttutorial.html">mh</a>
`"--...,+"""" `--------`

View File

@@ -16,5 +16,4 @@
/ `.`, | '--' `.
( `. __.j )
\_ |--""___| ,-'
`"--...,+"""" `._,.-' <a href="http://roysac.com/tutorial/diamondieasciiarttutorial.html">mh</a>
`"--...,+"""" `._,.-'

View File

@@ -1,20 +0,0 @@
.-"""-.
' \
|,. ,-. |
|()L () \ |
| ___ |
| ` ` | `
.j ` `.
/ ' ' \
/ / ` `.
/ / Stay ` .
/ / Single l |
. , TuxCord | |
_ ,"`. .| |
| ' ``. | [..-'l
/ `.`, | '--' `.
( `. __.j )
\_ |--""___| ,-'
`"--...,+"""" `._,.-' mh

40
tuxcord/members.json Normal file
View File

@@ -0,0 +1,40 @@
[
{
"name": "PixeL",
"additional": "Founder"
},
{
"name": "bruhhhhh😘",
"pfp": "bruh.png",
"additional": "Admin"
},
{
"name": "ErrorNoInternet",
"pfp": "error.png",
"additional": "Admin"
},
{
"name": "Javalsai",
"website": "https://javalsai.tuxcord.net",
"pfp": "javalsai.avif",
"additional": "Admin"
},
{
"name": "Danmax",
"website": "https://git.javalsai.tuxcord.net/danmax",
"pfp": "danmax.png"
},
{
"name": "DeaDvey",
"website": "https://deadvey.com",
"pfp": "deadvey.png"
},
{
"name": "Grialion"
},
{
"name": "Spamix",
"website": "https://decompil.in"
}
]

BIN
tuxcord/static/bruh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
tuxcord/static/danmax.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
tuxcord/static/deadvey.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
tuxcord/static/error.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
tuxcord/static/generic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -12,39 +12,56 @@ footer {
width: 100%;
background: black;
}
h1 {
text-decoration: underline;
font-size: 20px;
}
#footer-links {
margin: 10px;
margin: 0px;
padding: 5px;
border-top: 1px solid var(--accent);
}
hr {
color: #ffffff;
}
.tuxcord-image {
#ascii-penguin {
position: absolute;
top: 0;
left: 650px;
}
#ascii-clippy {
position: absolute;
top: 10px;
left: 650px;
font-size: 10px;
transform: rotate(-0.3rad);
}
a {
text-decoration: none;
color: var(--accent);
}
a:hover not(.no-spin) {
animation: half-spin 1s linear infinite;
display: inline-block; /* Ensures the text spins around its center */
#member img {
width: 100px;
border-radius: 50%;
}
@keyframes half-spin {
0% {
transform: rotate(0deg);
}
25% {
transform: rotate(10deg);
}
50% {
transform: rotate(0deg);
}
75% {
transform: rotate(-10deg);
}
100% {
transform: rotate(0deg);
}
#member img:hover {
transform: scale(1.2);
filter: drop-shadow(0 0 3px #202020);
}
#member-role {
color: #888888;
}
#members {
display: grid;
grid-template-columns: auto auto auto auto;
}
#members div {
padding: 10px;
border-bottom: 1px solid var(--accent);
text-align: center;
margin: 20px;
}
#member:hover {
background: #222222;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
tuxcord/static/javalsai.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -0,0 +1,12 @@
<div id='ascii-penguin'>
<pre>
{{ ascii_penguin }}
</pre>
</div>
<div id='ascii-clippy'>
<a href='https://www.youtube.com/watch?v=2_Dtmpe9qaQ&pp=ygUUbG91aXMgcm9zc21hbiBjbGlwcHk%3D'>
<pre>
{{ ascii_clippy }}
</pre>
</a>
</div>

View File

@@ -1,5 +1,4 @@
<hr/>
<div id="footer-links">
<a href="https://git.javalsai.tuxcord.net/deadvey/tuxcord.net">Source Code</a>
/

View File

@@ -1,3 +1,4 @@
{% load static %}
<!DOCTYPE html>
<html>
<head>
@@ -8,7 +9,7 @@
{% include 'header.html'%}
</header>
<b><u>Services we provide:</u></b>
<h1>Services we provide:</h1>
<ul>
<li>
<a href="https://mastodon.tuxcord.net">Mastodon</a> (<a href='/mastodon-status'>Status</a>)
@@ -26,7 +27,7 @@
Matrix server: matrix.tuxcord.net (please ask deadvey for access)
</li>
</ul>
<b><u>Join us:</u></b>
<h1>Join us:</h1>
<ul>
Our Matrix and Discord are bridged, irc is not and is not very active.
<li>
@@ -39,30 +40,16 @@
<a href="irc://irc.tuxcord.net">irc.tuxcord.net</a>
</li>
</ul>
<details>
<summary>
<u><b>Members:</b></u>
</summary>
<ul>
<li><u>pickzelle (Founder)</u></li>
<li>bruhhhhh😘</li>
<li><a href="https://git.javalsai.tuxcord.net/danmax">Danmax</a></li>
<li><a href="https://deadvey.tuxcord.net">DeaDvey</a></li>
<li><a href="https://github.com/ErrorNoInternet">ErrorNoInternet</a></li>
<li>grialion</li>
<li><a href="https://javalsai.tuxcord.net">Javalsai</a></li>
<li><a href="https://decompil.in/">Spamix</a></li>
</ul>
</details>
<div class="tuxcord-image">
<pre>
{{ ascii_penguin|safe }}
</pre>
<h1>Members:</h1>
<div id='members'>
{{member_grid_html | safe}}
</div>
</body>
{% include 'ascii-art.html' %}
<footer>
{% include 'footer.html' %}
</footer>
</body>
</html>

View File

@@ -32,15 +32,11 @@
</li>
</ol>
{% include 'ascii-art.html' %}
<div class="tuxcord-image">
<pre>
{{ ascii_penguin|safe }}
</pre>
</div>
</body>
<footer>
{% include 'footer.html' %}
</footer>
</body>
</html>

View File

@@ -3,6 +3,9 @@ from django.urls import path
from django.http import HttpResponse
import os
from datetime import datetime
import json
ascii_clippy = open('./ascii/clippy.html', 'r').read()
def decide_ascii():
day = datetime.today().strftime('%d')
@@ -15,13 +18,43 @@ def decide_ascii():
else:
return open('./ascii/normal.html', 'r').read()
def members_grid():
members_grid_html = ''
with open('members.json', 'r') as members_file:
members_object = json.load(members_file)
for member in members_object:
members_grid_html += f'''
{f'<a href="{member["website"]}">' if "website" in member else ''}
<div id="member">
<span id='member-image'><img src="/static/{member["pfp"] if "pfp" in member else 'generic.png'}"></span>
<br/>
<span id='member-name'>{member["name"]}<span>
<br/>
<span id='member-role'><sub><i>{member["additional"] if "additional" in member else ''}</i></sub></span>
<br/>
</div>
{'</a>' if 'website' in member else ''}
'''
return members_grid_html
def index(request):
ascii_penguin = decide_ascii()
return render(request, 'index.html', {'ascii_penguin': ascii_penguin})
members_grid_html = members_grid()
return render(request, 'index.html', {
'ascii_penguin': ascii_penguin,
'ascii_clippy': ascii_clippy,
'member_grid_html': members_grid_html
})
def mc(request):
ascii_penguin = decide_ascii()
return render(request, 'mc.html', {'ascii_penguin': ascii_penguin})
return render(request, 'mc.html', {
'ascii_penguin': ascii_penguin,
'ascii_clippy': ascii_clippy
})
urlpatterns = [
path('', index, name='index'),