javascript-template/templates/nextjs/app/page.tsx
jasmine c497b0fc1d
Refactor into multi-template monorepo with Next.js support
Restructure project to support multiple templates via Nix flakes and omnix.
Users can now choose between vanilla JavaScript or Next.js TypeScript
templates during initialization.

- Move existing template to templates/vanilla/
- Add templates/nextjs/ with App Router, TypeScript, and React 19
- Update flake.nix for multi-template outputs
- Add TypeScript support to shared devshell
- Preserve FHS compatibility for both templates
- Update README with comprehensive template comparison and usage
2025-11-14 11:16:04 +08:00

37 lines
867 B
TypeScript

export default function Home() {
return (
<main>
<div className="container">
<h1>Welcome to {{package-name}}</h1>
<p>
A minimal Next.js TypeScript template with App Router, powered by
Bun and Nix.
</p>
<div className="links">
<a
href="https://nextjs.org/docs"
target="_blank"
rel="noopener noreferrer"
>
Next.js Docs
</a>
<a
href="https://react.dev"
target="_blank"
rel="noopener noreferrer"
>
React Docs
</a>
<a
href="https://www.typescriptlang.org/docs"
target="_blank"
rel="noopener noreferrer"
>
TypeScript Docs
</a>
</div>
</div>
</main>
);
}