feat: scaffold Next.js landing page app at apps/landing

This commit is contained in:
ashim-hq
2026-04-23 17:19:48 +08:00
parent 136a4dd641
commit 2260d696bc
11 changed files with 807 additions and 0 deletions
+2
View File
@@ -21,6 +21,8 @@ __pycache__/
*.pyc
# Build artifacts
.next/
out/
coverage/
*.tsbuildinfo
+6
View File
@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
+7
View File
@@ -0,0 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "export",
};
export default nextConfig;
+28
View File
@@ -0,0 +1,28 @@
{
"name": "@ashim/landing",
"version": "1.15.9",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev --port 1350",
"build": "next build",
"start": "next start",
"lint": "biome check src/",
"typecheck": "tsc --noEmit",
"clean": "rm -rf .next"
},
"dependencies": {
"framer-motion": "^11.18.0",
"lucide-react": "^0.469.0",
"next": "^15.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"tailwindcss": "^4.0.0",
"typescript": "^5.7.0"
}
}
+5
View File
@@ -0,0 +1,5 @@
export default {
plugins: {
"@tailwindcss/postcss": {},
},
};
+36
View File
@@ -0,0 +1,36 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "@/styles/globals.css";
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
export const metadata: Metadata = {
title: "SnapOtter — Self-Hosted Image Processing",
description:
"50+ image processing tools with local AI. Runs 100% offline. No data leaves your network. Open source and free forever.",
metadataBase: new URL("https://snapotter.com"),
openGraph: {
title: "SnapOtter — Self-Hosted Image Processing",
description:
"50+ image processing tools with local AI. Runs 100% offline. No data leaves your network.",
url: "https://snapotter.com",
siteName: "SnapOtter",
type: "website",
},
twitter: {
card: "summary_large_image",
title: "SnapOtter — Self-Hosted Image Processing",
description:
"50+ image processing tools with local AI. Runs 100% offline. No data leaves your network.",
},
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" className={inter.variable}>
<body className="bg-background text-foreground font-[family-name:var(--font-inter)] antialiased">
{children}
</body>
</html>
);
}
+7
View File
@@ -0,0 +1,7 @@
export default function Home() {
return (
<main>
<h1 className="text-4xl font-bold text-center py-40">SnapOtter</h1>
</main>
);
}
+15
View File
@@ -0,0 +1,15 @@
@import "tailwindcss";
@theme {
--color-accent: #f59e0b;
--color-accent-hover: #d97706;
--color-accent-foreground: #ffffff;
--color-background: #ffffff;
--color-background-alt: #fafaf9;
--color-foreground: #0a0a0a;
--color-muted: #737373;
--color-border: #e7e5e4;
--color-dark-bg: #0c0a09;
--color-dark-fg: #fafaf9;
--color-dark-muted: #a8a29e;
}
+23
View File
@@ -0,0 +1,23 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "preserve",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "bundler",
"noEmit": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"plugins": [
{
"name": "next"
}
],
"incremental": true,
"allowJs": true
},
"include": ["src/**/*", "next-env.d.ts", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": ["//"],
"tasks": {
"build": {
"outputs": [".next/**", "!.next/cache/**"]
}
}
}
+670
View File
File diff suppressed because it is too large Load Diff