Basic layout and style
This commit is contained in:
parent
49a2c82c68
commit
13275dac3c
1
sass/_fonts.scss
Normal file
1
sass/_fonts.scss
Normal file
@ -0,0 +1 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700&display=swap');
|
105
sass/style.scss
Normal file
105
sass/style.scss
Normal file
@ -0,0 +1,105 @@
|
||||
@import "fonts";
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body, h1, h2, h3, p, ul, li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
line-height: 1.6;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
||||
&>* {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.wrap {
|
||||
width: 100%;
|
||||
max-width: 50em;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
nav {
|
||||
min-height: 10em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 8px solid;
|
||||
border-image: linear-gradient(to right, #BF616A 20%, #D08770 20%, #D08770 40%, #EBCB8B 40%, #EBCB8B 60%, #A3BE8C 60%, #A3BE8C 80%, #B48EAD 80%) 5;
|
||||
|
||||
.wrap {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
padding: 0 1em;
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 1em;
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
header {
|
||||
min-height: 35em;
|
||||
background-color: #fff;
|
||||
background-image: url('img/forest.svg'), url('img/panorama.jpg');
|
||||
background-size: contain, cover;
|
||||
background-position: center bottom -4px, center center; // -4px fixes a visible line on some resolutions
|
||||
background-repeat: no-repeat, no-repeat;
|
||||
color: #fff;
|
||||
|
||||
.wrap {
|
||||
padding: 5em 1em;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
section {
|
||||
padding: 3em 1em;
|
||||
}
|
||||
|
||||
footer {
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
padding: 1em;
|
||||
margin-top: auto;
|
||||
}
|
1
static/img/forest.svg
Normal file
1
static/img/forest.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 34 KiB |
BIN
static/img/panorama.jpg
Normal file
BIN
static/img/panorama.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 244 KiB |
31
templates/base.html
Normal file
31
templates/base.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="cs">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}{{ config.title }}{% endblock %}</title>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav>
|
||||
<div class="wrap">
|
||||
Logo
|
||||
<ul>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">About</a></li>
|
||||
<li><a href="#">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
<footer>
|
||||
<p>© 2024 {{ config.title }}</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
18
templates/index.html
Normal file
18
templates/index.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<header>
|
||||
<div class="wrap">
|
||||
<h1>Letní Tábor Na Kocandě</h1>
|
||||
<p>What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces.</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="wrap">
|
||||
<h2>Poslední příspěvek</h2>
|
||||
</section>
|
||||
|
||||
<section class="wrap">
|
||||
Popisky
|
||||
</section>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user