मुख्य सामग्री पर जाएं
प्रोजेक्ट टेम्पलेट·Pro

Next.js + Tailwind + i18n

next-intl और Tailwind CSS वाला Next.js 15 प्रोजेक्ट, जिसमें /en और /es पर अंग्रेज़ी और स्पेनिश में एक पेज है। डार्क मोड सिस्टम के अनुसार चलता है। Node.js के साथ Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 400 MB डाउनलोड करता है।

इसे इंस्टॉल करने के लिए PocketCode Pro चाहिए।

अगर आपके Android डिवाइस पर PocketCode इंस्टॉल है, तो यह पेज ऐप में खुलेगा।

प्रीव्यू

फ़ाइलें

README.md
messages/en.json
messages/es.json
next.config.ts
package-lock.json
package.json
postcss.config.mjs
src/app/[locale]/layout.tsx
src/app/[locale]/page.tsx
src/app/globals.css
src/components/LocaleSwitcher.tsx
src/i18n/navigation.ts
src/i18n/request.ts
src/i18n/routing.ts
src/middleware.ts
tailwind.config.ts
tsconfig.json

README.md

# Next.js 15 + Tailwind + next-intl A one-page site in English and Spanish, with routes per language (`/en`, `/es`), Tailwind CSS and dark mode that follows the system setting. ## Run it in PocketCode You need the app's Linux environment with Node.js 18.18 or newer (the Developer pack in Terminal › Linux includes Node.js and npm). 1. Open the terminal in this project's folder. 2. Install the dependencies (the first time downloads around 400 MB and needs internet): ```sh npm install ``` 3. Start the development server: ```sh npm run dev ``` 4. Open http://localhost:3000 in the phone's browser. It redirects to `/en` or `/es` depending on the browser language. Other commands: `npm run build` (production build), `npm start` (serve that build), `npm run typecheck`. ## Where things are | Path | What it does | |---|---| | `messages/en.json`, `messages/es.json` | The texts of each language | | `src/i18n/routing.ts` | The list of languages and the default one | | `src/i18n/request.ts` | Loads the messages of the current language | | `src/middleware.ts` | Picks the language on the first visit and redirects | | `src/app/[locale]/page.tsx` | The page | | `src/components/LocaleSwitcher.tsx` | The language selector | | `tailwind.config.ts` | Tailwind settings (`darkMode: 'media'`) | ## Add a language 1. Add its code to `locales` in `src/i18n/routing.ts`, for example `'fr'`.

यह प्रीव्यू छोटा किया गया है। पूरा कंटेंट इंस्टॉल करने पर मिलेगा।

1.0.0 में बदलाव

पहला संस्करण।

संबंधित

Vite + React + TypeScriptProप्रोजेक्ट टेम्पलेटReact और TypeScript में हैबिट ट्रैकर, Vite 8 से बना: हफ़्ते की ग्रिड, लगातार दिनों की गिनती, एक कस्टम हुक और एक टेस्ट। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 25 पैकेज (करीब 80 MB) डाउनलोड करता है।Vite + Vue + TypeScriptProप्रोजेक्ट टेम्पलेटVue 3 और TypeScript में फ़ोकस टाइमर, Vite 8 से बना: फ़ोकस सेशन, ब्रेक, आज का कुल समय, दो composable और एक टेस्ट। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 50 पैकेज (करीब 85 MB) डाउनलोड करता है।Vite + Svelte + TypeScriptProप्रोजेक्ट टेम्पलेटSvelte 5 और TypeScript में फ़्लैशकार्ड, Vite 8 से बने। हर कार्ड पाँच लाइटनर बॉक्स से होकर गुज़रता है और दोहराने का समय आने पर लौटता है। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 45 पैकेज (करीब 75 MB) डाउनलोड करता है।बटन (React + Tailwind)मुफ़्तबटनTypeScript बटन, जिसमें प्राइमरी और सेकेंडरी स्टाइल, साफ़ दिखने वाली फ़ोकस रिंग और एक लोडिंग स्पिनर है जो aria-busy भी सेट करता है। सेकेंडरी स्टाइल में डार्क मोड के रंग हैं।लैंडिंग हीरो (Next.js + Tailwind)मुफ़्तपेजNext.js App Router के लिए हीरो सेक्शन: हल्के ग्रेडिएंट पर एक शीर्षक, उपशीर्षक और दो लिंक। सिस्टम डार्क मोड में हो तो यह गहरे रंग इस्तेमाल करता है।स्टैटिक लैंडिंग पेजProप्रोजेक्ट टेम्पलेटसादे HTML और CSS में एक पेज की साइट: मुड़ने वाले मेन्यू वाला हेडर, हीरो, फ़ीचर ग्रिड, FAQ और फ़ुटर। रंग सिस्टम के लाइट या डार्क मोड के हिसाब से बदलते हैं। न बिल्ड स्टेप, न Linux: index.html खोलें और ग्लोब आइकन पर टैप करें।