Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Folder structure planning and app layout creation (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
multipletwigs authored May 29, 2024
1 parent 4ff3aee commit bfa7039
Show file tree
Hide file tree
Showing 24 changed files with 581 additions and 41 deletions.
3 changes: 3 additions & 0 deletions packages/app-akeru/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-tailwindcss"]
}
5 changes: 5 additions & 0 deletions packages/app-akeru/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
},
"dependencies": {
"@radix-ui/react-menubar": "^1.0.4",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand All @@ -31,6 +34,8 @@
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"tailwindcss": "^3.4.1",
"typescript": "^5.4.5"
}
Expand Down
161 changes: 161 additions & 0 deletions packages/app-akeru/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions packages/app-akeru/src/app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import React from 'react'
import Header from '../components/header'
import React from "react";
import Header from "../features/app-header/header";
import { Separator } from "@/components/ui/separator";

const DashboardLayout = () => {
const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
return (
<Header></Header>
)
}
<div className="h-screen flex flex-col">
<Header />
<Separator orientation="horizontal" />
<div className="flex-grow overflow-scroll p-5">{children}</div>
</div>
);
};

export default DashboardLayout
export default DashboardLayout;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const AssistantsListItem = () => {
return (
<div>AssistantsListItem</div>
)
}

export default AssistantsListItem
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from "react";

const AssistantsList = () => {
return <div className="w-96 rounded-md bg-white shadow-md p-4">

</div>;
};

export default AssistantsList;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const ChatDisplay = () => {
return (
<div className="bg-slate-200 h-full rounded-lg"></div>
)
}

export default ChatDisplay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Input } from '@/components/ui/input'
import { Send } from 'lucide-react'
import React from 'react'

const ChatInput = () => {
return (
<Input placeholder={'Enter your message'} endIcon={Send}/>
)
}

export default ChatInput
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import ChatInput from './chat-input'
import ChatDisplay from './chat-display'

const ConversationArea = () => {
return (
<div className="flex-grow h-full flex flex-col gap-4">
<ChatDisplay/>
<ChatInput/>
</div>
)
}

export default ConversationArea
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { ThreadsListItemProps } from "./threads-list-item";

export const THREADS_LIST_MOCK_DATA: ThreadsListItemProps[] = [
{
title: "Understanding React Hooks",
description: "A deep dive into the use of hooks in React for state and lifecycle management.",
date: "2024-05-01"
},
{
title: "Announcing TypeScript 5.0",
description: "Explore the new features and improvements in the latest TypeScript release.",
date: "2024-04-15"
},
{
title: "Getting Started with Python",
description: "An introductory guide to programming in Python for beginners.",
date: "2024-03-20"
},
{
title: "AI Breakthrough in Natural Language Processing",
description: "How the latest advancements in AI are revolutionizing language understanding.",
date: "2024-02-10"
},
{
title: "Join the Annual Developer Conference",
description: "Meet and network with other developers at this year's conference. Keynotes, workshops, and more!",
date: "2024-06-05"
},
{
title: "Hiring Frontend Engineers",
description: "We are looking for talented frontend engineers to join our team. Apply now!",
date: "2024-05-20"
},
{
title: "Top 10 Books for Software Engineers",
description: "A curated list of must-read books for anyone in the software development field.",
date: "2024-01-30"
},
{
title: "Critical Security Patch Released",
description: "A new security patch has been released to address vulnerabilities in the system. Update immediately.",
date: "2024-04-05"
}
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";

export interface ThreadsListItemProps {
title: string;
description: string;
date: string;
isActive?: boolean;
}

const ThreadsListItem = (props: ThreadsListItemProps) => {
return (
<div className="">
<p className="overflow-hidden whitespace-nowrap text-sm">{props.title}</p>
</div>
);
};

export default ThreadsListItem;
Loading

0 comments on commit bfa7039

Please sign in to comment.