This commit is contained in:
2023-08-29 10:08:14 +02:00
parent 93895a5967
commit 35d081abc4
20 changed files with 715 additions and 43 deletions

161
templates/404.html Normal file
View File

@ -0,0 +1,161 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>filiprojek.cz | 404 Not found</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/img/fr.ico">
<link rel="stylesheet" href="/general.css">
<link rel="stylesheet" href="/vars.css">
<style>
/* 404.css */
body {
margin: 0;
overflow: hidden;
}
.container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
position: relative;
}
.stars {
background-image: url('/img/rocket.webp');
background-size: cover;
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
animation: stars 20s linear infinite;
}
.planet {
background-image: url('/img/rocket.webp');
background-size: contain;
background-repeat: no-repeat;
width: 200px;
height: 200px;
position: absolute;
bottom: 50px;
left: 50%;
transform: translateX(-50%);
}
.moon {
background-image: url('/img/rocket.webp');
background-size: contain;
background-repeat: no-repeat;
width: 40px;
height: 40px;
position: absolute;
top: 120px;
left: 130px;
animation: moon 10s linear infinite;
}
.rocket {
background-image: url('/img/rocket.webp');
background-size: contain;
background-repeat: no-repeat;
width: 120px;
height: 240px;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
.fire {
background-image: url('/img/rocket.webp');
background-size: contain;
background-repeat: no-repeat;
width: 20px;
height: 60px;
position: absolute;
bottom: 25px;
left: 50%;
transform: translateX(-50%);
animation: fire 0.5s alternate infinite;
}
.text {
color: #fff;
z-index: 1;
}
h1 {
font-size: 2.5rem;
}
p {
font-size: 1.2rem;
margin-top: 20px;
}
a {
text-decoration: none;
color: #58a6ff;
font-size: 1.2rem;
display: block;
margin-top: 20px;
}
@keyframes stars {
0% {
background-position: 0 0;
}
100% {
background-position: 100px 100px;
}
}
@keyframes moon {
0% {
transform: translate(0, 0);
}
50% {
transform: translate(10px, -10px);
}
100% {
transform: translate(0, 0);
}
}
@keyframes fire {
0% {
opacity: 1;
}
100% {
opacity: 0.6;
}
}
</style>
</head>
<body>
<div class="container">
<div class="stars"></div>
<div class="planet">
<div class="moon"></div>
</div>
<div class="rocket">
<div class="fire"></div>
</div>
<div class="text">
<h1>Oops! You're Lost in Space!</h1>
<p>Looks like you took a wrong turn and ended up in the outer reaches of the internet. Don't worry; our rocket is on its way to bring you back.</p>
<a href="/">Return to Earth</a>
</div>
</div>
</body>
</html>

View File

@ -18,9 +18,13 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/img/fr.ico">
<link href="/style.css" rel="stylesheet">
<link href="/home.css" rel="stylesheet">
<link href="/content.css" rel="stylesheet">
<link rel="stylesheet" href="/general.css">
<link rel="stylesheet" href="/vars.css">
<link rel="stylesheet" href="/content.css">
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/home.css">
{% block styles %}
{% endblock stles %}
</head>
<body>
<header>
@ -58,6 +62,11 @@
{% endif %}</p>
<p>(c) filiprojek.cz 2022 - {{ now() | date(format="%Y")}}</p>
</footer>
<script>
console.log("pls don't judge me by the source code you can see here, I'm just an ordinary backend developer trying to make a frontend:))")
console.log("but I heard that a cool frontend developer works for https://fofrweb.com")
</script>
</body>
</html>

0
templates/guitar.html Normal file
View File

View File

@ -1,11 +1,22 @@
{% extends "base.html" %}
{% block styles %}
<link rel="stylesheet" href="/project.css">
{% endblock styles %}
{% block content %}
<section>
<h1>{{ page.title }}</h1>
{{ page.description }}
</section>
<section>
{{ page.content | safe }}
<section class="project-wrapper flex-row">
<section class="left-bar flex-col">
<h2>Projects</h2>
{% set section = get_section(path=page.ancestors | last) %}
{% for project in section.pages %}
<a href="{{ project.permalink }}">{{project.title}}</a>
{% endfor %}
</section>
<section class="project-full">
{{ page.content | safe }}
</section>
</section>
{% endblock content %}

View File

@ -1,21 +1,28 @@
{% extends "base.html" %}
{% block styles %}
<link rel="stylesheet" href="/project_list.css">
{% endblock styles %}
{% block content %}
<section class="project-list content">
<h1>My Projects</h1>
{% for project in section.pages %}
<a href="{{ project.permalink }}">
<div class="description">
<div class="title">{{ project.title }}</div>
<p>
{% if project.description %}
{{ project.description }}
{% else %}
&hellip;
{% endif %}
</p>
<div class="project">
<a class="title" href="{{ project.permalink }}">
{{ project.title }}
</a>
<p class="description">
{% if project.description %}
{{ project.description }}
{% else %}
&hellip;
{% endif %}
</p>
<hr>
<p>{{ project.date }} | {{ project.extra.state}}</p>
</div>
</a>
{% endfor %}
{% endfor %}
</section>
{% endblock content %}