updated to current website

main
Anorak_1 2023-08-08 19:44:13 +02:00
parent b78405d5c5
commit 1a42eaef1d
10 changed files with 42 additions and 35 deletions

1
.gitignore vendored 100644
View File

@ -0,0 +1 @@
venv/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,16 @@
body {
margin: 0;
font-family: monospace;
}
.topnav {
}
@keyframes lol {
from {background-color: #333;}
to {background-color: #ddd;}
}
.topnav {
overflow: hidden;
background-color: #333;
}
.topnav a {
}
.topnav a {
float: left;
color: #858585;
text-align: center;
@ -16,18 +18,15 @@ body {
text-decoration: none;
font-size: 18px;
font-weight: bold;
}
.topnav a:hover {
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
}
.topnav a.active {
background-color: #333333;
color: #04AA6D;
}
}
.topnav a.twitch {
background-color: #333333;
color: #6441a5;
@ -40,7 +39,9 @@ body {
background-color: #333333;
color: #7289da;
}
h1 {text-align: center;}
.topnav a.game {
float: right;
}
p {text-align: center;
font-size:16px;
line-height: 160%;

View File

@ -3,29 +3,19 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<title>{% block title %}Home{% endblock %}</title>
<title>Anorak_1: {% block title %}Home{% endblock %}</title>
</head>
<body style="background-color:#262626;">
<div class="topnav">
<a class="active" href="/">Home</a>
<a class="dc" href="https://discord.gg/eRDzEv9DVB" targer="_blank" rel="noopener noreferrer">Discord</a>
<a class="twitch" href="https://www.twitch.tv/an0rak_1" target="_blank" rel="noopener noreferrer">Twitch</a>
<a class="yt" href="https://www.youtube.com/channel/UC7d4Vh6X3_QnE9XL4yWmCDw" target="_blank" rel="noopener noreferrer">YouTube</a>
<a class="yt" href="https://youtube.com/@An0rak_1" target="_blank" rel="noopener noreferrer">YouTube</a>
<a href="/sites">Sites</a>
<a href="/about">About</a>
<a class="game" href="/game">1st Game</a>
</div>
{% with messages = get_flashed_messages(with_categories=true) %} {% if
@ -46,7 +36,8 @@
</div>
{% endif %} {% endfor %} {% endif %} {% endwith %}
<div class="container">{% block content %} {% endblock %}</div>
<!--<div class="container"></div>-->
{% block content %} {% endblock %}
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"

View File

@ -0,0 +1,10 @@
{% extends "base.html" %} {% block title %}Game{% endblock %} {% block
content %}
<div align="center" style="padding:10px;color: #04AA6D;">
<h1>| Game |</h1>
<h3>Soo... this is my first "game" that got past the player controller... ENJOY</h3>
<iframe src="https://demo.anorak01.top/0.1.11/Jumper.html" style="aspect-ratio: 16 / 9;width: 70%;min-width: 640px;min-height: 360px;max-width: 1920;max-height: 1200" title="Game"></iframe>
<h3>A = Left | W/Space = Jump | D = Right</h3>
<a class="game" href="https://latest.demo.anorak01.top" target="_blank" rel="noopener noreferrer">Direct Link</a>
</div>
{% endblock %}

View File

@ -2,6 +2,6 @@
%}
<div align="center" style="padding:10px;color: #04AA6D;">
<h1>All selfhosted site links</h1>
<p><a href="https://gitea.anorak01.top" target="_blank" rel="noopener noreferrer"><img src="https://gitea.anorak01.top/assets/img/logo.svg" width="120" height="120"></a><br><a href="https://nmanager.anorak01.top" target="_blank" rel="noopener noreferrer"><img src="https://avatars.githubusercontent.com/u/88089605?v=4&s=400" width="120" height="120"></a><br><a href="https://paste.anorak01.top" target="_blank" rel="noopener noreferrer"><img src=https://dashboard.snapcraft.io/site_media/appmedia/2020/03/hastebin.png width="120" height="120"></a><br></p>
</div>
<p><a href="https://gitea.anorak01.top" target="_blank" rel="noopener noreferrer"><img src="https://gitea.anorak01.top/assets/img/logo.svg" width="120" height="120"></a> <a href="https://paste.anorak01.top" target="_blank" rel="noopener noreferrer"><img src=https://dashboard.snapcraft.io/site_media/appmedia/2020/03/hastebin.png width="120" height="120"></a><br></p>
</div>
{% endblock %}

View File

@ -8,7 +8,7 @@ views = Blueprint('views', __name__)
@views.route('/', methods=['GET', 'POST'])
def home():
if request.method == 'POST':
'''if request.method == 'POST':
note = request.form.get('note')
if len(note) < 1:
@ -17,7 +17,7 @@ def home():
new_note = Note(data=note, user_id=current_user.id)
db.session.add(new_note)
db.session.commit()
flash('Note added!', category='success')
flash('Note added!', category='success')'''
return render_template("home.html")
@ -29,7 +29,11 @@ def sites():
def about():
return render_template("about.html")
@views.route('/delete-note', methods=['POST'])
@views.route('/game')
def game():
return render_template("game.html")
'''@views.route('/delete-note', methods=['POST'])
def delete_note():
note = json.loads(request.data)
noteId = note['noteId']
@ -39,4 +43,4 @@ def delete_note():
db.session.delete(note)
db.session.commit()
return jsonify({})
return jsonify({})'''