mirror of
https://github.com/sajenim/javascript-template.git
synced 2025-12-17 03:50:40 +08:00
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
37 lines
867 B
TypeScript
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>
|
|
);
|
|
}
|