add initial demo app

This commit is contained in:
horsefacts
2024-11-23 23:19:40 -05:00
committed by lucas-neynar
parent 5143ab4ce4
commit 33eea440b3
22 changed files with 5723 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
export async function GET() {
const appUrl = process.env.NEXT_PUBLIC_URL;
const config = {
config: {
version: "0.0.0",
name: "Frames v2 Demo",
icon: `${appUrl}/icon.png`,
splashImage: `${appUrl}/splash.png`,
splashBackgroundColor: "#f7f7f7",
homeUrl: appUrl,
fid: 0,
key: "",
signature: "",
},
};
return Response.json(config);
}

BIN
src/app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

21
src/app/globals.css Normal file
View File

@@ -0,0 +1,21 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--background: #ffffff;
--foreground: #171717;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
body {
color: var(--foreground);
background: var(--background);
font-family: 'Inter', Helvetica, Arial, sans-serif;
}

19
src/app/layout.tsx Normal file
View File

@@ -0,0 +1,19 @@
import type { Metadata } from "next";
import "./globals.css";
export const metadata: Metadata = {
title: "Farcaster Frames v2 Demo",
description: "A Farcaster Frames v2 demo app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}

9
src/app/page.tsx Normal file
View File

@@ -0,0 +1,9 @@
import { App } from "~/components/App";
export default function Home() {
return (
<main className="min-h-screen flex flex-col p-4">
<App />
</main>
);
}