mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-26 09:18:57 +00:00
test
This commit is contained in:
BIN
nextjs/spa-standalone/app/favicon.ico
Normal file
BIN
nextjs/spa-standalone/app/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
19
nextjs/spa-standalone/app/globals.css
Normal file
19
nextjs/spa-standalone/app/globals.css
Normal file
@@ -0,0 +1,19 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
body {
|
||||
color: #1a1a1a;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
color: #ffffff;
|
||||
background: #0a0a0a;
|
||||
}
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
.text-balance {
|
||||
text-wrap: balance;
|
||||
}
|
||||
}
|
||||
22
nextjs/spa-standalone/app/layout.tsx
Normal file
22
nextjs/spa-standalone/app/layout.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
17
nextjs/spa-standalone/app/page.tsx
Normal file
17
nextjs/spa-standalone/app/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
export default function Home() {
|
||||
const analyticsId = process.env.NEXT_PUBLIC_ANALYTICS_ID;
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center h-screen">
|
||||
<h1 className="text-3xl font-bold pb-4">Hello World</h1>
|
||||
<p>Analytics ID: {analyticsId}</p>
|
||||
<a
|
||||
href="https://coolify.io"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="bg-blue-500 text-white p-2 rounded-md inline-block"
|
||||
>
|
||||
Click me now
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user