-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd07673
commit c6de653
Showing
6 changed files
with
24 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
use leptos::*; | ||
|
||
use crate::frontend::components::{Conversation, Sidebar}; | ||
use crate::frontend::components::Conversation; | ||
|
||
#[component] | ||
pub(crate) fn Chat() -> impl IntoView { | ||
view! { | ||
<div class="overflow-hidden w-full h-screen relative flex"> | ||
<div class="dark hidden flex-shrink-0 bg-gray-900 md:flex md:w-[260px] md:flex-col"> | ||
<div class="flex h-full min-h-0 flex-col "> | ||
<Sidebar/> | ||
</div> | ||
</div> | ||
<Conversation/> | ||
</div> | ||
} | ||
view! { <Conversation/> } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
use leptos::*; | ||
|
||
use crate::frontend::components::{Conversation, Sidebar}; | ||
|
||
// TODO: create sidebar once and pass it as a context in the app | ||
#[component] | ||
pub(crate) fn Home() -> impl IntoView { | ||
view! { | ||
<div class="overflow-hidden w-full h-screen relative flex"> | ||
<div class="dark hidden flex-shrink-0 bg-gray-900 md:flex md:w-[260px] md:flex-col"> | ||
<div class="flex h-full min-h-0 flex-col "> | ||
<Sidebar/> | ||
</div> | ||
</div> | ||
// TODO: create NewConversation view | ||
// <Conversation/> | ||
<div class="flex max-w-full dark:bg-gray-800"> | ||
<div class="h-10">A</div> | ||
<div class="h-10">B</div> | ||
<div class="h-10">C</div> | ||
</div> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
mod chat; | ||
mod home; | ||
mod not_found; | ||
|
||
pub(crate) use chat::Chat; | ||
pub(crate) use home::Home; | ||
pub(crate) use not_found::NotFound; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters