Skip to content

Commit b5bedd0

Browse files
committed
init commit
0 parents  commit b5bedd0

17 files changed

+377
-0
lines changed

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env*.local
29+
30+
# vercel
31+
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts
36+
37+
package-lock.json
38+

README.md

+36
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://github.com/vercel/next.js/tree/canary/packages/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/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
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/deployment) for more details.

app/(main)/(routes)/page.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Image from 'next/image'
2+
3+
export default function Home() {
4+
return (
5+
<p>Discord Clone</p>
6+
)
7+
}

app/favicon.ico

25.3 KB
Binary file not shown.

app/globals.css

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
html,
6+
body,
7+
:root {
8+
height: 100%;
9+
}
10+
11+
@layer base {
12+
:root {
13+
--background: 0 0% 100%;
14+
--foreground: 20 14.3% 4.1%;
15+
16+
--card: 0 0% 100%;
17+
--card-foreground: 20 14.3% 4.1%;
18+
19+
--popover: 0 0% 100%;
20+
--popover-foreground: 20 14.3% 4.1%;
21+
22+
--primary: 24 9.8% 10%;
23+
--primary-foreground: 60 9.1% 97.8%;
24+
25+
--secondary: 60 4.8% 95.9%;
26+
--secondary-foreground: 24 9.8% 10%;
27+
28+
--muted: 60 4.8% 95.9%;
29+
--muted-foreground: 25 5.3% 44.7%;
30+
31+
--accent: 60 4.8% 95.9%;
32+
--accent-foreground: 24 9.8% 10%;
33+
34+
--destructive: 0 84.2% 60.2%;
35+
--destructive-foreground: 60 9.1% 97.8%;
36+
37+
--border: 20 5.9% 90%;
38+
--input: 20 5.9% 90%;
39+
--ring: 20 14.3% 4.1%;
40+
41+
--radius: 0.5rem;
42+
}
43+
44+
.dark {
45+
--background: 20 14.3% 4.1%;
46+
--foreground: 60 9.1% 97.8%;
47+
48+
--card: 20 14.3% 4.1%;
49+
--card-foreground: 60 9.1% 97.8%;
50+
51+
--popover: 20 14.3% 4.1%;
52+
--popover-foreground: 60 9.1% 97.8%;
53+
54+
--primary: 60 9.1% 97.8%;
55+
--primary-foreground: 24 9.8% 10%;
56+
57+
--secondary: 12 6.5% 15.1%;
58+
--secondary-foreground: 60 9.1% 97.8%;
59+
60+
--muted: 12 6.5% 15.1%;
61+
--muted-foreground: 24 5.4% 63.9%;
62+
63+
--accent: 12 6.5% 15.1%;
64+
--accent-foreground: 60 9.1% 97.8%;
65+
66+
--destructive: 0 62.8% 30.6%;
67+
--destructive-foreground: 60 9.1% 97.8%;
68+
69+
--border: 12 6.5% 15.1%;
70+
--input: 12 6.5% 15.1%;
71+
--ring: 24 5.7% 82.9%;
72+
}
73+
}
74+
75+
@layer base {
76+
* {
77+
@apply border-border;
78+
}
79+
body {
80+
@apply bg-background text-foreground;
81+
}
82+
}

app/layout.tsx

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import './globals.css'
2+
import type { Metadata } from 'next'
3+
import { Open_Sans } from 'next/font/google'
4+
5+
const font = Open_Sans({ subsets: ['latin'] })
6+
7+
export const metadata: Metadata = {
8+
title: 'Discord Clone',
9+
description: 'Discord Clone created by @impruthvi',
10+
}
11+
12+
export default function RootLayout({
13+
children,
14+
}: {
15+
children: React.ReactNode
16+
}) {
17+
return (
18+
<html lang="en">
19+
<body className={font.className}>{children}</body>
20+
</html>
21+
)
22+
}

components.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "app/globals.css",
9+
"baseColor": "stone",
10+
"cssVariables": true
11+
},
12+
"aliases": {
13+
"components": "@/components",
14+
"utils": "@/lib/utils"
15+
}
16+
}

lib/utils.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ClassValue, clsx } from "clsx"
2+
import { twMerge } from "tailwind-merge"
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs))
6+
}

next.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {}
3+
4+
module.exports = nextConfig

