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>
|
||||
<body>
|
||||
<div id="topbar">
|
||||
<div class="button">Button 1</div>
|
||||
<div class="button">Button 2</div>
|
||||
<div class="button">Button 3</div>
|
||||
<a href="/about"><div class="button">khe?</div></a>
|
||||
<a href="/blog"><div class="button">noticiones</div></a>
|
||||
<a href="/miranomasesosproyectos"><div class="button">proyectazos</div></a>
|
||||
<!-- Add more buttons as needed -->
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,29 +1,71 @@
|
||||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="{{ '/static/style.css'|url }}">
|
||||
<title>{% block title %}Welcome{% endblock %} — kernelpanic.lol</title>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<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>
|
||||
<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>
|
||||
<div id="topbar">
|
||||
<a href="/about"><div class="button">khe?</div></a>
|
||||
<a href="/blog"><div class="button">noticiones</div></a>
|
||||
<a href="/miranomasesosproyectos"><div class="button">proyectazos</div></a>
|
||||
<!-- Add more buttons as needed -->
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<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>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user