-
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.
Added mobile and desktop versions of navigation
- Loading branch information
Showing
2 changed files
with
80 additions
and
18 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,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> |