Skip to content

Commit

Permalink
chore: update nextjs example with links to middleware and api
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Sep 10, 2024
1 parent 13f4b47 commit 321ef55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
1 change: 1 addition & 0 deletions examples/nextjs/src/app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
grid-template-columns: repeat(4, minmax(25%, auto));
max-width: 100%;
width: var(--max-width);
gap: 12px;
}

.card {
Expand Down
38 changes: 6 additions & 32 deletions examples/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,53 +48,27 @@ export default async function Home() {

<div className={styles.grid}>
<a
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
href="/middleware"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Docs <span>-&gt;</span>
Middleware <span>-&gt;</span>
</h2>
<p>Find in-depth information about Next.js features and API.</p>
<p><code>auth.js</code> within a middleware.</p>
</a>

<a
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
href="/api/test"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Learn <span>-&gt;</span>
Api <span>-&gt;</span>
</h2>
<p>Learn about Next.js in an interactive course with&nbsp;quizzes!</p>
</a>

<a
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Templates <span>-&gt;</span>
</h2>
<p>Explore starter templates for Next.js.</p>
</a>

<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Deploy <span>-&gt;</span>
</h2>
<p>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
<p><code>auth.js</code> within an api.</p>
</a>
</div>
</main>
Expand Down

0 comments on commit 321ef55

Please sign in to comment.