Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit f212176

Browse files
authored
1
1 parent 884373c commit f212176

30 files changed

+7585
-0
lines changed

2p1/.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

2p1/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

2p1/app/favicon.ico

25.3 KB
Binary file not shown.

2p1/app/globals.css

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
6+
7+
@layer base {
8+
:root {
9+
10+
--background: 0 0% 100%;
11+
12+
--foreground: 20 14.3% 4.1%;
13+
14+
--card: 0 0% 100%;
15+
16+
--card-foreground: 20 14.3% 4.1%;
17+
18+
--popover: 0 0% 100%;
19+
20+
--popover-foreground: 20 14.3% 4.1%;
21+
22+
--primary: 24 9.8% 10%;
23+
24+
--primary-foreground: 60 9.1% 97.8%;
25+
26+
--secondary: 60 4.8% 95.9%;
27+
28+
--secondary-foreground: 24 9.8% 10%;
29+
30+
--muted: 60 4.8% 95.9%;
31+
32+
--muted-foreground: 25 5.3% 44.7%;
33+
34+
--accent: 60 4.8% 95.9%;
35+
36+
--accent-foreground: 24 9.8% 10%;
37+
38+
--destructive: 0 84.2% 60.2%;
39+
40+
--destructive-foreground: 60 9.1% 97.8%;
41+
42+
--border: 20 5.9% 90%;
43+
44+
--input: 20 5.9% 90%;
45+
46+
--ring: 20 14.3% 4.1%;
47+
48+
--chart-1: 12 76% 61%;
49+
50+
--chart-2: 173 58% 39%;
51+
52+
--chart-3: 197 37% 24%;
53+
54+
--chart-4: 43 74% 66%;
55+
56+
--chart-5: 27 87% 67%;
57+
58+
--radius: 0.5rem
59+
}
60+
.dark {
61+
62+
--background: 20 14.3% 4.1%;
63+
64+
--foreground: 60 9.1% 97.8%;
65+
66+
--card: 20 14.3% 4.1%;
67+
68+
--card-foreground: 60 9.1% 97.8%;
69+
70+
--popover: 20 14.3% 4.1%;
71+
72+
--popover-foreground: 60 9.1% 97.8%;
73+
74+
--primary: 60 9.1% 97.8%;
75+
76+
--primary-foreground: 24 9.8% 10%;
77+
78+
--secondary: 12 6.5% 15.1%;
79+
80+
--secondary-foreground: 60 9.1% 97.8%;
81+
82+
--muted: 12 6.5% 15.1%;
83+
84+
--muted-foreground: 24 5.4% 63.9%;
85+
86+
--accent: 12 6.5% 15.1%;
87+
88+
--accent-foreground: 60 9.1% 97.8%;
89+
90+
--destructive: 0 62.8% 30.6%;
91+
92+
--destructive-foreground: 60 9.1% 97.8%;
93+
94+
--border: 12 6.5% 15.1%;
95+
96+
--input: 12 6.5% 15.1%;
97+
98+
--ring: 24 5.7% 82.9%;
99+
100+
--chart-1: 220 70% 50%;
101+
102+
--chart-2: 160 60% 45%;
103+
104+
--chart-3: 30 80% 55%;
105+
106+
--chart-4: 280 65% 60%;
107+
108+
--chart-5: 340 75% 55%
109+
}
110+
}
111+
112+
113+
114+
@layer base {
115+
* {
116+
@apply border-border;
117+
}
118+
body {
119+
@apply bg-background text-foreground;
120+
}
121+
}

2p1/app/layout.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import '@/styles/globals.css'
2+
import { Inter } from 'next/font/google'
3+
4+
const inter = Inter({ subsets: ['latin'] })
5+
6+
export const metadata = {
7+
title: 'Source Code to Website Converter',
8+
description: 'Convert HTML source code to a functional website',
9+
}
10+
11+
export default function RootLayout({
12+
children,
13+
}: {
14+
children: React.ReactNode
15+
}) {
16+
return (
17+
<html lang="en">
18+
<body className={inter.className}>{children}</body>
19+
</html>
20+
)
21+
}
22+

2p1/app/page.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import SourceCodeConverter from '@/components/SourceCodeConverter'
2+
3+
export default function Home() {
4+
return (
5+
<main className="container mx-auto p-4">
6+
<h1 className="text-3xl font-bold mb-4">Source Code to Website Converter</h1>
7+
<SourceCodeConverter />
8+
</main>
9+
)
10+
}
11+

2p1/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "app/globals.css",
9+
"baseColor": "stone",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

0 commit comments

Comments
 (0)