[wip] website redesign

This commit is contained in:
Vri 🌈 2022-11-28 18:32:29 +01:00
parent 4857a7b766
commit 59e98e5274
Signed by: vrifox
GPG key ID: D40098E5B60B2197
8 changed files with 155 additions and 161 deletions

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
# generated directories
/public/*
/resources/_gen/*
.vscode/
# ignored files
.directory

View file

@ -1,78 +1,65 @@
:root {
--background: hsl(210, 21%, 15%);
--border: hsl(210, 21%, 20%);
--text: hsl(210, 21%, 95%);
--text-2: hsl(210, 21%, 80%);
--text-secondary: hsl(210, 21%, 40%);
--vriish-red: hsl(0, 100%, 75%);
--rose: hsl(0, 100%, 75%);
--orange: hsl(25, 100%, 75%);
--gold: hsl(50, 100%, 75%);
--emerald: hsl(130, 100%, 75%);
--sky: hsl(215, 100%, 75%);
--purpur: hsl(275, 100%, 75%);
--white: hsl(360, 100%, 100%);
}
@media (prefers-color-scheme: light) {
:root {
--background: rgb(255, 245, 235);
--border: rgb(225, 215, 205);
--text: rgb(50, 40, 30);
--text-2: rgb(90, 80, 70);
}
}
// general
@import "variables";
// site parts
@import "sidebar";
@import "footer";
// pages
@import "home";
* {
box-sizing: border-box;
scrollbar-color: var(--vriish-red) var(--background);
scrollbar-color: var(--vriish-rose) var(--background);
scrollbar-width: thin;
&::-webkit-scrollbar {
background: var(--background);
width: 6px;
}
&::-webkit-scrollbar-thumb { background: var(--vriish-red); }
&::-webkit-scrollbar-thumb { background: var(--vriish-rose); }
}
html {
margin: 0;
overflow-x: hidden;
overflow-y: scroll;
}
padding: 0;
body {
background: var(--background);
color: var(--text);
display: grid;
font-family: system-ui, sans-serif;
font-size: 1.2em;
grid-template-areas:
"header header"
"sidebar content"
"sidebar footer";
line-height: 1.7;
margin: 0;
@media (max-width: 920px) {
grid-template-areas:
"content"
"sidebar"
"footer";
}
h1, h2, h3, h4, h5, h6 {
line-height: 1em;
margin: .8em 0;
}
a {
color: var(--text);
text-decoration: underline;
text-decoration-color: var(--vriish-red);
text-decoration-color: var(--vriish-rose);
text-underline-offset: 3px;
transition: text-decoration-color .2s;
&:hover { text-decoration-color: var(--text); }
}
center {
margin: 19.2px 0;
text-align: center;
}
pre {
border: 1px solid var(--vriish-red);
border: 1px solid var(--vriish-rose);
border-radius: 4px;
overflow: auto;
padding: 10px 15px;
}
p {
hyphens: auto;
img {
@ -82,17 +69,22 @@ p {
margin: 0 auto;
}
}
hr {
border: 1px solid var(--border);
color: var(--border);
margin: 60px 0;
}
}
}
.global-header {
grid-area: header;
}
// ------------------------
// - header / nav; footer -
// ------------------------
header, footer {
/*header, footer {
align-items: center;
display: flex;
overflow: auto;
@ -104,7 +96,7 @@ header, footer {
text-decoration-thickness: 2px !important;
text-underline-offset: 6px;
margin: 0 15px;
&:hover { text-decoration-color: var(--vriish-red); }
&:hover { text-decoration-color: var(--vriish-rose); }
}
}
header {
@ -116,7 +108,7 @@ header {
font-size: 1em;
margin: 0;
a {
color: var(--vriish-red);
color: var(--vriish-rose);
}
}
nav {
@ -126,24 +118,16 @@ header {
aside {
margin-left: auto;
}
}
footer {
bottom: 0;
color: var(--text-secondary);
position: absolute;
a { color: var(--text-secondary); }
span {
padding: 17.6px 30px;
margin-right: auto;
}
}
}*/
// --------
// - main -
// --------
main {
grid-area: content;
margin: 20px auto;
max-width: 720px;
max-width: 1000px;
overflow: hidden;
padding: 30px;
width: 100%;
@ -151,7 +135,7 @@ main {
}
#intro-heading {
background-image: linear-gradient(180deg, var(--rose) 0%, var(--rose) 50%, var(--gold) 95%, var(--rose) 100%);
background-image: linear-gradient(180deg, var(--vriish-rose) 0%, var(--vriish-rose) 50%, var(--gold) 95%, var(--vriish-rose) 100%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;

View file

@ -1,42 +0,0 @@
baseURL = "https://vrifox.cc/"
title = "Vris Cute Corner"
enableRobotsTXT = true
[menu]
[[menu.name]]
identifier = "vrifox.cc"
name = "VrifoxCC"
url = "/"
weight = 1
[[menu.main]]
identifier = "kenntnisse"
name = "Kenntnisse"
url = "/kenntnisse/"
weight = 1
[[menu.main]]
identifier = "Portfolio"
name = "Portfolio"
url = "/portfolio/"
weight = 2
[[menu.footer]]
identifier = "blog"
name = "Blog"
url = "/blog/"
weight = 1
[[menu.footer]]
identifier = "blogroll"
name = "Empfehlungen"
url = "/blogroll/"
weight = 2
[markup]
[highlight]
anchorLineNos = false
lineNos = false
lineNumbersInTable = false
noClasses = false
style = "dracula"
tabWidth = 4
[goldmark]
[extensions]
linkify = false
[renderer]
unsafe = true

View file

@ -1,14 +1,3 @@
---
title: "Über Vri"
title: "Hola 🖖"
---
# Vris Atelier {#intro-heading}
**Grafik.**
Vektorgrafiken setzen und Rastergrafiken pixeln.
**Gestaltung.**
Webseiten entwerfen, umsetzen und optimieren.
**Infrastruktur.**
Server und Dienste aufsetzen, absichern und betreiben.

View file

@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
{{- block "header" . }}{{ end }}
{{ partial "nav.html" . }}
{{- block "main" . }}{{ end }}
{{ partial "footer.html" . }}

View file

@ -1,5 +1,56 @@
{{- define "header" }}
<header id="introduction" class="global-header">
<h1>Hola 🖖</h1>
<p>Ich bin Vri 🙂</p>
</header>
{{ end }}
{{- define "main" }}
<main>
{{ .Content -}}
<h2>Aus meinem Blog</h2>
<section id="latest-posts">
{{ range first 3 (where .Site.RegularPages "Section" "blog") }}
<a href="{{ .Permalink }}" class="post-group">
<p class="title">{{ .Title }}</p>
<aside class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
<span class="date">{{ .Date.Format "2. January 2006" }}</span>
<span class="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span>
</aside>
</a>
{{ end }}
</section>
<section id="interests">
<h2>Interessen</h1>
<div>Programmieren</div>
<div>Gestalten</div>
<div>Übersetzen</div>
</section>
<section id="languages">
<div></div>
</section>
<section id="skills">
<h2>Kenntnisse</h1>
<div>HTML & CSS <span>seit 2009</span></div>
<div>SCSS <span>seit 2013</span></div>
<div>Javascript <span>seit 2022</span></div>
<div>Rust <span>seit 2021</span></div>
<div>Python <span>seit 2021</span></div>
<div>Bash <span>seit 2015</span></div>
<div>Affinity Designer <span>20152020</span></div>
<div>Inkscape <span>seit 2020</span></div>
<div>Boxy SVG <span>seit 2022</span></div>
</section>
<section id="skills">
<h2>Kenntnisse</h1>
<div>HTML & CSS <span>seit 2009</span></div>
<div>SCSS <span>seit 2013</span></div>
<div>Javascript <span>seit 2022</span></div>
<div>Rust <span>seit 2021</span></div>
<div>Python <span>seit 2021</span></div>
<div>Bash <span>seit 2015</span></div>
<div>Affinity Designer <span>20152020</span></div>
<div>Inkscape <span>seit 2020</span></div>
<div>Boxy SVG <span>seit 2022</span></div>
</section>
</main>
{{- end }}

View file

@ -1,6 +1,6 @@
<footer>
<span title="Revision: {{ now.Format "2. January 2006, 15:04 MST" }}">R {{ now.Format "2006-01-02" }}</span>
<p title="Revision vom {{ now.Format "2. January 2006, um 15:04 Uhr MST" }}">R {{ now.Format "2006-01-02" }}</p>
{{- range .Site.Menus.footer }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end }}

View file

@ -1,18 +1,28 @@
{{- $currentPage := . }}
{{ $currentPage := . }}
<nav id="sidebar">
<header>
{{- range .Site.Menus.name }}
<h1> <a href="{{ .URL }}">{{ .Name }}</a> </h1>
{{- end }}
<nav>
<p id="name">Vri 🌈</p>
<p id="information">
<span>@vrifox</span>
</p>
</header>
<section id="sidebar-menu">
<ul>
{{- range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
<li class="active"><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ else }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{- end }}
</nav>
{{- if .IsTranslated }}
</ul>
</section>
{{/*- if .IsTranslated */}}
<aside>
{{- range .Translations }}
<a href="{{ .Permalink }}">{{ .Site.Params.languageName }}</a>
{{- end }}
</aside>
{{- end }}
</header>
{{/*- end */}}
</nav>