Skip to content

Commit

Permalink
Basic layout
Browse files Browse the repository at this point in the history
  • Loading branch information
glesage committed Dec 9, 2024
1 parent 2933728 commit c6f7666
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions web/components/Canva.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Canva() {
return <div class="min-h-screen min-w-screen">Canva</div>;
}
3 changes: 3 additions & 0 deletions web/components/Panel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Panel() {
return <div class="bg-gray-50 p-4 min-h-screen">Panel</div>;
}
15 changes: 12 additions & 3 deletions web/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import Panel from "../components/Panel.tsx";
import Canva from "../components/Canva.tsx";

export default function Home() {
return (
<div class="px-4 py-8">
<div class="max-w-screen-md mx-auto flex flex-col items-center justify-center">
<h1 class="text-4xl font-bold">App builder</h1>
<div class="flex">
<div class="w-48">
<Panel></Panel>
</div>
<div class="mx-auto">
<Canva></Canva>
</div>
<div class="w-48">
<Panel></Panel>
</div>
</div>
);
Expand Down

0 comments on commit c6f7666

Please sign in to comment.