Skip to content

Commit

Permalink
Added mobile and desktop versions of navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfox committed Jul 14, 2024
1 parent b6d8770 commit 69222d4
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 18 deletions.
4 changes: 4 additions & 0 deletions src/assets/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 76 additions & 18 deletions src/components/Navigation.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,84 @@
<template>
<!-- Desktop Navigation -->
<nav
class="flex text-black absolute bg-white xl:bottom-20 xl:left-24 xl:border-0 xl:w-auto w-auto bottom-8 left-4 rounded-sm"
class="hidden lg:flex justify-between text-black absolute xl:bottom-20 xl:left-24 xl:border-0 xl:w-full w-full bottom-16 left-4 rounded-sm"
>
<a href="/">
<img
src="../assets/logo.svg"
alt="Art Institute Chicago"
class="h-full xl:w-32 w-24 object-cover rounded-l-sm"
/>
</a>

<div class="w-full justify-between flex shadow-lg">
<a
class="flex-p-8 my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 px-6 lg:px-16 object-center w-full h-full text-center flex content-center transition-all"
href="/visit"
><span class="mx-auto my-auto">Visit</span></a
<div class="bg-white flex shadow-lg">
<a href="/">
<img
src="../assets/logo.svg"
alt="Art Institute Chicago"
class="h-full xl:w-32 w-32 object-cover rounded-l-sm"
/>
</a>
<div class="w-full justify-between flex border border-neutral-200">
<a
class="flex-p-8 my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 px-6 lg:px-16 object-center w-full h-full text-center flex content-center transition-all"
href="/visit"
><span class="mx-auto my-auto">Visit</span></a
>
<a
class="flex-p-8 my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 px-6 lg:px-16 object-center w-full h-full text-center flex content-center transition-all"
href="/about"
><span class="mx-auto my-auto">About</span></a
>
</div>
</div>
<div class="flex">
<div
class="w-full bg-[#A6243B] justify-between mr-8 rounded-sm xl:mr-32 flex shadow-lg"
>
<a
class="flex-p-8 my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 px-6 lg:px-16 object-center w-full h-full text-center flex content-center transition-all"
href="/about"
><span class="mx-auto my-auto">About</span></a
<a
class="my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 p-6 object-center xl:size-24 size-24 text-center flex content-center transition-all"
href="/about"
>
<img
src="../assets/search.svg"
alt="Art Institute Chicago"
class="h-5 mx-auto my-auto object-contain rounded-l-sm"
/></a>
</div>
</div>
</nav>
<!-- Mobile Navigation -->
<nav
class="flex justify-between lg:hidden text-black absolute xl:bottom-20 xl:left-24 xl:border-0 w-full top-8 left-4 rounded-sm"
>
<div class="bg-white flex shadow-lg">
<a href="/">
<img
src="../assets/logo.svg"
alt="Art Institute Chicago"
class="h-full w-32 object-cover rounded-l-sm"
/>
</a>
<div class="w-full justify-between flex border border-neutral-200">
<a
class="flex-p-8 my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 px-6 object-center w-full h-full text-center flex content-center transition-all"
href="/visit"
><span class="mx-auto my-auto">Visit</span></a
>
<a
class="flex-p-8 my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 px-6 object-center w-full h-full text-center flex content-center transition-all"
href="/about"
><span class="mx-auto my-auto">About</span></a
>
</div>
</div>
<div class="flex w-28">
<div
class="w-full bg-[#A6243B] justify-between mr-8 rounded-sm xl:mr-32 flex shadow-lg"
>
<a
class="my-auto mx-auto font-semibold text-sm lg:text-lg hover:bg-neutral-200 object-center w-full text-center flex content-center transition-all"
href="/about"
>
<img
src="../assets/search.svg"
alt="Art Institute Chicago"
class="h-4 mx-auto my-auto object-contain rounded-l-sm"
/></a>
</div>
</div>
</nav>
</template>

0 comments on commit 69222d4

Please sign in to comment.