mirror of
https://github.com/khairul169/cebol.git
synced 2026-09-19 18:57:46 +07:00
feat: initial features
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user