Skip to content

Commit

Permalink
fix: layouts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luigieai committed Mar 18, 2023
1 parent 1f933d1 commit bb1beb6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Binary file removed public/profile.jpg
Binary file not shown.
Binary file added public/profile.webp
Binary file not shown.
16 changes: 8 additions & 8 deletions src/components/SideBar.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import Footer from "./Footer.astro";
const verify = (item) => {
let path = Astro.url.pathname.split("/")[1];
if (!path && item == "/index") {
Expand All @@ -10,15 +11,13 @@ const verify = (item) => {
<div class="drawer-side bg-base-200">
<label for="my-drawer" class="drawer-overlay bg-base-200"></label>
<div class="menu p-4 overflow-y-auto w-[19rem] bg-base-200 text-base-content">
<div class="w-fit">
<a href="/">
<div class="avatar transition ease-in-out w-1/2 hover:scale-[102%] block m-auto mt-3 mb-6">
<div>
<img class="mask mask-circle" src="/profile.jpg" alt="profile image" />
</div>
<p class="normal-case text-xl font-semibold">Luigi Oliveira</p>
<div class="w-full">
<div class="avatar transition ease-in-out w-1/2 hover:scale-[102%] block m-auto mt-3 mb-6">
<div>
<img class="mask mask-circle" src="/profile.webp" alt="profile image" />
</div>
</a>
<p class="normal-case inline text-xl font-semibold">Luigi Oliveira</p>
</div>
</div>
<ul class="menu bg-base-200">
<!-- Sidebar content here -->
Expand Down Expand Up @@ -92,5 +91,6 @@ const verify = (item) => {
</svg>
</a>
</div>
<Footer/>
</div>
</div>
2 changes: 1 addition & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { image, title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.prop
<slot />
</main>
</div>
<Footer />

</div>
<SideBar />
</div>
Expand Down

0 comments on commit bb1beb6

Please sign in to comment.