initial commit

This commit is contained in:
Brian 2022-08-19 11:49:00 -06:00
commit 36f6a2b347
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8
26 changed files with 32360 additions and 0 deletions

26
.gitignore vendored Normal file
View File

@ -0,0 +1,26 @@
### Project Specific
# Files
/assets/jsconfig.json
hugo_stats.json
.hugo_build.lock
# Directories
/public/
/resources/_gen/
### Editor Specific
# Files
/*.sublime-project
/*.sublime-workspace
# Directories
/.idea
/.vscode
### System Specific
# Files
.DS_Store
Thumbs.db
# Directories
__MACOSX

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

4
config.toml Normal file
View File

@ -0,0 +1,4 @@
baseURL = "https://mygamesdb.ditoforge.com/"
languageCode = "en-us"
title = "My Games DB"
theme = "gamesdb"

View File

@ -0,0 +1,7 @@
---
title: "Consoles"
date: 2022-08-19T11:46:57-06:00
draft: false
---
All the consoles.

7
content/consoles/show.md Normal file
View File

@ -0,0 +1,7 @@
---
title: "Show"
date: 2022-08-19T11:47:01-06:00
draft: false
---
Details about a console.

7
content/games/index.md Normal file
View File

@ -0,0 +1,7 @@
---
title: "Games"
date: 2022-08-19T11:47:09-06:00
draft: false
---
All the games.

7
content/games/show.md Normal file
View File

@ -0,0 +1,7 @@
---
title: "Show"
date: 2022-08-19T11:47:11-06:00
draft: false
---
Details about a game.

9
content/index.md Normal file
View File

@ -0,0 +1,9 @@
---
title: "Main Page"
date: 2022-08-18T11:17:43-06:00
draft: false
---
# The title page
This is the title page, you should know what that means

37
data/consoles.json Normal file
View File

@ -0,0 +1,37 @@
{
"nes": {
"title": "Nintendo",
"slug": "nes",
"releaseDate": "1985-10-18",
},
"snes": {
"title": "Super Nintendo",
"slug": "snes",
"releaseDate": "1991-09-09",
},
"n64": {
"title": "Nintendo 64",
"slug": "n64",
"releaseDate": "1996-09-29",
},
"gbc": {
"title": "Game Boy Color",
"slug": "gbc",
"releaseDate": "1998-11-18",
},
"switch": {
"title": "Nintendo Switch",
"slug": "switch",
"releaseDate": "2017-03-03",
},
"ps1": {
"title": "Playstation",
"slug": "ps1",
"releaseDate": "1995-09-01",
},
"ps2": {
"title": "Playstation 2",
"slug": "ps2",
"releaseDate": "2000-10-26",
},
}

5
notes.txt Normal file
View File

@ -0,0 +1,5 @@
hugo new pages/something.md
hugo --printUnusedTemplates --printPathWarnings --printI18nWarnings --enableGitInfo --debug server
hugo --debug --buildDrafts --cleanDestinationDir --config config.toml --enableGitInfo --gc --printI18nWarnings --printMemoryUsage --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints --watch server

165
static/css/app.css Normal file
View File

@ -0,0 +1,165 @@
/** +--------------------------------+ **/
/** | Sans font faces | **/
/** +--------------------------------+ **/
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-Regular.woff2) format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-Italic.woff2) format("woff2");
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-Medium.woff2) format("woff2");
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-MediumItalic.woff2) format("woff2");
font-weight: 500;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-SemiBold.woff2) format("woff2");
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-SemiBoldItalic.woff2) format("woff2");
font-weight: 600;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-Bold.woff2) format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Barlow";
src: url(/fonts/Barlow/Barlow-BoldItalic.woff2) format("woff2");
font-weight: 700;
font-style: italic;
font-display: swap;
}
/** +--------------------------------+ **/
/** | Sans Serif font faces | **/
/** +--------------------------------+ **/
@font-face {
font-family: "Merriweather";
src: url(/fonts/Merriweather/Merriweather-Regular.woff2) format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Merriweather";
src: url(/fonts/Merriweather/Merriweather-Italic.woff2) format("woff2");
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Merriweather";
src: url(/fonts/Merriweather/Merriweather-Bold.woff2) format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Merriweather";
src: url(/fonts/Merriweather/Merriweather-BoldItalic.woff2) format("woff2");
font-weight: 700;
font-style: italic;
font-display: swap;
}
/** +--------------------------------+ **/
/** | Monospace font faces | **/
/** +--------------------------------+ **/
/**/
/** +--------------------------------+ **/
/** | Font family classes | **/
/** +--------------------------------+ **/
.font-sans {
font-family: Barlow, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.font-serif {
font-family: Merriweather, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}
.font-mono, .font-monospace {
font-family: ui-monospace, "Liberation Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}
.page-grid-container {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: max-content 1fr max-content;
gap: 0em 0em;
grid-auto-flow: row;
grid-template-areas:
"page-header"
"page-content"
"page-footer";
}
.page-header {
grid-area: page-header;
}
.masthead {
display: grid;
grid-auto-flow: column;
grid-template-columns: max-content 1fr max-content;
gap: 0rem 2em;
align-items: stretch;
min-height: 65px;
}
.nav-link {
display: grid;
align-items: center;
padding: 0em 0.75em;
}
.page-content {
grid-area: page-content;
}
.page-footer {
grid-area: page-footer;
}

1
static/css/print.css Normal file
View File

@ -0,0 +1 @@
/**/

27
static/js/app.js Normal file
View File

@ -0,0 +1,27 @@
import { createApp } from 'vue'
const htmlRoot = document.documentElement
const app = createApp({
data() {
return {
darkModeActive: false,
}
},
methods: {
activateDarkMode: function () {
this.darkModeActive = true
htmlRoot.classList.add('dark')
localStorage.theme = "dark"
},
deactivateDarkMode: function () {
this.darkModeActive = false
htmlRoot.classList.remove('dark')
localStorage.theme = "light"
},
},
})
app.mount('#app')

15948
static/js/vendor/vue.esm-browser.js vendored Normal file

File diff suppressed because it is too large Load Diff

15934
static/js/vendor/vue.global.js vendored Normal file

File diff suppressed because it is too large Load Diff

20
themes/gamesdb/LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2022 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,2 @@
+++
+++

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>

21
themes/gamesdb/theme.toml Normal file
View File

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Gamesdb"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.41.0"
[author]
name = ""
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""