Skip to content

Commit edbef88

Browse files
authored
Merge pull request #15 from oasisprotocol/mz/createLayout
Create template selection page
2 parents 5af2c7b + 3482a8f commit edbef88

File tree

5 files changed

+75
-4
lines changed

5 files changed

+75
-4
lines changed

src/components/Layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const Header: FC = () => {
3131
<div className="flex items-center gap-4">
3232
{isConnected && (
3333
<Button asChild>
34-
<Link to="/dashboard/create">
34+
<Link to="/create">
3535
Create
3636
<Plus className="ml-2 h-4 w-4" />
3737
</Link>

src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ createRoot(document.getElementById('root')!).render(
5353
<Route path="apps/:id" element={<AppDetails />} />
5454
<Route path="machines" element={<Machines />} />
5555
<Route path="machines/:id" element={<MachinesDetails />} />
56-
<Route path="create" element={<Create />} />
5756
</Route>
57+
<Route path="/create" element={<Create />} />
5858
<Route path="/explore" element={<MainLayout />}>
5959
<Route index element={<Explore />} />
6060
</Route>

src/pages/CreateApp/images/eliza.svg

Lines changed: 9 additions & 0 deletions
Loading

src/pages/CreateApp/index.tsx

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
11
import { type FC } from 'react';
2+
import { Link } from 'react-router-dom';
3+
import { Layout } from '@oasisprotocol/ui-library/src/components/ui/layout';
4+
import { Header } from '../../components/Layout/Header';
5+
import { Footer } from '../../components/Layout/Footer';
6+
import { Button } from '@oasisprotocol/ui-library/src/components/ui/button';
7+
import {
8+
Card,
9+
CardHeader,
10+
CardTitle,
11+
CardContent,
12+
CardFooter,
13+
} from '@oasisprotocol/ui-library/src/components/ui/card';
14+
import ElizaBg from './images/eliza.svg';
215

316
export const Create: FC = () => {
4-
return <>Create</>;
17+
return (
18+
<div className="[&>*]:md:max-h-none [&>*]:md:h-auto">
19+
<Layout headerContent={<Header />} footerContent={<Footer />}>
20+
<div className="max-w-6xl mx-auto px-8 py-12">
21+
<div className="mb-8">
22+
<h1 className="text-2xl font-white font-bold mb-2">
23+
Start by Selecting a Template
24+
</h1>
25+
<p className="text-muted-foreground text-md max-w-md">
26+
At varius sit sit netus at integer vitae posuere id. Nulla
27+
imperdiet vestibulum amet ultrices egestas.
28+
</p>
29+
</div>
30+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
31+
<Card className="rounded-md">
32+
<div className="rounded-t-md bg-black -mt-6 flex items-center justify-center pb-2">
33+
<img src={ElizaBg} alt="Eliza" />
34+
</div>
35+
<CardHeader>
36+
<CardTitle className="text-white text-lg">elizaOS</CardTitle>
37+
</CardHeader>
38+
<CardContent className="space-y-4">
39+
<span className="text-muted-foreground text-sm">
40+
Multi-agent simulation framework designed for creating,
41+
deploying, and managing AI agents across different platforms.
42+
</span>
43+
</CardContent>
44+
<CardFooter>
45+
<Button className="w-full" asChild>
46+
<Link to="/">Select</Link>
47+
</Button>
48+
</CardFooter>
49+
</Card>
50+
<Card className="border-0 rounded-md">
51+
<CardContent className="flex flex-col items-center justify-center h-full min-h-[300px] text-center space-y-2">
52+
<span className="text-muted-foreground text-lg font-semibold">
53+
New Templates soon
54+
</span>
55+
<span className="text-muted-foreground text-sm">
56+
Quis id donec platea phasellus orci purus at. Sollicitudin
57+
lacus morbi est iaculis aliquam.
58+
</span>
59+
</CardContent>
60+
</Card>
61+
<Card className="border-0 rounded-md rounded-lg bg-gradient-to-r from-card to-transparent"></Card>
62+
</div>
63+
</div>
64+
</Layout>
65+
</div>
66+
);
567
};

src/pages/Dashboard/MyApps/emptyState.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const MyAppsEmptyState: FC = () => {
1111
description=" At varius sit sit netus at integer vitae posuere id. Nulla imperdiet vestibulum amet ultrices egestas. Bibendum sed integer ac eget."
1212
>
1313
<Button asChild>
14-
<Link to="/dashboard/create">
14+
<Link to="/create">
1515
Create
1616
<Plus className="ml-2 h-4 w-4" />
1717
</Link>

0 commit comments

Comments
 (0)