Create website-redesign branch. Include incomplete redesign assets. Very much in-progress.

This commit is contained in:
Chris Wilson
2020-10-24 14:46:27 -04:00
parent 2d43cae88e
commit e08e650110
63 changed files with 45 additions and 84 deletions

View File

@@ -84,7 +84,7 @@ def tutorial(lang='en'):
@app.route('/player-settings')
def player_settings():
return render_template("player-settings.html")
return render_template("playerSettings.html")
@app.route('/seed/<suuid:seed>')
@@ -92,7 +92,7 @@ def view_seed(seed: UUID):
seed = Seed.get(id=seed)
if not seed:
abort(404)
return render_template("view_seed.html", seed=seed,
return render_template("viewSeed.html", seed=seed,
rooms=[room for room in seed.rooms if room.owner == session["_id"]])

View File

@@ -114,7 +114,7 @@ def wait_seed(seed: UUID):
return "Generation not found."
elif generation.state == STATE_ERROR:
return "Generation failed, please retry."
return render_template("wait_seed.html", seed_id=seed_id)
return render_template("waitSeed.html", seed_id=seed_id)
def upload_to_db(folder, owner, sid):

View File

@@ -4,14 +4,7 @@ window.addEventListener('load', () => {
const cookieNotice = document.createElement('div');
cookieNotice.innerText = "This website uses cookies to store information about the games you play.";
cookieNotice.style.position = "fixed";
cookieNotice.style.bottom = "0";
cookieNotice.style.left = "0";
cookieNotice.style.width = "100%";
cookieNotice.style.lineHeight = "40px";
cookieNotice.style.backgroundColor = "#c7cda5";
cookieNotice.style.textAlign = "center";
cookieNotice.style.cursor = "pointer";
cookieNotice.setAttribute('id', 'cookie-notice');
document.body.appendChild(cookieNotice);
cookieNotice.addEventListener('click', () => {
localStorage.setItem('cookieNotice', "1");

View File

@@ -0,0 +1,4 @@
Copyright 2020 Berserker66 (Fabian Dill)
Copyright 2020 LegendaryLinux (Chris Wilson)
All rights reserved.

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,11 @@
#cookie-notice{
display: block;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
line-height: 40px;
background-color: #c7cda5;
text-align: center;
cursor: pointer;
}

View File

@@ -1,58 +0,0 @@
/** Global colors for all pages */
body{
background-color: #dce2bd;
font-size: 1.2rem;
font-family: "Segoe UI", Arial, sans-serif;
}
/** Button Styles */
button, input[type=submit]{
border: 1px solid #7d8c35;
border-radius: 4px;
width: 200px;
height: 75px;
margin-left: 0.25rem;
margin-right: 0.25rem;
background-color: #dce2bd;
font-family: inherit;
font-size: 1.5rem;
cursor: pointer;
}
button:hover, input[type=submit]:hover{
background-color: #e0e7bd;
}
/** Content styles */
.main-content{
max-width: 1000px;
border-radius: 8px;
background-color: #bbb288;
padding: 0.5em 1.5rem 1.5rem;
color: #282b28;
}
.main-content h3{
margin: 0;
font-size: 3rem;
text-align: center;
font-weight: normal;
}
.main-content a{
color: #34768a;
text-decoration: none;
}
/** Tooltip styles */
[data-tooltop]{
position: relative;
z-index: 10;
cursor: pointer;
}
[data-tooltip]:before, [data-tooltip]:after{
visibility: hidden;
opacity: 0;
pointer-events: none;
}

View File

@@ -67,6 +67,12 @@ give it one of the following classes: tooltip-left, tooltip-right, tooltip-top,
line-height: 1.2;
}
[data-tooltip]:before, [data-tooltip]:after{
visibility: hidden;
opacity: 0;
pointer-events: none;
}
[data-tooltip]:before, [data-tooltip]:after, .tooltip:before, .tooltip:after,
.tooltip-top:before, .tooltip-top:after {
bottom: 100%;

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% block head %}
{{ super() }}

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% block head %}
{{ super() }}

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% block head %}
{{ super() }}

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% import "macros.html" as macros %}
{% block head %}
<title>Multiworld {{ room.id|suuid }}</title>

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% block head %}
<title>Berserker's Multiworld</title>

View File

@@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/layout.css") }}" />
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/tooltip.css") }}" />
<script type="application/ecmascript" src="{{ static_autoversion("assets/layout.js") }}"></script>
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/cookieNotice.css") }}" />
<script type="application/ecmascript" src="{{ static_autoversion("assets/cookieNotice.js") }}"></script>
{% block head %}
<title>Berserker's Multiworld</title>
<title>Multiworld</title>
{% endblock %}
</head>
<body>

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% block head %}
<title>Player Settings</title>

View File

@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "pageWrapper.html" %}
{% block head %}
<link rel="stylesheet"
type="text/css"

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% block head %}
<title>Setup Tutorial</title>

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% import "macros.html" as macros %}
{% block head %}

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'pageWrapper.html' %}
{% import "macros.html" as macros %}
{% block head %}