Skip to content

Commit

Permalink
feat: Top self-introduction section
Browse files Browse the repository at this point in the history
  • Loading branch information
yossydev committed Feb 25, 2024
1 parent 132ea91 commit 1f7d550
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions app/routes/index.tsx
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>
);
};

0 comments on commit 1f7d550

Please sign in to comment.