Skip to content

Commit

Permalink
contact card layout
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosarium committed Dec 31, 2023
1 parent 728d420 commit 7e15827
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/styles/base.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Replace this with your own font imports!
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Inter:wght@200;300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700&display=swap');
:root {
--font-body: "Source Sans Pro";
--font-header: "Inter";
Expand Down
34 changes: 34 additions & 0 deletions assets/styles/layouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,38 @@
.blankPage {
padding: 0;
margin: 0 auto;
}

.centredPage{
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;

article {
max-width: 30em;
margin-top: auto;
margin-bottom: auto;
p, ul, text, a, tr, td, li, ol, ul {
font-family: 'IBM Plex Mono';
letter-spacing: 0.1rem;
}
em strong {
font-weight: 700;
font-style: normal;
}
b, strong {
font-weight: 500;
color: var(--dark);
}
a {
text-decoration: underline;
font-weight: 300;
}
tbody, li, p {
line-height: 1.2rem;
}
}

}
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- {{$dashedurl := replace .Destination "%20" "-" }} -->
<!-- workaround: not have dashed url for external -->
{{$dashedurl := .Destination }}
{{$external := strings.HasPrefix $dashedurl "http" }}
{{$external := or (strings.HasPrefix $dashedurl "http") (strings.HasPrefix $dashedurl "mailto:")}}
{{- if $external -}}
<a href="{{ $dashedurl }}" rel="noopener">{{ .Text | safeHTML }}</a>
{{- else -}}
Expand Down
23 changes: 23 additions & 0 deletions layouts/_default/centre.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="{{ .Lang }}">
{{ partial "head.html" . }}

<body {{ with .Params.layoutClass }} class="{{ . }}" {{ end }}>
<div class="centredPage">

<!-- {{partial "header.html" .}} -->

<article>
<!-- {{if .Title}}<h1 class="article-title">{{ .Title }}</h1>{{end}} -->
{{partial "textprocessing.html" . }}
</article>
<!-- {{ $js := resources.Get "js/chunker.js" | resources.ExecuteAsTemplate "js/chunker.js" . | resources.Fingerprint "md5" | resources.Minify }} -->
<script defer type="module" src="{{ relURL $js.Permalink }}"></script>

</div>
</body>
</html>

<script>
console.log('from canvas.html')
</script>

0 comments on commit 7e15827

Please sign in to comment.