Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: root page
  • Loading branch information
hi-ogawa committed Apr 5, 2024
commit 3d23657c5a8226236473a24e1682d7345a8596de
5 changes: 4 additions & 1 deletion src/routes/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default async function Layout(props: React.PropsWithChildren) {
</head>
<body>
<div id="sidebar">
<h1>Remix Contacts</h1>
<h1>
<Link href="/">Remix Contacts</Link>
</h1>
<div>
<form id="search-form" role="search">
<input
Expand All @@ -37,6 +39,7 @@ export default async function Layout(props: React.PropsWithChildren) {
<ul>
{contacts.map((contact) => (
<li key={contact.id}>
{/* TODO: encoding /contacts/kent%20c.-dodds */}
<Link href={`/contacts/${contact.id}`}>
{contact.first || contact.last ? (
<>
Expand Down
19 changes: 18 additions & 1 deletion src/routes/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
export default function Page() {
return <div>Home Page</div>;
return (
<p id="index-page">
This is a demo for{" "}
<a href="https://remix.run" target="_blank">
Remix
</a>
,
<br />
which is ported to{" "}
<a
href="https://github.com/hi-ogawa/vite-plugins/tree/main/packages/react-server"
target="_blank"
>
@hiogawa/react-server
</a>
.
</p>
);
}