-
-
Notifications
You must be signed in to change notification settings - Fork 156
NextJs docs has been added #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
543d162
Create index.md
Aksshay88 484f2ee
Create _category_.json
Aksshay88 9b14bd3
Update _category_.json
Aksshay88 94796ba
Update index.md
Aksshay88 e33ba79
Add files via upload
Aksshay88 01450ba
Update index.md
Aksshay88 f8171b9
Update index.md
Aksshay88 46625ca
Update index.md
Aksshay88 8945b62
Update index.md
ajay-dhangar 19d1fa5
Merge branch 'CodeHarborHub:main' into main
Aksshay88 f9f3531
Update index.md
ajay-dhangar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"label": "Next", | ||
"position": 8, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Next is a JavaScript library for building user interfaces. It is maintained by a community of individual developers and companies." | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<div align=center> | ||
Aksshay88 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<h1>NextJS</h1> | ||
<img src="https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&color=black width=650"> | ||
<img src="https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white" width="100"> | ||
</div> | ||
<br> | ||
|
||
|
||
## Get Started | ||
|
||
To start using Aceternity UI in your projects, simply install the library via your preferred package manager: | ||
|
||
### Next.js | ||
|
||
```bash | ||
npx create-next-app@latest | ||
``` | ||
On Installation, you will be prompted to choose a template. Select the default template and proceed with the installation. | ||
|
||
```bash | ||
What is your project named? my-app | ||
Would you like to use TypeScript? No / Yes | ||
Would you like to use ESLint? No / Yes | ||
Would you like to use Tailwind CSS? No / Yes | ||
Would you like to use `src/` directory? No / Yes | ||
Would you like to use App Router? (recommended) No / Yes | ||
Would you like to customize the default import alias (@/*)? No / Yes | ||
What import alias would you like configured? @/* | ||
|
||
``` | ||
After the prompts, `create-next-app` will create a folder with your project name and install the required dependencies. | ||
|
||
Create a root layout inside `app/layout.tsx` with the required `<html>` and ``<body>`` tags: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bade Practice: ``<body>`` Good Practice: `<body>` |
||
|
||
```tsx | ||
// app/layout.tsx | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
</html> | ||
) | ||
} | ||
``` | ||
Finally, create a home page `app/page.tsx` with some initial content: | ||
|
||
```tsx | ||
// app/page.tsx | ||
export default function Page() { | ||
return <h1>Hello, Next.js!</h1> | ||
} | ||
``` | ||
Now, you can start the development server: | ||
|
||
Run `npm run dev` to start the development server. | ||
Visit `http://localhost:3000` to view your application. | ||
Edit `app/page.tsx` (or `pages/index.tsx`) file and save it to see the updated result in your browser. | ||
|
||
|
||
<a href="https://nextjs.org/docs/app"><img src="https://github.com/Aksshay88/Macbook/assets/119944779/1c389169-463a-42e1-b4f0-28830ed4b8a8"></a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bad Practice: <img src="img.png"> Good Practice: <img src="img.png" alt="Image name" /> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.