Skip to content

Commit eb6e875

Browse files
authored
Merge pull request #1 from you112ef/cursor/build-project-with-nextjs-version-check-0909
Build project with nextjs version check
2 parents af063f1 + eb6c275 commit eb6e875

11 files changed

Lines changed: 6295 additions & 0 deletions

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

app/globals.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
:root {
6+
--foreground-rgb: 0, 0, 0;
7+
--background-start-rgb: 214, 219, 220;
8+
--background-end-rgb: 255, 255, 255;
9+
}
10+
11+
@media (prefers-color-scheme: dark) {
12+
:root {
13+
--foreground-rgb: 255, 255, 255;
14+
--background-start-rgb: 0, 0, 0;
15+
--background-end-rgb: 0, 0, 0;
16+
}
17+
}
18+
19+
body {
20+
color: rgb(var(--foreground-rgb));
21+
background: linear-gradient(
22+
to bottom,
23+
transparent,
24+
rgb(var(--background-end-rgb))
25+
)
26+
rgb(var(--background-start-rgb));
27+
}

app/layout.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import type { Metadata } from 'next'
2+
import { Inter } from 'next/font/google'
3+
import './globals.css'
4+
5+
const inter = Inter({ subsets: ['latin'] })
6+
7+
export const metadata: Metadata = {
8+
title: 'Copilot CLI',
9+
description: 'A CLI tool for GitHub Copilot',
10+
}
11+
12+
export default function RootLayout({
13+
children,
14+
}: {
15+
children: React.ReactNode
16+
}) {
17+
return (
18+
<html lang="en">
19+
<body className={inter.className}>{children}</body>
20+
</html>
21+
)
22+
}

app/page.tsx

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
export default function Home() {
2+
return (
3+
<main className="flex min-h-screen flex-col items-center justify-between p-24">
4+
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
5+
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
6+
Copilot CLI
7+
</p>
8+
</div>
9+
10+
<div className="relative flex place-items-center">
11+
<h1 className="text-4xl font-bold text-center">
12+
Welcome to Copilot CLI
13+
</h1>
14+
</div>
15+
16+
<div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left">
17+
<div className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30">
18+
<h2 className="mb-3 text-2xl font-semibold">
19+
CLI Tool{' '}
20+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
21+
-&gt;
22+
</span>
23+
</h2>
24+
<p className="m-0 max-w-[30ch] text-sm opacity-50">
25+
A command-line interface for GitHub Copilot functionality.
26+
</p>
27+
</div>
28+
29+
<div className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30">
30+
<h2 className="mb-3 text-2xl font-semibold">
31+
GitHub Integration{' '}
32+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
33+
-&gt;
34+
</span>
35+
</h2>
36+
<p className="m-0 max-w-[30ch] text-sm opacity-50">
37+
Seamlessly integrate with GitHub Copilot services.
38+
</p>
39+
</div>
40+
41+
<div className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30">
42+
<h2 className="mb-3 text-2xl font-semibold">
43+
Developer Friendly{' '}
44+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
45+
-&gt;
46+
</span>
47+
</h2>
48+
<p className="m-0 max-w-[30ch] text-sm opacity-50">
49+
Built with modern tools and best practices.
50+
</p>
51+
</div>
52+
53+
<div className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30">
54+
<h2 className="mb-3 text-2xl font-semibold">
55+
Easy Deployment{' '}
56+
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
57+
-&gt;
58+
</span>
59+
</h2>
60+
<p className="m-0 max-w-[30ch] text-sm opacity-50">
61+
Deploy easily with Vercel and other platforms.
62+
</p>
63+
</div>
64+
</div>
65+
</main>
66+
)
67+
}

next.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
swcMinify: true,
5+
}
6+
7+
module.exports = nextConfig

0 commit comments

Comments
 (0)