Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create supervisor component #21

Merged
merged 16 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"prettier": "@solvro/config/prettier",
"dependencies": {
"@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-separator": "^1.1.0",
Expand Down
210 changes: 210 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/app/chat/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function ChatLayout({
return (
<SidebarProvider>
<ChatSidebar />
<div className="flex h-screen w-full flex-col bg-chat-background text-white">
<div className="flex h-full min-h-dvh w-full flex-col bg-chat-background text-white">
<ClientOnly>
<SidebarTrigger className="border-0" />
<div className="flex h-screen w-full flex-col bg-chat-background text-white">
Expand Down
49 changes: 47 additions & 2 deletions src/app/chat/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,54 @@
import { Chat } from "@/components/chat";
import { Chat, PromochatorIcon } from "@/components/chat";
import { Supervisor } from "@/components/supervisor";

export default function ChatPage() {
return (
<div className="flex flex-grow items-center justify-center">
<div className="flex flex-grow flex-col items-center justify-center gap-4">
<Chat />
<div className="w-full max-w-7xl space-y-4 p-8">
<div className="flex items-center gap-4">
<PromochatorIcon
imageWidth={36}
imageHeight={36}
imageClassName="py-2 px-1"
/>
<p className="rounded-2xl bg-message-primary px-4 py-3">
Comment on lines +10 to +14
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: This icon gets really tiny on mobile. Just noting this since this whole markup is just for showcasing the component, this should be handled in #45

Oto promotorzy, którzy mogą Ci pomóc w realizacji tego tematu:
</p>
</div>
<Supervisor
name="Dr hab. Anna Nowak"
faculty="Faculty of Computer Science"
papers={[
{
title: "Modern Web Development Frameworks",
description:
"This paper discusses various frameworks used in modern web development, comparing their performance and usability.",
},
{
title: "Responsive Design Techniques",
description:
"An exploration of techniques for creating responsive web applications that work on various devices.",
},
]}
/>
<Supervisor
name="Dr hab. Anna Nowak"
faculty="Faculty of Computer Science"
papers={[
{
title: "Modern Web Development Frameworks",
description:
"This paper discusses various frameworks used in modern web development, comparing their performance and usability.",
},
{
title: "Responsive Design Techniques",
description:
"An exploration of techniques for creating responsive web applications that work on various devices.",
},
]}
/>
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion src/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function PromochatorLogo() {
);
}

function PromochatorIcon({
export function PromochatorIcon({
imageWidth,
imageHeight,
imageClassName,
Expand Down
Loading
Loading