diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..69f8a8d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public/ + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..cc41289 --- /dev/null +++ b/config.toml @@ -0,0 +1,22 @@ +# The URL the site will be built for +base_url = "https://www.filiprojek.cz" +title = "Filip Rojek" + +compile_sass = true +minify_html = true +build_search_index = false + +[markdown] +highlight_code = true +external_links_no_follow = true +external_links_no_referrer = true +smart_punctuation = true + +[extra] +git = "https://git.filiprojek.cz/fr/website" +nav_items = [ + {name="Home", path="/"}, + {name="Projects", path="/projects/"}, + {name="Contacts", path="/contact/"}, +] + diff --git a/content/akordy/_index.md b/content/akordy/_index.md new file mode 100644 index 0000000..50fbcf9 --- /dev/null +++ b/content/akordy/_index.md @@ -0,0 +1,7 @@ ++++ +title = "Akordy" +template = "akordy_list.html" +page_template = "akordy.html" +sort_by = "date" ++++ + diff --git a/content/akordy/first.md b/content/akordy/first.md new file mode 100644 index 0000000..59addfa --- /dev/null +++ b/content/akordy/first.md @@ -0,0 +1,14 @@ ++++ +title = "Fofrbazar" +date = 2019-11-27 ++++ + +## Internetová bazarová platforma +### 04/2021 +- Technologie + - PHP + - Laravel + - MySQL + - Linux + - Apache + diff --git a/content/akordy/second.md b/content/akordy/second.md new file mode 100644 index 0000000..59addfa --- /dev/null +++ b/content/akordy/second.md @@ -0,0 +1,14 @@ ++++ +title = "Fofrbazar" +date = 2019-11-27 ++++ + +## Internetová bazarová platforma +### 04/2021 +- Technologie + - PHP + - Laravel + - MySQL + - Linux + - Apache + diff --git a/content/contact.md b/content/contact.md new file mode 100644 index 0000000..98517d1 --- /dev/null +++ b/content/contact.md @@ -0,0 +1,4 @@ ++++ +title = "Contacts" +template = "contact.html" ++++ diff --git a/content/projects/_index.md b/content/projects/_index.md new file mode 100644 index 0000000..b7245f1 --- /dev/null +++ b/content/projects/_index.md @@ -0,0 +1,7 @@ ++++ +title = "Projects" +template = "project_list.html" +page_template = "project.html" +sort_by = "date" ++++ + diff --git a/content/projects/first.md b/content/projects/first.md new file mode 100644 index 0000000..59addfa --- /dev/null +++ b/content/projects/first.md @@ -0,0 +1,14 @@ ++++ +title = "Fofrbazar" +date = 2019-11-27 ++++ + +## Internetová bazarová platforma +### 04/2021 +- Technologie + - PHP + - Laravel + - MySQL + - Linux + - Apache + diff --git a/sass/_fonts.scss b/sass/_fonts.scss new file mode 100644 index 0000000..37870ee --- /dev/null +++ b/sass/_fonts.scss @@ -0,0 +1,25 @@ +@font-face { + font-family: open-sans; + font-weight: normal; + font-style: normal; + src: url('fonts/open-sans-regular.woff2') format('woff2'), + url('fonts/open-sans-regular.woff') format('woff'), + url('fonts/open-sans-regular.ttf') format('truetype'); +} +@font-face { + font-family: open-sans; + font-weight: normal; + font-style: italic; + src: url('fonts/open-sans-italic.woff2') format('woff2'), + url('fonts/open-sans-italic.woff') format('woff'), + url('fonts/open-sans-italic.ttf') format('truetype'); +} +@font-face { + font-family: open-sans; + font-weight: bold; + font-style: normal; + src: url('fonts/open-sans-bold.woff2') format('woff2'), + url('fonts/open-sans-bold.woff') format('woff'), + url('fonts/open-sans-bold.ttf') format('truetype'); +} + diff --git a/sass/content.scss b/sass/content.scss new file mode 100644 index 0000000..137974e --- /dev/null +++ b/sass/content.scss @@ -0,0 +1,5 @@ +.content { + display: flex; + flex-direction: column; + margin: 2rem 8rem; +} diff --git a/sass/home.scss b/sass/home.scss new file mode 100644 index 0000000..c64b529 --- /dev/null +++ b/sass/home.scss @@ -0,0 +1,34 @@ +.content { + margin-block: auto; +} +.home { + margin-top: 5rem; + font-size: 1.2rem; + + section { + text-align: center; + } + + a { + color: lightblue; + cursor: pointer; + text-decoration: underline; + } + + #pgp { + cursor: pointer; + } + + #pgpmobile { + display: none; + } +} +@media (max-width: 600px) { + #pgp { + display: none; + } + #pgpmobile { + display: inline-block; + } +} + diff --git a/sass/style.scss b/sass/style.scss new file mode 100644 index 0000000..7eedba7 --- /dev/null +++ b/sass/style.scss @@ -0,0 +1,89 @@ +body { + --base-padding: .5rem 1rem; + --base-margin: 2rem; + --background: #111111; + --color: #ffffff; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + display: flex; + flex-direction: column; + min-height: 100vh; + font-family: 'Source Code Pro', monospace; + background: var(--background); + color: var(--color); +} + +html { + overflow-y: scroll !important; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + scroll-behavior: smooth; +} +*::-webkit-scrollbar { + width: 5px; +} +*::-webkit-scrollbar-thumb { + background-color: #ffffff; + border-radius: 20px; +} +*::-webkit-scrollbar-track { + background: #000000; +} + +nav { + position: relative; + display: flex; + padding: 1rem; + justify-content: space-between; + isolation: isolate; + + .logo img { + height: 3rem; + } + + .links { + display: flex; + align-items: center; + justify-content: center; + gap: 1rem; + z-index: -1; + color: var(--color); + font-size: 1.3rem; + } +} + + +a { color: var(--color); } +a:visited { color: var(--color); } +a:hover { color: red; } + +@media (min-width: 400px) { + nav .links { + position: absolute; + inset: 0; + } +} + +/* +.content { + padding: 2rem 1rem; +} +*/ +footer { + display: flex; + width: 100vw; + flex-direction: column; + justify-content: center; + align-items: center; + align-self: flex-end; + margin-top: auto; + margin-bottom: 2rem; +} + diff --git a/static/img/fr.ico b/static/img/fr.ico new file mode 100644 index 0000000..d11cb43 Binary files /dev/null and b/static/img/fr.ico differ diff --git a/static/img/fr_logo.webp b/static/img/fr_logo.webp new file mode 100644 index 0000000..0a64480 Binary files /dev/null and b/static/img/fr_logo.webp differ diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..3f0de7c --- /dev/null +++ b/templates/base.html @@ -0,0 +1,63 @@ + + + + + {% block title %} + {% if current_path != "/" %} + {{ config.title }} – + {% if section.title %} + {{ section.title }} + {% elif page.title %} + {{ page.title }} + {% endif %} + {% else %} + {{ config.title }} + {% endif %} + {% endblock title %} + + + + + + + + + +
+ +
+ +
+ {% block content %} +
+ {% if section %} + {{ section.content | safe }} + {% elif page %} + {{ page.content | safe }} + {% endif %} +
+ {% endblock content %} +
+ + + + diff --git a/templates/contact.html b/templates/contact.html new file mode 100644 index 0000000..4d96323 --- /dev/null +++ b/templates/contact.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block content %} +
+

