feat: initial features

This commit is contained in:
2024-04-13 16:04:32 +07:00
commit e27b047f65
19 changed files with 557 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import type { FC } from "hono/jsx";
import Layout from "../layouts/layout";
import LinksSection from "../sections/links";
import CreateLinkSection from "../sections/create-link";
import type { Link } from "../../types/link";
type Props = {
links: Link[];
};
const HomePage: FC<Props> = ({ links }) => {
return (
<Layout title="Cebol - URL Shortener">
<main class="container">
<CreateLinkSection />
<LinksSection links={links} />
</main>
</Layout>
);
};
export default HomePage;
+15
View File
@@ -0,0 +1,15 @@
import type { FC } from "hono/jsx";
import Layout from "../layouts/layout";
const NotFoundPage: FC = () => {
return (
<Layout title="Link Not Found!">
<main class="container" style="margin-top: 2em;">
<h3>Link Not Found!</h3>
<p>The requested link was not found.</p>
</main>
</Layout>
);
};
export default NotFoundPage;