mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-09 02:42:30 -05:00
add initial demo app
This commit is contained in:
19
src/app/.well-known/frames.json/route.ts
Normal file
19
src/app/.well-known/frames.json/route.ts
Normal 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
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
21
src/app/globals.css
Normal 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
19
src/app/layout.tsx
Normal 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
9
src/app/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user