├── .gitattributes ├── README.md └── next-shit ├── .eslintrc.json ├── .gitignore ├── README.md ├── jsconfig.json ├── next.config.mjs ├── package-lock.json ├── package.json ├── public ├── about.svg ├── about1.svg ├── home.svg ├── logo.png ├── next.svg └── vercel.svg └── src ├── app ├── about │ └── page.js ├── api │ ├── gojo │ │ └── route.js │ └── upload │ │ └── route.js ├── components │ ├── ContactCard.js │ ├── ContactForm.js │ ├── Footer.js │ ├── GojoData.jsx │ ├── GojoForm.js │ ├── Header.js │ ├── Herosection.js │ ├── Img.js │ ├── MovieCard.js │ └── Nav.js ├── contact │ ├── contact.module.css │ └── page.js ├── favicon.ico ├── globals.css ├── gojo │ └── page.js ├── layout.js ├── loading.js ├── movie │ ├── [id] │ │ └── page.js │ └── page.jsx ├── page.js ├── page.module.css └── styles │ ├── common.module.css │ ├── footer.module.css │ ├── herosection.module.css │ └── navbar.module.css ├── lib └── dbCON.js └── models └── Gojo.js /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # next-web 2 | my shit 3 | -------------------------------------------------------------------------------- /next-shit/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals", 3 | "rules": { 4 | "react/no-unescaped-entities": 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /next-shit/.gitignore: -------------------------------------------------------------------------------- 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 37 | -------------------------------------------------------------------------------- /next-shit/README.md: -------------------------------------------------------------------------------- 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.js`. 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. 37 | -------------------------------------------------------------------------------- /next-shit/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "paths": { 4 | "@/*": ["./src/*"] 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /next-shit/next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {}; 3 | 4 | export default nextConfig; 5 | -------------------------------------------------------------------------------- /next-shit/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lala", 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 | "@emailjs/browser": "^4.3.3", 13 | "emailjs": "^4.0.3", 14 | "mongoose": "^8.4.1", 15 | "next": "14.2.3", 16 | "react": "^18", 17 | "react-dom": "^18", 18 | "react-icons": "^5.2.1" 19 | }, 20 | "devDependencies": { 21 | "eslint": "^8", 22 | "eslint-config-next": "14.2.3" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /next-shit/public/about.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /next-shit/public/about1.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /next-shit/public/home.svg: -------------------------------------------------------------------------------- 1 | netflix -------------------------------------------------------------------------------- /next-shit/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nitish-kumar14/next-web/aa0ec60ca864d28327cd544e782dc49fe6ff2828/next-shit/public/logo.png -------------------------------------------------------------------------------- /next-shit/public/next.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /next-shit/public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /next-shit/src/app/about/page.js: -------------------------------------------------------------------------------- 1 | 2 | import Herosection from "@/app/components/Herosection"; 3 | 4 | const About = async () => { 5 | await new Promise((resolve) => setTimeout(resolve, 3000)); 6 | return ( 7 | 8 | ); 9 | }; 10 | 11 | export default About; -------------------------------------------------------------------------------- /next-shit/src/app/api/gojo/route.js: -------------------------------------------------------------------------------- 1 | import dbcon from "@/lib/dbCON"; 2 | import { NextResponse } from "next/server"; 3 | import Gojo from "@/models/Gojo"; 4 | 5 | export async function GET(req) { 6 | try { 7 | await dbcon(); 8 | 9 | const { searchParams } = new URL(req.url); 10 | const id = searchParams.get('id'); 11 | 12 | if (id) { 13 | const gojo = await Gojo.findById(id); 14 | if (!gojo) { 15 | return NextResponse.json({ error: "No data found for the given ID" }, { status: 404 }); 16 | } 17 | return NextResponse.json({ msg: gojo }, { status: 200 }); 18 | } 19 | 20 | const gojo = await Gojo.find(); 21 | return NextResponse.json({ msg: gojo }, { status: 200 }); 22 | } catch (error) { 23 | console.error("Error fetching data:", error); 24 | return NextResponse.json({ error: "Internal Server Error" }, { status: 500 }); 25 | } 26 | } 27 | 28 | export async function POST(req) { 29 | try { 30 | await dbcon(); 31 | const data = await req.json(); // Parse the JSON body 32 | const newGojo = new Gojo(data); 33 | await newGojo.save(); 34 | return NextResponse.json({ msg: "Data added successfully!" }, { status: 201 }); 35 | } catch (error) { 36 | console.error("Error adding data:", error); 37 | return NextResponse.json({ error: "Internal Server Error" }, { status: 500 }); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /next-shit/src/app/api/upload/route.js: -------------------------------------------------------------------------------- 1 | import {writeFile} from "fs/promises" 2 | import { NextResponse } from "next/server"; 3 | 4 | 5 | export async function POST(req) { 6 | const data = await req.formData(); 7 | const file = data.get("file"); 8 | if (!file) { 9 | return NextResponse.json({"message": "Invalid file" , success: false}) 10 | } 11 | const byteData = await file.arrayBuffer(); 12 | const buffer = Buffer.from(byteData); 13 | const path = `./public/uploads/${file.name}` 14 | await writeFile(path, buffer); 15 | return NextResponse.json({"message": "File uploaded successfully", success: true}) 16 | } -------------------------------------------------------------------------------- /next-shit/src/app/components/ContactCard.js: -------------------------------------------------------------------------------- 1 | import styles from "@/app/contact/contact.module.css"; 2 | import Link from "next/link"; 3 | 4 | const ContactCard = () => { 5 | return ( 6 |
7 |
8 |
9 |
10 |

Email

11 |

Monday to Friday Expected

12 |

response time: 72 hours

13 | Send Email -> 14 |
15 | 16 |
17 | 18 |

Live Chat

19 |

Weekdays: 9 AM — 6 PM ET

20 |

Weekends: 9 AM — 5 PM ET

21 | Chat Now -> 22 |
23 | 24 |
25 |

Community Forum

26 |

Monday to Friday Expected

27 |

response time: 72 hours

28 | Ask The Community -> 29 |
30 | 31 |
32 |
33 |
34 | ); 35 | }; 36 | 37 | export default ContactCard; -------------------------------------------------------------------------------- /next-shit/src/app/components/ContactForm.js: -------------------------------------------------------------------------------- 1 | 'use client' 2 | 3 | import styles from "@/app/contact/contact.module.css" 4 | import emailjs from '@emailjs/browser'; 5 | import React, { useRef } from 'react'; 6 | 7 | 8 | const ContactForm = () => { 9 | 10 | const form = useRef(); 11 | 12 | const sendEmail = (e) => { 13 | e.preventDefault(); 14 | 15 | emailjs 16 | .sendForm('service_r3zl2rw', 'template_m6b1idh', form.current, { 17 | publicKey: '5neJEJiCAY_jzJjLM', 18 | }) 19 | .then( 20 | () => { 21 | console.log('SUCCESS!'); 22 | }, 23 | (error) => { 24 | console.log('FAILED...', error.text); 25 | }, 26 | ); 27 | }; 28 | 29 | 30 | 31 | 32 | return ( 33 |
37 |
38 | 47 |
48 | 49 |
50 | 61 |
62 | 63 |
64 | 75 |
76 | 77 |
78 |