Skip to content

Commit

Permalink
End of part 12
Browse files Browse the repository at this point in the history
  • Loading branch information
codinginflow committed May 26, 2023
1 parent f63b1c6 commit 066f3c8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Binary file added src/app/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 24 additions & 1 deletion src/app/page.tsx
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>
)
}

0 comments on commit 066f3c8

Please sign in to comment.