forked from codinginflow/nextjs-13.4-image-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f63b1c6
commit 066f3c8
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 |
---|---|---|
@@ -1,5 +1,28 @@ | ||
import { Alert } from "@/components/bootstrap"; | ||
|
||
export default function Home() { | ||
return ( | ||
<div>Home Page</div> | ||
<div> | ||
<Alert> | ||
<p> | ||
This is a sample project to showcase and learn the new <strong>NextJS 13 app directory</strong> and its features, including: | ||
</p> | ||
<ul> | ||
<li>static and dynamic server-side rendering</li> | ||
<li>incremental static regeneration</li> | ||
<li>client-side rendering</li> | ||
<li>route handlers (API endpoints)</li> | ||
<li>meta-data API</li> | ||
<li>and more</li> | ||
</ul> | ||
<p className='mb-0'> | ||
Every page uses a different approach to <strong>fetching and caching data</strong>. Click the links in the nav bar to try them out. | ||
</p> | ||
</Alert> | ||
<Alert variant='secondary'> | ||
<p>Note: In order to load the data on this site, you need to get a <a href="https://unsplash.com/developers">free API key from Unsplash</a> and add it to your <code>.env.local</code> file as <code>UNSPLASH_ACCESS_KEY</code>.</p> | ||
<p className='mb-0'>Unsplash has a free quota of 50 requests per hour so you might start getting errors if you try too often.</p> | ||
</Alert> | ||
</div> | ||
) | ||
} |