base layout and nuxt config

This commit is contained in:
Julian Krauser 2024-10-30 15:02:47 +01:00
parent 91d7dbe447
commit de049e9125
21 changed files with 15855 additions and 9 deletions

29
.gitignore vendored
View file

@ -1,11 +1,24 @@
# ---> Vue
# gitignore template for Vue.js projects
#
# Recommended template: Node.gitignore
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist
# TODO: where does this rule come from?
docs/_book
# Node dependencies
node_modules
# TODO: where does this rule come from?
test/
# Logs
logs
*.log
# Misc
.DS_Store
.fleet
.idea
# Local env files
.env
.env.*
!.env.example

5
.prettierrc Normal file
View file

@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 120
}

View file

@ -1,3 +1,3 @@
# ff-webpage
Feuerwehr Webseite
Feuerwehr Webseite

3
app.vue Normal file
View file

@ -0,0 +1,3 @@
<template>
<NuxtPage />
</template>

View file

@ -0,0 +1,20 @@
/**
* @license
* MyFonts Webfont Build ID 3867246, 2020-12-16T11:57:38-0500
*
* The fonts listed in this notice are subject to the End User License
* Agreement(s) entered into by the website owner. All other parties are
* explicitly restricted from using the Licensed Webfonts(s).
*
* You may obtain a valid license at the URLs below.
*
* Webfont: undefined by undefined
* URL: https://www.myfonts.comundefined
* Copyright: Copyright © 2024 Monotype Imaging Inc. All rights reserved.
*
* © 2024 MyFonts Inc. */
@font-face {
font-family: "ConthraxSemiBold";
src: url("ConthraxSemiBold/font.woff2") format("woff2"), url("ConthraxSemiBold/font.woff") format("woff");
}

Binary file not shown.

Binary file not shown.

32
assets/app.css Normal file
View file

@ -0,0 +1,32 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
* {
font-family: "ConthraxSemiBold";
}
html,
body {
@apply bg-white text-black;
}
[primary] {
@apply bg-primary text-white;
}
.primary-link-active {
@apply underline;
}
.primary-sublink-active {
@apply bg-white text-primary;
}
[lightgray] {
@apply bg-lightgray;
}
[darkgray] {
@apply bg-darkgray text-white;
}

1
components/Footer.vue Normal file
View file

@ -0,0 +1 @@
<template>Footer</template>

1
components/Header.vue Normal file
View file

@ -0,0 +1 @@
<template>Header</template>

6
layouts/default.vue Normal file
View file

@ -0,0 +1,6 @@
<template>
<Header />
Image title
<slot />
<Footer />
</template>

5
layouts/detail.vue Normal file
View file

@ -0,0 +1,5 @@
<template>
<Header />
<slot />
<Footer />
</template>

6
layouts/landing.vue Normal file
View file

@ -0,0 +1,6 @@
<template>
Image
<Header />
<slot />
<Footer />
</template>

37
nuxt.config.ts Normal file
View file

@ -0,0 +1,37 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
baseURL: "/",
head: {
title: process.env.APP_TITLE,
htmlAttrs: {
lang: "de",
},
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "" },
{ name: "format-detection", content: "telephone=no" },
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.svg" }],
},
},
css: ["~/assets/app.css", "~/assets/ConthraxSemiBold.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
compatibilityDate: "2024-04-03",
devtools: { enabled: false },
modules: ["@nuxtjs/strapi"],
strapi: {
url: process.env.STRAPI_URL,
prefix: "/api",
},
});

15662
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

23
package.json Normal file
View file

@ -0,0 +1,23 @@
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxtjs/strapi": "^1.12.0",
"nuxt": "^3.13.2",
"vue": "latest",
"vue-router": "latest"
},
"devDependencies": {
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.14"
}
}

3
pages/index.vue Normal file
View file

@ -0,0 +1,3 @@
<template>
<NuxtLayout name="landing"> index </NuxtLayout>
</template>

1
public/robots.txt Normal file
View file

@ -0,0 +1 @@

3
server/tsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}

21
tailwind.config.js Normal file
View file

@ -0,0 +1,21 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./app.vue",
"./error.vue",
],
theme: {
extend: {
colors: {
primary: "#B22222",
darkgray: "#2B292A",
lightgray: "#E3DFDF",
},
},
},
plugins: [],
};

4
tsconfig.json Normal file
View file

@ -0,0 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}