initial commit

This commit is contained in:
pika 2025-01-04 02:29:32 +01:00
parent 1ae7f331d2
commit 5e7a3c9afb
13 changed files with 263 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
public
node_modules

4
archetypes/default.md Normal file
View file

@ -0,0 +1,4 @@
+++
date = '{{ .Date }}'
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++

5
content/about/_index.md Normal file
View file

@ -0,0 +1,5 @@
---
title: "About us"
description: "Learn more about our pizza history"
layout: "about"
---

4
content/en/_index.md Normal file
View file

@ -0,0 +1,4 @@
---
title: "Pizza Restaurant"
description: "Authentic Italian Pizza"
---

View file

@ -0,0 +1,6 @@
---
title: "About us"
description: "Learn more about our pizza history"
layout: "about"
---

73
hugo.toml Normal file
View file

@ -0,0 +1,73 @@
baseURL = "https://pizza.k4li.me"
languageCode = "de-de"
title = "PizzaTheme"
theme = "mytheme"
defaultContentLanguageInSubdir = false
defaultContentLanguage = "de"
[languages]
[languages.de]
languageCode = "de-DE"
languageName = "Deutsch"
weight = 1
title = "Pizza Restaurant"
contentDir = "content"
[languages.de.menu]
[[languages.de.menu.main]]
name = "Zuhause"
url = "/"
weight = 1
[[languages.de.menu.main]]
name = "Menü"
url = "/#menu-section"
weight = 2
[[languages.de.menu.main]]
name = "Über uns"
url = "/about"
weight = 3
[languages.en]
languageCode = "en-US"
languageName = "English"
weight = 2
title = "Pizza Restaurant"
contentDir = "content/en"
[languages.en.menu]
[[languages.en.menu.main]]
name = "Home"
url = "/en/"
weight = 1
[[languages.en.menu.main]]
name = "Menu"
url = "#menu-section"
weight = 2
[[languages.en.menu.main]]
name = "About"
url = "/en/about"
weight = 3
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
[params]
debug = false # Set to false in production
[params.languageDetection]
enable = true
[params.contact]
# phone = "073194059115"
phone = "+49 17632169460"
# email = "orders@mrbean.pizza"
[outputs]
home = ["HTML", "RSS", "Sitemap", "JSON"]
# page = ["HTML", "JSON"]
# section = ["HTML", "JSON"]
# [outputFormats]
# [outputFormats.JSON]
# mediaType = "application/json"
# baseName = "index"
# isPlainText = true

52
i18n/de.yaml Normal file
View file

@ -0,0 +1,52 @@
- id: "Monday"
translation: "Montag"
- id: "Tuesday"
translation: "Dienstag"
- id: "Wednesday"
translation: "Mittwoch"
- id: "Thursday"
translation: "Donnerstag"
- id: "Friday"
translation: "Freitag"
- id: "Saturday"
translation: "Samstag"
- id: "Sunday"
translation: "Sonntag"
- id: "menu"
translation: "Speisekarte"
- id: "about"
translation: "Über uns"
- id: "time_suffix"
translation: ""
- id: "delivery_until"
translation: "Lieferung bis"
- id: "currently_open"
translation: "Jetzt geöffnet"
- id: "currently_closed"
translation: "Geschlossen"
- id: "closed"
translation: "Geschlossen"
- id: "open"
translation: "Geöffnet"
- id: "open_text"
translation: "Geöffnet"
- id: "closed_text"
translation: "Geschlossen"
- id: "Hollidays"
translation: "Feiertage"
- id: opening_hours
translation: "Öffnungszeiten"
- id: 404_oops
translation: "Oops! Seite nicht gefunden"
- id: 404_text
translation: "Die gesuchte Seite existiert leider nicht. Sie wurde möglicherweise verschoben oder gelöscht."
- id: 404_back_home
translation: "Zurück zur Startseite"
- id: call_now
translation: "Jetzt anrufen"
- id: price_small_large
translation: "Klein/Groß"
- id: portion_small
translation: "Klein"
- id: portion_large
translation: "Groß"

48
i18n/en.yaml Normal file
View file

@ -0,0 +1,48 @@
- id: "Monday"
translation: "Monday"
- id: "Tuesday"
translation: "Tuesday"
- id: "Wednesday"
translation: "Wednesday"
- id: "Thursday"
translation: "Thursday"
- id: "Friday"
translation: "Friday"
- id: "Saturday"
translation: "Saturday"
- id: "Sunday"
translation: "Sunday"
- id: "menu"
translation: "Menu"
- id: "about"
translation: "About"
- id: "time_suffix"
translation: ""
- id: "delivery_until"
translation: "Delivery until"
- id: "currently_open"
translation: "Currently Open"
- id: "currently_closed"
translation: "Currently Closed"
- id: "closed"
translation: "Closed"
- id: "open"
translation: "Open"
- id: opening_hours
translation: "Opening Hours"
- id: Hollidays
translation: "Holidays"
- id: 404_oops
translation: "Oops! Page Not Found"
- id: 404_text
translation: "The page you are looking for doesn't exist. It may have been moved or deleted."
- id: 404_back_home
translation: "Back to Home"
- id: call_now
translation: "Call Now"
- id: price_small_large
translation: "Small/Large"
- id: portion_small
translation: "Small"
- id: portion_large
translation: "Large"

View file

@ -0,0 +1,5 @@
{
"isOpen": {{ $status := partial "check-open-status.html" . }}{{ $status.isOpen }},
"currentDay": "{{ now.Format "Monday" }}",
"currentTime": "{{ now.Format "15:04" }}"
}

21
package.json Normal file
View file

@ -0,0 +1,21 @@
{
"name": "owncraft",
"version": "1.0.0",
"description": "OwnCraft Pizza Website",
"scripts": {
"install:all": "npm install && hugo",
"dev": "concurrently \"npm run hugo:dev\" \"npm run tailwind:dev\"",
"build": "npm run tailwind:build && hugo --minify",
"hugo:dev": "hugo server -D --disableFastRender",
"tailwind:dev": "tailwindcss -i ./themes/mytheme/assets/css/main.css -o ./themes/mytheme/static/css/style.css --watch",
"tailwind:build": "tailwindcss -i ./themes/mytheme/assets/css/main.css -o ./themes/mytheme/static/css/style.css --minify",
"clean": "rm -rf public resources",
"deploy": "npm run clean && npm run build"
},
"dependencies": {
"autoprefixer": "^10.4.14",
"concurrently": "^8.0.1",
"postcss": "^8.4.23",
"tailwindcss": "^3.3.2"
}
}

6
postcss.config.js Normal file
View file

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

2
static/robots.txt Normal file
View file

@ -0,0 +1,2 @@
User-agent: *
Disallow: /api/

35
tailwind.config.js Normal file
View file

@ -0,0 +1,35 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./themes/mytheme/**/*.{html,js}"],
darkMode: 'class',
theme: {
extend: {
colors: {
pizza: {
red: '#ff3850',
dark: '#1a1d24',
darker: '#15171c',
gray: '#9ca3af',
light: '#f3f4f6',
},
status: {
green: '#10b981',
red: '#ef4444',
}
},
animation: {
'spin-slow': 'spin 8s linear infinite',
'bounce-subtle': 'bounce 2s infinite',
'drive-by': 'driveBy 10s linear infinite',
},
keyframes: {
driveBy: {
'0%': { transform: 'translateX(-200%)' },
'100%': { transform: 'translateX(200%)' }
}
}
},
},
plugins: [],
}