-
Notifications
You must be signed in to change notification settings - Fork 6
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
647af57
commit a8af95c
Showing
9 changed files
with
88 additions
and
2 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"root": "src", | ||
"public": "src/public", | ||
"vite": { | ||
"build": { | ||
"sourcemap": true | ||
|
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,19 @@ | ||
import { Link } from "@lazarv/react-server/navigation"; | ||
|
||
export default async function AboutPage() { | ||
return ( | ||
<div> | ||
<title>About 01</title> | ||
<h1 className="text-4xl font-bold tracking-tight">About</h1> | ||
<img | ||
src="/static/images/image-placeholder.svg" | ||
alt="placeholder" | ||
className="w-24 h-24" | ||
/> | ||
<p>This is placeholder for a Textblock.</p> | ||
<Link to="/" className="mt-4 inline-block underline"> | ||
Return home | ||
</Link> | ||
</div> | ||
); | ||
} |
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 @@ | ||
export default true; |
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
5 changes: 5 additions & 0 deletions
5
examples/hello-world-aws/src/public/static/images/image-placeholder.svg
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Link } from "@lazarv/react-server/navigation"; | ||
|
||
export default async function SecondPage() { | ||
return ( | ||
<div> | ||
<title>Second Page</title> | ||
<h1 className="text-4xl font-bold tracking-tight">Second Page</h1> | ||
<img | ||
src="/static/images/image-placeholder.svg" | ||
alt="placegolder" | ||
className="w-24 h-24" | ||
/> | ||
<p>This is placeholder for a Textblock.</p> | ||
<Link to="/" className="mt-4 inline-block underline"> | ||
Return home | ||
</Link> | ||
{Array.from({ length: 10001 }).map((_, index) => ( | ||
<div key={index} className="content-block"> | ||
<h2 className="text-2xl font-semibold">Content Block {index + 1}</h2> | ||
<p>This is content block number {index + 1}!</p> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
} |
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 @@ | ||
export default true; |
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 +1,22 @@ | ||
{} | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"jsx": "preserve", | ||
"strict": true, | ||
"lib": ["ESNext", "DOM", "DOM.Iterable"], | ||
"types": ["react/experimental", "react-dom/experimental"], | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"plugins": [ | ||
{ | ||
"name": "typescript-plugin-css-modules" | ||
} | ||
], | ||
"baseUrl": "./src", | ||
"paths": { | ||
"@/*": ["./*"] | ||
} | ||
}, | ||
"include": ["**/*.ts", "**/*.tsx", ".react-server/**/*.ts"], | ||
"exclude": ["**/*.js", "**/*.mjs"] | ||
} |