Add basic template and styles

master
Emil Miler 1 year ago
parent 59edbd00f6
commit 207ec56137

@ -0,0 +1,2 @@
+++
+++

@ -0,0 +1,59 @@
*, *:before, *:after {
box-sizing: border-box;
}
body {
max-width: 60em;
width: 100%;
margin: 0 auto;
background: #131516;
color: #e8e6e3;
}
p {
line-height: 1.5;
}
body>header {
.img {
display: block;
width: 100%;
height: 10rem;
background:
url(/logo.svg),
linear-gradient(0deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
url(/header.jpg);
background-size: auto 60%, cover, cover;
background-position: 3em, center, center;
background-repeat: no-repeat;
}
}
body>nav {
width: 100%;
height: 3rem;
background: #1d1f21;
display: flex;
justify-content: center;
align-items: stretch;
a {
display: flex;
align-items: center;
padding: 0 1.5em;
height: 100%;
color: #fc0;
text-decoration: none;
&:hover {
background: #131516;
}
}
}
body>main {
margin-top: 3em;
padding: 0 1em;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.3 KiB

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="cs">
<head>
<title>microlab</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/style.css" rel="stylesheet">
</head>
<body>
<header>
<a class="img" href="/"></a>
</header>
<nav>
<a href="">Index</a>
<a href="">Projekty</a>
<a href="">Kontaky</a>
</nav>
</body>
<main>
<p>Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.</p>
</main>
</html>

@ -0,0 +1 @@
{% extends "base.html" %}
Loading…
Cancel
Save