This commit is contained in:
retoor 2025-01-24 15:20:35 +01:00
parent 757b67b78c
commit 6ba6121988
6 changed files with 27 additions and 16 deletions

View File

@ -22,3 +22,4 @@ class LoginForm(Form):
type="button"
)

View File

@ -30,9 +30,7 @@ class HTMLFrame extends HTMLElement {
const parent = this
const markdownElement = document.createElement('div')
markdownElement.innerHTML = html
document.body.appendChild(markdownElement)
//parent.parentElement.appendChild(markdownElement)
this.outerHTML = html
}else{
this.container.innerHTML = html;
}

View File

@ -1,17 +1,17 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.center {
padding: 30px;
.dialog {
text-align: center;
margin: auto auto;
left: 25%;
position: absolute;
background-color: #0f0f0f;
border-radius: 10px;
padding: 30px;
width: 800px;
margin: 30px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 500px) {
@ -34,8 +34,15 @@ h2 {
margin-bottom: 20px;
}
body {
background-color: #000;
color: #efefef;
font-family: Arial, sans-serif;
background-color: #1a1a1a;
color: #e6e6e6;
line-height: 1.5;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
div {

View File

@ -1,7 +1,10 @@
{% extends "base.html" %}
{% block main %}
<div class="dialog">
<html-frame url="/about.md"></html-frame>
<fancy-button size="auto" text="Back" url="/back"></fancy-button>
<html-frame url="/about.md"></html-frame>
</div>
{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block main %}
<fancy-button url="/back" text="Back" size="auto"></fancy-button>
<generic-form class="center" url="/login-form.json"></generic-form>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base.html" %}
{% block main %}
<fancy-button url="/back" text="Back" size="auto"></fancy-button>
<generic-form class="center" url="/register-form.json"></generic-form>
{% endblock %}