Skip to content

Commit ff32c15

Browse files
committed
feat: make mobile navigation menu 100% width and docked at the bottom
1 parent b160370 commit ff32c15

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

src/App.svelte

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -498,44 +498,44 @@
498498
</div>
499499

500500
<!-- Footer details -->
501-
<footer class="text-xs text-slate-500 font-hand text-center py-2 shrink-0 mb-16 md:mb-2">
501+
<footer class="text-xs text-slate-500 font-hand text-center py-2 shrink-0 mb-20 md:mb-2">
502502
© {new Date().getFullYear()} {personalInfo.name}. Conçu avec Svelte 5 & Bun. UI Tableau Blanc.
503503
</footer>
504504
</main>
505505

506-
<!-- Mobile Floating Bottom Navbar -->
507-
<div class="md:hidden fixed bottom-5 left-1/2 -translate-x-1/2 z-50 bg-white/95 backdrop-blur-md border-2 border-slate-800 rounded-2xl px-3 py-2 flex items-center gap-1.5 shadow-xl border-sketch font-hand text-sm select-none">
506+
<!-- Mobile Docked Bottom Navbar -->
507+
<div class="md:hidden fixed bottom-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-md border-t-2 border-slate-800 flex items-center justify-around pt-2.5 pb-4 px-2 shadow-[0_-4px_16px_rgba(0,0,0,0.08)] font-hand text-sm select-none">
508508
<button
509509
onclick={() => activeTab = "about"}
510-
class="flex items-center gap-1.5 px-3 py-1.5 rounded-xl transition-all duration-150 cursor-pointer
511-
{activeTab === 'about' ? 'text-slate-900 font-bold bg-yellow-100 border border-yellow-400 rotate-1' : 'text-slate-500 hover:text-slate-850 hover:bg-slate-50'}"
510+
class="flex flex-col items-center gap-1 py-1 rounded-xl transition-all duration-150 cursor-pointer flex-1 text-center
511+
{activeTab === 'about' ? 'text-slate-900 font-bold bg-yellow-100/90 scale-102 border-b-2 border-yellow-400/80' : 'text-slate-500 hover:text-slate-850'}"
512512
>
513-
<Papicon icon="paper" size={16} />
514-
{#if activeTab === "about"}<span class="text-xs">Bio</span>{/if}
513+
<Papicon icon="paper" size={18} />
514+
<span class="text-xs tracking-tight">Bio</span>
515515
</button>
516516
<button
517517
onclick={() => activeTab = "resume"}
518-
class="flex items-center gap-1.5 px-3 py-1.5 rounded-xl transition-all duration-150 cursor-pointer
519-
{activeTab === 'resume' ? 'text-slate-900 font-bold bg-pink-100 border border-pink-400 rotate--1' : 'text-slate-500 hover:text-slate-850 hover:bg-slate-50'}"
518+
class="flex flex-col items-center gap-1 py-1 rounded-xl transition-all duration-150 cursor-pointer flex-1 text-center
519+
{activeTab === 'resume' ? 'text-slate-900 font-bold bg-pink-100/90 scale-102 border-b-2 border-pink-400/80' : 'text-slate-500 hover:text-slate-850'}"
520520
>
521-
<Papicon icon="graduation-hat" size={16} />
522-
{#if activeTab === "resume"}<span class="text-xs">Parcours</span>{/if}
521+
<Papicon icon="graduation-hat" size={18} />
522+
<span class="text-xs tracking-tight">Parcours</span>
523523
</button>
524524
<button
525525
onclick={() => activeTab = "portfolio"}
526-
class="flex items-center gap-1.5 px-3 py-1.5 rounded-xl transition-all duration-150 cursor-pointer
527-
{activeTab === 'portfolio' ? 'text-slate-900 font-bold bg-blue-100 border border-blue-400 rotate-1' : 'text-slate-500 hover:text-slate-850 hover:bg-slate-50'}"
526+
class="flex flex-col items-center gap-1 py-1 rounded-xl transition-all duration-150 cursor-pointer flex-1 text-center
527+
{activeTab === 'portfolio' ? 'text-slate-900 font-bold bg-blue-100/90 scale-102 border-b-2 border-blue-400/80' : 'text-slate-500 hover:text-slate-850'}"
528528
>
529-
<Papicon icon="grid" size={16} />
530-
{#if activeTab === "portfolio"}<span class="text-xs">Projets</span>{/if}
529+
<Papicon icon="grid" size={18} />
530+
<span class="text-xs tracking-tight">Projets</span>
531531
</button>
532532
<button
533533
onclick={() => activeTab = "contact"}
534-
class="flex items-center gap-1.5 px-3 py-1.5 rounded-xl transition-all duration-150 cursor-pointer
535-
{activeTab === 'contact' ? 'text-slate-900 font-bold bg-green-100 border border-green-400 rotate--1' : 'text-slate-500 hover:text-slate-850 hover:bg-slate-50'}"
534+
class="flex flex-col items-center gap-1 py-1 rounded-xl transition-all duration-150 cursor-pointer flex-1 text-center
535+
{activeTab === 'contact' ? 'text-slate-900 font-bold bg-green-100/90 scale-102 border-b-2 border-green-400/80' : 'text-slate-500 hover:text-slate-850'}"
536536
>
537-
<Papicon icon="mail" size={16} />
538-
{#if activeTab === "contact"}<span class="text-xs">Contact</span>{/if}
537+
<Papicon icon="mail" size={18} />
538+
<span class="text-xs tracking-tight">Contact</span>
539539
</button>
540540
</div>
541541

0 commit comments

Comments
 (0)