Contacts

+
+

email: filip@filiprojek.cz

+

telegram: @filiprojek

+

git: https://git.filiprojek.cz

+

github: https://github.com/filiprojek

+

PGP: fc37b989787acf8cbce7c0c2a56a345efe321161

+
+
+{% endblock content %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..fb6c53b --- /dev/null +++ b/templates/index.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} + +{% block content %} + +
+
+

Filip Rojek <filip@filiprojek.cz>

+
+

Backend node.js & php developer @fofrweb,
Linux Void user, student and coffee enthusiast_

+
+

PGP: fc37b989787acf8cbce7c0c2a56a345efe321161

+
+

Git Telegram PGP

+
+ + +
+ +{% endblock content %} + diff --git a/templates/project.html b/templates/project.html new file mode 100644 index 0000000..b510331 --- /dev/null +++ b/templates/project.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} +
+

{{ page.title }}

+ {{ page.description }} +
+
+ {{ page.content | safe }} +
+{% endblock content %} diff --git a/templates/project_list.html b/templates/project_list.html new file mode 100644 index 0000000..c4c6cb8 --- /dev/null +++ b/templates/project_list.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block content %} +
+

My Projects

+ {% for project in section.pages %} + +
+
{{ project.title }}
+

+ {% if project.description %} + {{ project.description }} + {% else %} + … + {% endif %} +

+
+
+ {% endfor %} +
+{% endblock content %}