diff options
| author | a73x <[email protected]> | 2024-08-25 15:14:41 +0100 |
|---|---|---|
| committer | a73x <[email protected]> | 2024-08-25 15:14:41 +0100 |
| commit | fea0ef77c8c98dfadd2f9d29804653293fd31c99 (patch) | |
| tree | 6dadd3062fc77d37e622838eb6b16a60e2774f4d /public | |
| parent | 794401aaadfaa4efd91587db40439226231ff303 (diff) | |
feat: add templating
Diffstat (limited to 'public')
| -rw-r--r-- | public/index.html | 43 | ||||
| -rw-r--r-- | public/posts.html | 59 | ||||
| -rw-r--r-- | public/static/V1-ServerMono-Regular.woff2 | bin | 0 -> 19628 bytes |
3 files changed, 100 insertions, 2 deletions
diff --git a/public/index.html b/public/index.html index 3a00176..61413a8 100644 --- a/public/index.html +++ b/public/index.html @@ -1,3 +1,4 @@ + <!DOCTYPE html> <html lang="en"> @@ -5,14 +6,50 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Home for a73x" /> <meta name="author" content="a73x" /> - <meta name="color-scheme" content="dark light" /> <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" /> <title>a73x</title> + <style> + @font-face { + font-family: 'Mono'; + src: url('./static/V1-ServerMono-Regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + } + + body { + font-family: "Mono"; + } + + code { + font-family: "Mono"; + color: crimson; + background-color: #f1f1f1; + padding: 2px; + } + + nav ul { + display: flex; + list-style: none; + } + + nav ul li { + margin-right: 20px; + } + </style> </head> <body> - <h1>a73x</h1> + <!-- templates/header.html --> +<h1>a73x</h1> +<nav> + <ul> + <li><a href="/">Home</a></li> + <li><a href="/posts">Posts</a></li> + </ul> +</nav> + + <ul> <li>backend cloud software engineer</li> <li>lang: go</li> @@ -58,3 +95,5 @@ </body> </html> + + diff --git a/public/posts.html b/public/posts.html new file mode 100644 index 0000000..b63f4da --- /dev/null +++ b/public/posts.html @@ -0,0 +1,59 @@ + +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta name="description" content="Home for a73x" /> + <meta name="author" content="a73x" /> + <meta name="viewport" + content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" /> + <title>a73x</title> + <style> + @font-face { + font-family: 'Mono'; + src: url('./static/V1-ServerMono-Regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + } + + body { + font-family: "Mono"; + } + + code { + font-family: "Mono"; + color: crimson; + background-color: #f1f1f1; + padding: 2px; + } + + nav ul { + display: flex; + list-style: none; + } + + nav ul li { + margin-right: 20px; + } + </style> +</head> + +<body> + <!-- templates/header.html --> +<h1>a73x</h1> +<nav> + <ul> + <li><a href="/">Home</a></li> + <li><a href="/posts">Posts</a></li> + </ul> +</nav> + + +<h1>Posts</h1> + +</body> + +</html> + + diff --git a/public/static/V1-ServerMono-Regular.woff2 b/public/static/V1-ServerMono-Regular.woff2 Binary files differnew file mode 100644 index 0000000..6f2c020 --- /dev/null +++ b/public/static/V1-ServerMono-Regular.woff2 |
