Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
:root {
|
||||
--background: #FFFFFF;
|
||||
--foreground: #000000;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { type ReactNode } from 'react';
|
||||
import { type Metadata } from 'next';
|
||||
import '@/app/globals.css';
|
||||
|
||||
type Props = Readonly<{
|
||||
children: ReactNode;
|
||||
}>;
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
default: '<Title>',
|
||||
template: '%s | <Template>'
|
||||
},
|
||||
description: '<Description>',
|
||||
keywords: [ '<Keyword>' ],
|
||||
alternates: {
|
||||
canonical: 'https://<domain>'
|
||||
}
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: Props) {
|
||||
return (
|
||||
<html lang="de" >
|
||||
<body>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export default function Page() {
|
||||
return (
|
||||
<p>Works!</p>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { type MetadataRoute } from 'next';
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
return {
|
||||
rules: [
|
||||
{
|
||||
userAgent: '*',
|
||||
allow: '/',
|
||||
disallow: [
|
||||
'/private/',
|
||||
'/cdn-cgi/',
|
||||
'/_next/'
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
sitemap: 'https://<domain>/sitemap.xml'
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { type MetadataRoute } from 'next';
|
||||
|
||||
type Route = MetadataRoute.Sitemap[number];
|
||||
type Params = Readonly<{
|
||||
path: string;
|
||||
changeFrequency?: Route['changeFrequency'];
|
||||
priority?: Route['priority'];
|
||||
}>;
|
||||
|
||||
|
||||
const baseURL = 'https://<domain>';
|
||||
|
||||
|
||||
function buildRoute({ path, changeFrequency = 'yearly', priority = 0.0 }: Params) {
|
||||
const route = {
|
||||
url: `${baseURL}${path}`,
|
||||
|
||||
changeFrequency,
|
||||
priority
|
||||
} as Route;
|
||||
|
||||
return route;
|
||||
}
|
||||
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
return [
|
||||
buildRoute({ path: '/', changeFrequency: 'monthly', priority: 1.0 })
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user