package.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "discord-clone",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"class-variance-authority": "^0.7.0",
13+
"clsx": "^2.0.0",
14+
"lucide-react": "^0.285.0",
15+
"next": "13.5.4",
16+
"react": "^18",
17+
"react-dom": "^18",
18+
"tailwind-merge": "^1.14.0",
19+
"tailwindcss-animate": "^1.0.7"
20+
},
21+
"devDependencies": {
22+
"@types/node": "^20",
23+
"@types/react": "^18",
24+
"@types/react-dom": "^18",
25+
"autoprefixer": "^10",
26+
"eslint": "^8",
27+
"eslint-config-next": "13.5.4",
28+
"postcss": "^8",
29+
"tailwindcss": "^3",
30+
"typescript": "^5"
31+
}
32+
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

public/next.svg

+1
Loading

public/vercel.svg

+1
Loading

tailwind.config.js

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
darkMode: ["class"],
4+
content: [
5+
'./pages/**/*.{ts,tsx}',
6+
'./components/**/*.{ts,tsx}',
7+
'./app/**/*.{ts,tsx}',
8+
'./src/**/*.{ts,tsx}',
9+
],
10+
theme: {
11+
container: {
12+
center: true,
13+
padding: "2rem",
14+
screens: {
15+
"2xl": "1400px",
16+
},
17+
},
18+
extend: {
19+
colors: {
20+
border: "hsl(var(--border))",
21+
input: "hsl(var(--input))",
22+
ring: "hsl(var(--ring))",
23+
background: "hsl(var(--background))",
24+
foreground: "hsl(var(--foreground))",
25+
primary: {
26+
DEFAULT: "hsl(var(--primary))",
27+
foreground: "hsl(var(--primary-foreground))",
28+
},
29+
secondary: {
30+
DEFAULT: "hsl(var(--secondary))",
31+
foreground: "hsl(var(--secondary-foreground))",
32+
},
33+
destructive: {
34+
DEFAULT: "hsl(var(--destructive))",
35+
foreground: "hsl(var(--destructive-foreground))",
36+
},
37+
muted: {
38+
DEFAULT: "hsl(var(--muted))",
39+
foreground: "hsl(var(--muted-foreground))",
40+
},
41+
accent: {
42+
DEFAULT: "hsl(var(--accent))",
43+
foreground: "hsl(var(--accent-foreground))",
44+
},
45+
popover: {
46+
DEFAULT: "hsl(var(--popover))",
47+
foreground: "hsl(var(--popover-foreground))",
48+
},
49+
card: {
50+
DEFAULT: "hsl(var(--card))",
51+
foreground: "hsl(var(--card-foreground))",
52+
},
53+
},
54+
borderRadius: {
55+
lg: "var(--radius)",
56+
md: "calc(var(--radius) - 2px)",
57+
sm: "calc(var(--radius) - 4px)",
58+
},
59+
keyframes: {
60+
"accordion-down": {
61+
from: { height: 0 },
62+
to: { height: "var(--radix-accordion-content-height)" },
63+
},
64+
"accordion-up": {
65+
from: { height: "var(--radix-accordion-content-height)" },
66+
to: { height: 0 },
67+
},
68+
},
69+
animation: {
70+
"accordion-down": "accordion-down 0.2s ease-out",
71+
"accordion-up": "accordion-up 0.2s ease-out",
72+
},
73+
},
74+
},
75+
plugins: [require("tailwindcss-animate")],
76+
}

tailwind.config.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { Config } from 'tailwindcss'
2+
3+
const config: Config = {
4+
content: [
5+
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
6+
'./components/**/*.{js,ts,jsx,tsx,mdx}',
7+
'./app/**/*.{js,ts,jsx,tsx,mdx}',
8+
],
9+
theme: {
10+
extend: {
11+
backgroundImage: {
12+
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
13+
'gradient-conic':
14+
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
15+
},
16+
},
17+
},
18+
plugins: [],
19+
}
20+
export default config

tsconfig.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"noEmit": true,
9+
"esModuleInterop": true,
10+
"module": "esnext",
11+
"moduleResolution": "bundler",
12+
"resolveJsonModule": true,
13+
"isolatedModules": true,
14+
"jsx": "preserve",
15+
"incremental": true,
16+
"plugins": [
17+
{
18+
"name": "next"
19+
}
20+
],
21+
"paths": {
22+
"@/*": ["./*"]
23+
}
24+
},
25+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
26+
"exclude": ["node_modules"]
27+
}

0 commit comments

Comments
 (0)