new style

This commit is contained in:
Luca Junge 2024-03-21 09:04:19 +01:00
parent 96bf869340
commit 546d4bc4c7
16 changed files with 323 additions and 110 deletions

View file

@ -2,5 +2,6 @@
"emmet.includeLanguages": { "emmet.includeLanguages": {
"njk": "html", "njk": "html",
"nunjucks": "html" "nunjucks": "html"
} },
"editor.defaultFormatter": "esbenp.prettier-vscode"
} }

Binary file not shown.

93
src/_assets/fonts/OFL.txt Normal file
View file

@ -0,0 +1,93 @@
Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="ionicon"
viewBox="0 0 512 512"
version="1.1"
id="svg1"
sodipodi:docname="logo-github.svg"
inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.6230469"
inkscape:cx="256"
inkscape:cy="256"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<path
d="M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 003.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 01-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0025.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 015-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 01112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 015 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 004-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"
id="path1"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

View file

@ -1,17 +1,17 @@
<header id="main-header"> <header id="navigation">
<nav> <nav>
<ul> <ul>
<li> <li>
<a href="/" title="Zurück zur Startseite">HOME</a> <a href="/portfolio/" title="Alle Posts">Portfolio</a>
</li> </li>
<li> <li>
<a href="/posts/" title="Alle Posts">POSTS</a> <a href="/workflow/" title="Workflow">Workflow</a>
</li> </li>
<li> <li>
<a href="/examples/" title="Alle Posts">EXAMPLES</a> <a href="/blog/" title="Blog">Blog</a>
</li> </li>
<li> <li>
<a href="/tutorials/" title="Alle Posts">TUTORIALS</a> <a href="/contact/" title="Kontakt">Kontakt</a>
</li> </li>
</ul> </ul>
</nav> </nav>

View file

@ -1,4 +1,4 @@
@font-face { @font-face {
font-family: "Quicksand"; font-family: "Montserrat";
src: url("/assets/fonts/QuicksandVariable.ttf"); src: url("/assets/fonts/Montserrat-VariableFont_wght.ttf");
} }

View file

@ -1,5 +1,6 @@
#main-footer { #main-footer {
background-color: var(--dark-background-color); background-color: #111111;
color: #ffffff;
padding: 0.75rem 1rem 0.75rem 1rem; padding: 0.75rem 1rem 0.75rem 1rem;
font-weight: bold; font-weight: bold;
display: flex; display: flex;

View file

@ -1,17 +1,21 @@
#main-header { #navigation {
background-color: var(--dark-background-color); position: relative;
font-size: 20pt; z-index: 2;
padding: 18px; background-color: rgba(0, 0, 0, 0.4);
padding: 12px;
backdrop-filter: blur(4px);
margin-bottom: -70px;
outline: 1px solid rgba(0, 0, 0, 0.5);
} }
#main-header a { #navigation a {
text-decoration: none; text-decoration: none;
color: var(--text-color); color: #ffffff;
} }
#main-header ul { #navigation ul {
display: flex; display: flex;
gap: 20px; gap: 18px;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-items: baseline; align-items: baseline;
@ -21,14 +25,36 @@
font-weight: bold; font-weight: bold;
} }
#main-header ul li { #navigation a {
margin: 0px; padding: 8px;
padding: 0px; display: inline-block;
text-decoration-skip-ink: none; transition: background-color 0.25s ease-in-out;
text-underline-offset: 8px; border-radius: 4px;
text-decoration-thickness: 8px; }
text-decoration: underline;
text-decoration-color: var(--accent); #navigation a:hover,
#navigation a:focus-visible {
outline: 1px solid rgba(255, 255, 255, 0.05);
background-color: rgba(255, 255, 255, 0.2);
}
#navigation img {
height: 1em;
object-fit: contain;
}
#navigation .icon-button a {
padding: 8px;
}
#navigation .icon-button {
display: flex;
justify-content: center;
align-items: center;
}
#navigation .icon-button img {
vertical-align: middle;
} }
/* Breakpoints */ /* Breakpoints */

11
src/css/hero.css Normal file
View file

@ -0,0 +1,11 @@
.hero {
display: flex;
justify-content: center;
margin: 0px;
padding-top: calc(128px + 70px);
padding-bottom: 128px;
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("/assets/images/hero-image.jpg");
background-size: cover;
object-fit: cover;
}

49
src/css/sections.css Normal file
View file

