mirror of
https://gitlab.com/nullmax17/personal-website.git
synced 2025-03-14 21:21:11 +03:00
70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
/*
|
|
Small block that I write to reuse in other templates to remove boilerplate.
|
|
Syntax to reuse templates: @BasicPageBlock()
|
|
*/
|
|
package templates
|
|
|
|
import "github.com/dixxe/personal-website/web/static/styling"
|
|
|
|
templ loadFontsBlock() {
|
|
<style>
|
|
|
|
@font-face {
|
|
font-family: Disket-Mono;
|
|
src: url("/static/fonts/Disket-Mono-Bold.ttf");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: Codec-pro;
|
|
src: url("/static/fonts/codec-pro.regular.ttf");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: Roboto;
|
|
src: url("/static/fonts/Roboto-VariableFont.ttf");
|
|
}
|
|
|
|
</style>
|
|
}
|
|
|
|
// Use this block in every page. It contains dependecies and reduces boilerplate
|
|
templ BasicPageBlock() {
|
|
<!DOCTYPE HTML>
|
|
<html style="background-color: #272727; ">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="icon" type="image/png" href="/static/icon.png" />
|
|
|
|
@loadFontsBlock()
|
|
|
|
<title>nullmax17's website</title>
|
|
</head>
|
|
<body style="padding: 0; margin: 0; font-family:Codec-pro">
|
|
|
|
</body>
|
|
</html>
|
|
}
|
|
|
|
// Small styled line of links to my friends and contact information.
|
|
templ UsefulLinks() {
|
|
<div class={ styling.BlockContainer(), styling.PostScriptum() }>
|
|
|
|
<p>
|
|
You can find source code of this website
|
|
<a href="https://gitlab.com/nullmax17/personal-website">here.</a>
|
|
</p>
|
|
|
|
<p>Telegram - "@nullmax17"</p>
|
|
<p>Signal - "nullmax.17"</p>
|
|
|
|
<p>My friends:
|
|
<a href="https://t.me/LunfQwak1">Lunf</a>
|
|
<a href="https://t.me/Ovi4k">Madam_ovi</a>
|
|
</p>
|
|
|
|
</div>
|
|
|
|
}
|