diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-27T15·52-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2021-12-27T16·02+0000 |
commit | 1d4f88cbde37bceab2bfecd7e22c9e5918930386 (patch) | |
tree | 9b281848e8ec085c3d78c094e26e6b86e96785bf /users/wpcarro/website/fragments/header.html | |
parent | 7ce9277a8e9e91b477c072a457d84cabd0054850 (diff) |
feat(wpcarro/blog): Add a blog index page r/3476
TL;DR: - Create an index page to list blog posts - Drop blog.wpcarro.dev -> wpcarro.dev/blog - Create fragments directory to host reusable static website components - Consume fragments in wpcarro.dev and wpcarro.dev/blog for brand consistency Change-Id: Ib8440300c008c3c0c5e5a6f207e4ea207dd41b47 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4717 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/website/fragments/header.html')
-rw-r--r-- | users/wpcarro/website/fragments/header.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/users/wpcarro/website/fragments/header.html b/users/wpcarro/website/fragments/header.html new file mode 100644 index 000000000000..42230ded1ec8 --- /dev/null +++ b/users/wpcarro/website/fragments/header.html @@ -0,0 +1,57 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <title>wpcarro.dev</title> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=JetBrains+Mono"> + <script src="https://cdn.tailwindcss.com"></script> + <script> + tailwind.config = { + theme: { + extend: { + fontFamily: { + mono: ["JetBrains Mono", "normal"] + }, + }, + }, + }; + </script> + </head> + <body class="font-mono bg-gray-100"> + <header class="sticky z-10 transition duration-300 bg-gray-100 top-0 py-6"> + <div class="flex max-w-sm md:max-w-3xl mx-auto"> + <div class="flex-1 text-center md:text-left text-xl md:text-base"> + <a href="https://cs.tvl.fyi/depot/-/blob/users/wpcarro/website/index.html"> + <h1 class="font-bold"> + <span class="text-black">(</span><a class="text-purple-600 hover:underline" href="https://cs.tvl.fyi/depot/-/blob/users/wpcarro/website/index.html">def</a> <a class="text-green-600 hover:underline text-bold" href="https://wpcarro.dev">"wpcarro.dev"</a><span class="text-black">)</span> + </h1> + </a> + </div> + <nav class="flex-1 hidden md:block"> + <ul class="list-reset flex justify-end space-x-8"> + <li> + <a class="hover:underline" href="https://wpcarro.dev/habits"> + Habits + </a> + </li> + <li> + <a class="hover:underline" href="https://wpcarro.dev/blog"> + Blog + </a> + </li> + <li> + <a class="hover:underline" href="https://github.com/wpcarro"> + GitHub + </a> + </li> + <li> + <a class="hover:underline" href="https://linkedin.com/in/williampatrickcarroll"> + LinkedIn + </a> + </li> + </ul> + </nav> + </div> + </header> + <div class="max-w-sm px-2 md:px-0 md:max-w-prose mx-auto"> |