Skip to content

Commit

Permalink
Add basic mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollaston committed Oct 19, 2024
1 parent d0e45cb commit 3ddf117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use leptos_router::Outlet;
#[component]
pub fn Layout() -> impl IntoView {
view! {
<div class="flex flex-row min-h-screen overflow-hidden">
<div class="flex flex-col lg:flex-row min-h-screen overflow-hidden">
<Sidebar />
<Outlet />
</div>
Expand All @@ -14,7 +14,7 @@ pub fn Layout() -> impl IntoView {
#[component]
fn Sidebar() -> impl IntoView {
view! {
<div class="flex flex-col h-screen overflow-hidden justify-between w-32 bg-[#fee5b0] drop-shadow-xl dark:bg-indigo-900">
<div class="flex flex-col h-min lg:h-screen overflow-hidden justify-between lg:w-32 bg-[#fee5b0] drop-shadow-xl dark:bg-indigo-900">
<ul class="m-2 p-2">
<li class="font-semibold text-lg text-stone-800 hover:text-blue-700 dark:text-stone-100 dark:hover:text-[#fd8a04]"><a href="/">HOME</a></li>
<li class="font-semibold text-lg text-stone-800 hover:text-blue-700 dark:text-stone-100 dark:hover:text-[#fd8a04]"><a href="/blog">BLOG</a></li>
Expand Down

0 comments on commit 3ddf117

Please sign in to comment.