nuevo estilacho de fondo y las páginas iniciales absolutamente necesarias
This commit is contained in:
parent
0f90863e79
commit
5e9716f29e
29
kernelpanic.lol/templates/backlayout.html
Normal file
29
kernelpanic.lol/templates/backlayout.html
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<link rel="stylesheet" href="{{ '/static/style.css'|url }}">
|
||||||
|
<title>{% block title %}Welcome{% endblock %} — kernelpanic.lol</title>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h1>kernelpanic.lol</h1>
|
||||||
|
<nav>
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
<li{% if this._path == '/' %} class="active"{% endif
|
||||||
|
%}><a href="{{ '/'|url }}">Welcome</a></li>
|
||||||
|
{% for href, title in [
|
||||||
|
['/blog', 'Blog'],
|
||||||
|
['/projects', 'Projects'],
|
||||||
|
['/about', 'About']
|
||||||
|
] %}
|
||||||
|
<li{% if this.is_child_of(href) %} class="active"{% endif
|
||||||
|
%}><a href="{{ href|url }}">{{ title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
<div class="page">
|
||||||
|
{% block body %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
<footer>
|
||||||
|
© Copyright 2023 by o.
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
@ -36,9 +36,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="topbar">
|
<div id="topbar">
|
||||||
<div class="button">Button 1</div>
|
<a href="/about"><div class="button">khe?</div></a>
|
||||||
<div class="button">Button 2</div>
|
<a href="/blog"><div class="button">noticiones</div></a>
|
||||||
<div class="button">Button 3</div>
|
<a href="/miranomasesosproyectos"><div class="button">proyectazos</div></a>
|
||||||
<!-- Add more buttons as needed -->
|
<!-- Add more buttons as needed -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1,29 +1,71 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<meta charset="utf-8">
|
<html>
|
||||||
<link rel="stylesheet" href="{{ '/static/style.css'|url }}">
|
<head>
|
||||||
<title>{% block title %}Welcome{% endblock %} — kernelpanic.lol</title>
|
<title>{{ this.title }}</title>
|
||||||
|
<style>
|
||||||
|
body, html {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
#topbar {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
border-bottom: 1px solid black;
|
||||||
|
}
|
||||||
|
.button {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px;
|
||||||
|
border-right: 1px solid black;
|
||||||
|
transition: background-color 0.5s;
|
||||||
|
}
|
||||||
|
.button:hover {
|
||||||
|
background-color: #888;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
max-width: 80%;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<div id="topbar">
|
||||||
<h1>kernelpanic.lol</h1>
|
<a href="/about"><div class="button">khe?</div></a>
|
||||||
<nav>
|
<a href="/blog"><div class="button">noticiones</div></a>
|
||||||
<ul class="nav navbar-nav">
|
<a href="/miranomasesosproyectos"><div class="button">proyectazos</div></a>
|
||||||
<li{% if this._path == '/' %} class="active"{% endif
|
<!-- Add more buttons as needed -->
|
||||||
%}><a href="{{ '/'|url }}">Welcome</a></li>
|
|
||||||
{% for href, title in [
|
|
||||||
['/blog', 'Blog'],
|
|
||||||
['/projects', 'Projects'],
|
|
||||||
['/about', 'About']
|
|
||||||
] %}
|
|
||||||
<li{% if this.is_child_of(href) %} class="active"{% endif
|
|
||||||
%}><a href="{{ href|url }}">{{ title }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
<div class="page">
|
|
||||||
{% block body %}{% endblock %}
|
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
|
||||||
© Copyright 2023 by o.
|
<div class="content">
|
||||||
</footer>
|
<h1>{{ this.title }}</h1>
|
||||||
|
{{ this.body }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.body.addEventListener('click', function () {
|
||||||
|
var randomColor = 'rgb(' +
|
||||||
|
Math.floor(Math.random() * 256) + ',' +
|
||||||
|
Math.floor(Math.random() * 256) + ',' +
|
||||||
|
Math.floor(Math.random() * 256) + ')';
|
||||||
|
document.body.style.backgroundColor = randomColor;
|
||||||
|
document.getElementById('topbar').style.backgroundColor = randomColor;
|
||||||
|
});
|
||||||
|
var buttons = document.querySelectorAll('.button');
|
||||||
|
buttons.forEach(function(button) {
|
||||||
|
button.addEventListener('click', function() {
|
||||||
|
var randomColor = 'rgb(' +
|
||||||
|
Math.floor(Math.random() * 256) + ',' +
|
||||||
|
Math.floor(Math.random() * 256) + ',' +
|
||||||
|
Math.floor(Math.random() * 256) + ')';
|
||||||
|
this.style.backgroundColor = randomColor;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user