initial commit

This commit is contained in:
Ken Yasue
2025-06-01 22:21:33 +02:00
commit 5149012dcf
30 changed files with 6346 additions and 0 deletions

3
app/connection.ts Normal file
View File

@ -0,0 +1,3 @@
import { dbSource } from "@/schema";
export const db = await dbSource()

BIN
app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

33
app/globals.css Normal file
View File

@ -0,0 +1,33 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
@layer utilities {
.text-balance {
text-wrap: balance;
}
}

23
app/layout.tsx Normal file
View File

@ -0,0 +1,23 @@
import "reflect-metadata";
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 className={inter.className}>{children}</body>
</html>
);
}

21
app/page.tsx Normal file
View File

@ -0,0 +1,21 @@
import Image from "next/image";
import { db } from "./connection";
export default async function Home() {
const user = await db.userRepository.findOneBy({email: "montheeric1@gmail.com"})
return (
<div>
<div>{user?.email}</div>
<div className="size-10">
<Image
alt="user avatar"
src={user?.image ?? ""}
className="object-cover"
fill
/>
</div>
</div>
);
}