major updates to styling and font (font incomplete so far)

This commit is contained in:
Solomon Laing 2022-12-02 08:52:50 +10:30
parent d1e7403d19
commit f517187025
13 changed files with 41 additions and 15 deletions

4
assets/_fonts.scss Normal file
View File

@ -0,0 +1,4 @@
// @font-face{
// font-family: FiraCode;
// src: url(static/fonts/FiraCode-Regular.ttf);
// }

View File

@ -3,9 +3,10 @@
.home { .home {
&__content { &__content {
text-align: justify; text-align: justify;
max-width: 850px;
img { img {
border-radius: 200px; border-radius: 50px;
float: left; float: left;
margin: 0 24px 16px 0; margin: 0 24px 16px 0;
} }

View File

@ -1,12 +1,28 @@
@use 'variables' as vars; @use "variables" as vars;
.services { .services {
display: flex;
flex-direction: column;
&__list{ // &__title {
// }
&__list {
width: 100%;
display: flex; display: flex;
justify-content: space-between;
flex-wrap: wrap;
.service { .service {
padding: 8px; width: 45%;
// text-align: justify;
&__text {
padding: 4px 4px 4px 0;
line-height: 12px;
// background: vars.$color-bg0_h;
background: green ;
}
} }
} }
} }

View File

@ -31,6 +31,6 @@ $color-fg3: #bdae93;
$color-fg4: #a89984; $color-fg4: #a89984;
// Layout // Layout
$content-width-norm: 60%; $content-width-norm: 50%;
$content-width-mid: 70%; $content-width-mid: 60%;
$content-width-narrow: 80%; $content-width-narrow: 80%;

View File

@ -4,10 +4,12 @@
@import "me"; @import "me";
@import "posts"; @import "posts";
@import "sidebar"; @import "sidebar";
@import "fonts";
body { body {
color: vars.$color-fg; color: vars.$color-fg;
background: vars.$color-bg; background: vars.$color-bg;
// font-family: FiraCode, monospace;
} }
.content-wrapper { .content-wrapper {

View File

@ -3,8 +3,7 @@ title: "cloud"
link: "https://cloud.inkletblot.com" link: "https://cloud.inkletblot.com"
--- ---
I host a nextcloud instance, for those curious I host a nextcloud instance, for those curious [here](https://en.reddit.com/r/degoogle) is some information on why. I'm the
[here](https://en.reddit.com/r/degoogle) is some information on why. I'm the
only one that uses and it works like a charm. Mostly I use it for file and only one that uses and it works like a charm. Mostly I use it for file and
contact synchronisation, and instant upload/backup of the photos I take on my contact synchronisation, and instant upload/backup of the photos I take on my
phone. phone.

View File

@ -1,16 +1,16 @@
{{ define "main" }} {{ define "main" }}
<main class="links"> <main class="services">
{{ if or .Title .Content }} {{ if or .Title .Content }}
<div> <div>
{{ with .Title }} {{ with .Title }}
<h1>{{ . }}</h1> <h1 class="services__title">{{ . }}</h1>
{{ end }} {{ with .Content }} {{ end }} {{ with .Content }}
<div>{{ . }}</div> <div class="services__content">{{ . }}</div>
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
<div class="links__list"> <div class="services__list">
{{ range .Paginator.Pages }} {{ .Render "summary" }} {{ end }} {{ range .Paginator.Pages }} {{ .Render "summary" }} {{ end }}
</div> </div>
</main> </main>

View File

@ -1,4 +1,8 @@
<div class="link"> <div class="service">
<h2><a target="_blank" href="{{ printf "%s" $.Params.link }}"> {{ .Title }}</a></h2> <h2><a target="_blank" href="{{ printf " %s" $.Params.link }}"> {{ .Title }}</a></h2>
{{ .Content }} <span class="service__text">
{{ $partial := replace .Content "<p>" "" }}
{{ $finalContent := replace $partial "</p>" "" | safeHTML }}
{{ $finalContent }}
</span>
</div> </div>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.