initial commit

This commit is contained in:
2022-08-19 11:49:00 -06:00
commit 36f6a2b347
26 changed files with 32360 additions and 0 deletions

View File

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en-US" class="">
{{- partial "head.html" . -}}
<body class="font-sans antialiased bg-neutral-100">
<div id="app" class="min-h-screen page-grid-container">
<header id="page-header">
{{- partial "header.html" . -}}
</header>
<div id="page-content">
<main class="max-w-screen-2xl mx-auto">
{{- block "main" . }}{{- end }}
</main>
</div>
<footer id="page-footer">
{{- partial "footer.html" . -}}
</footer>
</div>
</body>
</html>

View File

@ -0,0 +1,3 @@
{{ define "main" }}
{{ end }}

View File

@ -0,0 +1,9 @@
{{ define "title" }}
{{ .Title }} &ndash; {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<p class="text-sm py-4">Last Updated: {{ .Page.Lastmod }}</p>
{{ .Content }}
{{ end }}

View File

View File

@ -0,0 +1 @@
Brian's Games DB

View File

@ -0,0 +1,66 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Set the base URL for all relative URLs within the document -->
<base href="{{ .Site.BaseURL }}">
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="x-dns-prefetch-control" content="off">
<meta name="google" content="notranslate">
<meta name="google" content="nositelinkssearchbox">
<meta name="rating" content="General">
<meta name="url" content="{{ .Site.BaseURL }}">
<meta name="subject" content="your website's subject">
<meta name="description" content="A description of the page">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<!-- Privacy -->
<meta name="twitter:dnt" content="on">
<meta name="pinterest" content="nopin" description="No pinning allowed.">
<!-- analytics -->
<!-- -->
<!-- Helps prevent duplicate content issues -->
<!-- <link href="{{ .Site.BaseURL }}2010/06/title-of-my-article" rel="canonical"> -->
<!-- Files listing who was involved in this site and copyrights -->
<link href="{{ .Site.BaseURL }}humans.txt" rel="author">
<link href="{{ .Site.BaseURL }}copyright.html" rel="copyright">
<!-- Favicon -->
<!-- <link href="{{ .Site.BaseURL }}favicon.ico" rel="icon" sizes="16x16" type="image/icon"> -->
<!-- <link href="{{ .Site.BaseURL }}favicon.svg" rel="icon" type="image/svg+xml"> -->
<!-- <link href="{{ .Site.BaseURL }}favicon.png" rel="icon" sizes="192x192"> -->
<!-- Font preloads (should be done for each font file) -->
<link href="{{ .Site.BaseURL }}fonts/Barlow/Barlow-Regular.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
<!-- CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<link href="{{ .Site.BaseURL }}css/app.css" rel="stylesheet" media="screen">
<!-- JS that must be executed before the document is loaded -->
<script>
if (localStorage.theme === "dark" || (!("theme" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches)) {
document.documentElement.classList.add("dark"); localStorage.theme = "dark";
} else {
document.documentElement.classList.remove("dark"); localStorage.theme = "light";
}
</script>
<script type="importmap">
{
"imports": {
"vue": "{{ .Site.BaseURL }}js/vendor/vue.esm-browser.js"
}
}
</script>
<!-- <script src="{{ .Site.BaseURL }}js/vendor/vue.esm-browser.js" defer></script> -->
<script src="{{ .Site.BaseURL }}js/app.js" type="module"></script>

View File

@ -0,0 +1,29 @@
<div class="max-w-screen-2xl mx-auto">
<div class="masthead">
<a href="{{ .Site.BaseURL }}" class="nav-link">Home</a>
<nav class="inline-grid grid-flow-col auto-cols-max gap-x-2">
<a href="{{ .Site.BaseURL }}consoles" class="nav-link">Consoles</a>
<a href="{{ .Site.BaseURL }}games" class="nav-link">Consoles</a>
</nav>
<div id="darkmodeToggle" class="grid items-stretch">
<button type="button" class="" aria-label="Activate dark mode" v-show="!darkModeActive" @click="activateDarkMode">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" preserveAspectRatio="xMidYMid meet" class="">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
<button type="button" class="" aria-label="Activate light mode" v-show="darkModeActive" @click="deactivateDarkMode">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" preserveAspectRatio="xMidYMid meet" class="">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
</div>
</div>
</div>