-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kitchen-sink with App Router. (#4840)
- Loading branch information
1 parent
3b22f1c
commit 75e7ddc
Showing
12 changed files
with
167 additions
and
87 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import "./styles.css"; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
</html> | ||
); | ||
} |
8 changes: 4 additions & 4 deletions
8
...-sink/apps/storefront/src/pages/index.tsx → ...hen-sink/apps/storefront/src/app/page.tsx
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
html { | ||
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, | ||
Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif; | ||
-webkit-text-size-adjust: 100%; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-tap-highlight-color: transparent; | ||
line-height: 1.5; | ||
tab-size: 4; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
.container { | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 1.5rem; | ||
max-width: 100%; | ||
margin: 0 auto; | ||
padding: 0 16px; | ||
text-align: center; | ||
} | ||
|
||
.title { | ||
font-size: 3rem; | ||
font-weight: 700; | ||
margin: 0; | ||
} | ||
|
||
.title span { | ||
display: inline-block; | ||
background-image: linear-gradient(to right, #3b82f6, #ef4444); | ||
-webkit-background-clip: text; | ||
background-clip: text; | ||
color: transparent; | ||
} | ||
|
||
.description { | ||
color: #9ca3af; | ||
font-weight: 500; | ||
} | ||
|
||
.description a { | ||
color: #3b82f6; | ||
text-decoration: none; | ||
} | ||
|
||
.description a:hover { | ||
text-decoration: underline; | ||
} |
This file was deleted.
Oops, something went wrong.
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
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,16 +1,16 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"build": "turbo run build", | ||
"clean": "turbo run clean", | ||
"dev": "turbo run dev --no-cache --continue", | ||
"build": "turbo build", | ||
"clean": "turbo clean", | ||
"dev": "turbo dev --no-cache --continue", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
"lint": "turbo run lint", | ||
"test": "turbo run test" | ||
"lint": "turbo lint", | ||
"test": "turbo test" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^2.7.1", | ||
"turbo": "latest" | ||
"turbo": "^1.9.3" | ||
}, | ||
"packageManager": "pnpm@7.15.0" | ||
} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { defineConfig, Options } from "tsup"; | ||
|
||
export default defineConfig((options: Options) => ({ | ||
banner: { | ||
js: "'use client'", | ||
}, | ||
...options, | ||
})); |
Oops, something went wrong.
75e7ddc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
examples-kitchensink-blog – ./examples/kitchen-sink/apps/blog
examples-kitchensink-blog.vercel.sh
examples-kitchensink-blog-git-main.vercel.sh