-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
yossydev
committed
Feb 25, 2024
1 parent
132ea91
commit 1f7d550
Showing
1 changed file
with
25 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,36 @@ | ||
import { createRoute } from "honox/factory"; | ||
import Counter from "../islands/counter"; | ||
import { FC } from "hono/jsx"; | ||
|
||
export default createRoute((c) => { | ||
const name = c.req.query("name") ?? "Hono"; | ||
return c.render( | ||
<div> | ||
<h1 className="text-3xl text-red-50 font-bold underline"> | ||
Hello world! {name} | ||
</h1> | ||
<Counter /> | ||
<Heading title="Hi! I'm Yuto" /> | ||
<div class="mt-5"> | ||
<p class="font-medium"> | ||
都内在住の22歳のエンジニアです。Webパフォーマンス / Developer | ||
Experienceの向上に興味があります。 | ||
<span class="ml-1"> | ||
<a | ||
href="/profile" | ||
class="underline underline-offset-3 text-blue-700" | ||
> | ||
Read more → | ||
</a> | ||
</span> | ||
</p> | ||
</div> | ||
<Heading title="Posts" /> | ||
</div>, | ||
{ title: name }, | ||
); | ||
}); | ||
|
||
const Heading: FC<{ title: string }> = ({ title }) => { | ||
return ( | ||
<div class="border-b border-black"> | ||
<h1 class="text-2xl font-semibold pb-1 mt-10">{title}</h1> | ||
</div> | ||
); | ||
}; |