@ -0,0 +1,49 @@
/* Styles for the sections, mainly used on the start page, the portfolio and workflow page */
section {
display: flex;
justify-content: center;
color: #ffffff;
background-color: rgb(82, 76, 121);
padding-top: 128px;
padding-bottom: 128px;
}
section:nth-child(odd) {
background-color: rgb(82, 76, 121);
}
section:nth-child(even) {
background-color: rgb(150, 143, 194);
}
.section-content {
max-width: 1024px;
gap: 20px;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 32px;
margin-right: 32px;
}
.section-content div {
max-width: 50%;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
section h1,
section p {
text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.8);
}
.section-background {
background-size: cover;
object-fit: cover;
background-position: center;
}

View file

@ -3,84 +3,29 @@
@import url("./variables.css"); @import url("./variables.css");
@import url("./header.css"); @import url("./header.css");
@import url("./footer.css"); @import url("./footer.css");
@import url("./sections.css");
@import url("./hero.css");
html, html,
body { body {
font-family: "Quicksand", sans-serif; font-family: "Montserrat", sans-serif;
background-color: var(--background-color);
color: var(--text-color);
} }
h1, /* Button */
h2, button {
h3 { border: none;
font-family: "Quicksand", sans-serif; color: inherit;
font-weight: bold;
margin-bottom: 8px;
}
h1 > a,
h2 > a,
h3 > a,
article > a {
text-decoration: none; text-decoration: none;
color: var(--text-color); background-color: rgba(255, 255, 255, 0.2);
}
h1::after,
h2::after,
h3::after {
display: block;
width: 100px;
height: 8px;
margin-top: 6px;
margin-bottom: 0px;
content: "";
border-radius: var(--border-radius);
background-color: var(--accent);
}
aside {
padding: 16px;
display: flex;
flex-direction: column;
align-items: center;
}
aside > :not(a) {
flex: 1;
width: 768px;
}
aside a {
align-self: center;
}
main {
padding: 16px;
display: flex;
flex-direction: column;
align-items: center;
}
main > * {
flex: 1;
width: 768px;
}
.button {
cursor: pointer;
display: inline-block;
font-weight: bold;
border-radius: var(--border-radius);
padding: 8px; padding: 8px;
color: var(--text-color); transition: background-color 0.25s ease-in-out;
background-color: var(--accent); border-radius: 4px;
font-weight: bold;
cursor: pointer;
} }
@media (max-width: 400px) { button:hover,
main > *, button:focus-visible {
aside { outline: 1px solid rgba(255, 255, 255, 0.05);
width: 100%; background-color: rgba(255, 255, 255, 0.5);
}
} }

View file

@ -4,20 +4,70 @@ title: luca-junge.de
permalink: /index.html permalink: /index.html
--- ---
{%- for post in collections.post -%} <section class="hero">
<article> <div class="section-content">
<header> <div>
<h1> <h1>This is a test for my website</h1>
<a href="{{post.url}}">{{post.data.title}}</a> <button>Contact me</button>
</h1> </div>
<div>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Tempora eligendi impedit labore voluptatibus accusamus rerum fugit amet aut, porro quo ad vel omnis rem distinctio excepturi voluptas et soluta natus sunt delectus animi modi laborum fuga! Magni id pariatur natus est ab accusantium iusto exercitationem, vitae ipsam necessitatibus doloribus vero?
</p>
</div>
</div>
</section>
<time>{{post.date | formatDate }}</time> <section class="section-background" style="background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./assets/images/GY2YuO3r.jpg');">
</header> <div class="section-content">
<div>
<h1>This is a another section statement</h1>
</div>
<div>
<p>And a small text that explains this statement further. Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, a qui! Laboriosam explicabo reprehenderit iusto ipsam animi earum dolor vero?</p>
</div>
</div>
</section>
<p>{{post.templateContent | createExcerpt}}</p> <section>
<div class="section-content">
<div>
<h1>My Portfolio</h1>
</div>
<div>
<p>This is currently work in progress.</p>
</div>
</div>
</section>
<a class="button" href="{{post.url}}"> <section>
Weiterlesen <div class="section-content">
</a> <div>
</article> <h1>My Workflows</h1>
{%- endfor -%} </div>
<div>
<p>This is currently work in progress.</p>
</div>
</div>
</section>
<section>
<div class="section-content">
<div>
<h1>My Blog</h1>
</div>
<div>
<p>This is currently work in progress.</p>
</div>
</div>
</section>
<section>
<div class="section-content">
<div>
<h1>Kontakt</h1>
</div>
<div>
<p>This is currently work in progress.</p>
</div>
</div>
</section>