-
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.
Merge pull request #15 from fuelviews/update-nav-func
Add laravel-forms to tailwind.config.js file, update phone config, update classes in blade files, update logo images, update navigation scroll behavior, update phone button behavior, add pre scrolled routes.
- Loading branch information
Showing
11 changed files
with
101 additions
and
92 deletions.
There are no files selected for viewing
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
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
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
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
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,6 +1,6 @@ | ||
<button @click="open = ! open" class="inline-flex items-center justify-center rounded-md text-gray-900 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"> | ||
<button @click="dropdownOpen = !dropdownOpen" class="inline-flex items-center justify-center rounded-standard text-gray-900 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"> | ||
<svg class="h-9 w-9" stroke="currentColor" fill="none" viewBox="0 0 24 24"> | ||
<path :class="{'hidden': open, 'inline-flex': ! open }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /> | ||
<path :class="{'hidden': ! open, 'inline-flex': open }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> | ||
<path :class="{'hidden': dropdownOpen, 'inline-flex': ! dropdownOpen }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /> | ||
<path :class="{'hidden': !dropdownOpen, 'inline-flex': dropdownOpen }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" /> | ||
</svg> | ||
</button> |
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,13 @@ | ||
<div {{ $attributes->only(['class']) }} | ||
x-data="{ scrolled: false }" | ||
x-init=" | ||
scrolled = window.pageYOffset > window.innerHeight * 0.05; | ||
window.addEventListener('scroll', () => { | ||
scrolled = window.pageYOffset > window.innerHeight * 0.05; | ||
}); | ||
"> | ||
<div {{ $attributes->only(['class']) }}> | ||
<a href="{{ config('app.url') }}"> | ||
<span class="sr-only"> | ||
{{ config('app.name') }} | ||
</span> | ||
@if(Navigation::isLogoSwapEnabled() && Navigation::isTransparentNavBackground()) | ||
<template x-if="!scrolled"> | ||
<img {{ glide()->src(Navigation::getTransparencyLogo(), lazy: false) }} loading="eager" class="{{ $attributes->get('logoClass', 'w-24 lg:w-28 h-auto my-auto') }}" alt="{{ $attributes->get('alt', config('app.name')) }}" /> | ||
</template> | ||
<template x-if="scrolled"> | ||
<img {{ glide()->src(Navigation::getDefaultLogo()) }} loading="eager" class="{{ $attributes->get('logoClass', 'w-24 lg:w-28 h-auto my-auto') }}" alt="{{ $attributes->get('alt', config('app.name')) }}" /> | ||
</template> | ||
<img x-show="!scrolled" {{ glide()->src(Navigation::getTransparencyLogo(), lazy: false) }} loading="eager" class="{{ $attributes->get('logoClass', 'w-36 md:w-64 h-auto my-auto') }}" alt="{{ $attributes->get('alt', config('app.name')) }}" /> | ||
<img x-show="scrolled" {{ glide()->src(Navigation::getDefaultLogo(), lazy: false) }} loading="eager" class="{{ $attributes->get('logoClass', 'w-36 md:w-64 h-auto my-auto') }}" alt="{{ $attributes->get('alt', config('app.name')) }}" /> | ||
@else | ||
<template x-if="true"> | ||
<img {{ glide()->src(Navigation::getDefaultLogo(), lazy: false) }} loading="eager" class="{{ $attributes->get('logoClass', 'w-24 lg:w-28 h-auto my-auto') }}" alt="{{ $attributes->get('alt', config('app.name')) }}" /> | ||
</template> | ||
<img {{ glide()->src(Navigation::getDefaultLogo(), lazy: false) }} loading="eager" class="{{ $attributes->get('logoClass', 'w-36 md:w-64 h-auto my-auto') }}" alt="{{ $attributes->get('alt', config('app.name')) }}" /> | ||
@endif | ||
</a> | ||
</div> |
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
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
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,56 +1,54 @@ | ||
<!-- Navigation Scroll/Transparency --> | ||
<x-navigation::navigation-scroll :isTransparent="Navigation::isTransparentNavBackground()"> | ||
|
||
<!-- Top Nav Bar (Shows on Mobile) --> | ||
<x-navigation::top-bar align="center" /> | ||
|
||
<!-- Responsive/Desktop Navigation Menu --> | ||
<div class="max-w-7xl mx-auto px-2 lg:px-4 py-2 lg:py-4"> | ||
<div class="flex justify-between items-center"> | ||
|
||
<!-- Logo (Shows on Mobile) --> | ||
<div class="shrink-0 flex items-center"> | ||
<x-navigation::logo /> | ||
</div> | ||
|
||
<!-- Desktop Navigation --> | ||
<div class="md:flex md:flex-col md:items-end md:justify-between"> | ||
<div class="hidden md:flex md:flex-row md:space-x-4 md:order-2"> | ||
<x-navigation::desktop.desktop-navigation /> | ||
</div> | ||
|
||
<!-- Responsive/Desktop CTA Buttons --> | ||
<div class="flex items-center space-x-4 justify-end md:order-1 md:pb-2"> | ||
<template x-if="!isMobile || !showEstimate"> | ||
<x-navigation::phone-button /> | ||
</template> | ||
<template x-if="!isMobile || showEstimate"> | ||
<x-navigation::free-estimate-button /> | ||
</template> | ||
</div> | ||
</div> | ||
|
||
<!-- Hamburger (Shows on Mobile) --> | ||
<div class="flex items-center md:hidden space-x-4"> | ||
<button @click="open = !open"> | ||
<x-navigation::hamburger-button /> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<!-- Mobile Navigation Menu --> | ||
<div x-show="open" @click.away="open = false" class="md:hidden bg-white overflow-y-auto max-h-screen -mx-2 mt-2"> | ||
|
||
|
||
<div class="border-t border-gray-300"> | ||
<x-navigation::mobile.mobile-navigation /> | ||
|
||
<!-- Mobile CTA Buttons --> | ||
<div class="ml-2 py-4 space-y-4"> | ||
<x-navigation::phone-button /> | ||
<x-navigation::free-estimate-button /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- Top Nav Bar (Shows on Mobile) --> | ||
<x-navigation::top-bar align="center" /> | ||
|
||
<!-- Responsive/Desktop Navigation Menu --> | ||
<div class="max-w-standard mx-auto px-2 lg:px-4 py-2 lg:py-4"> | ||
<div class="flex justify-between items-center"> | ||
|
||
<!-- Logo (Shows on Mobile) --> | ||
<div class="shrink-0 flex items-center"> | ||
<x-navigation::logo /> | ||
</div> | ||
|
||
<!-- Desktop Navigation --> | ||
<div class="md:flex md:flex-col md:items-end md:justify-between"> | ||
<div class="hidden md:flex md:flex-row md:space-x-4 md:order-2"> | ||
<x-navigation::desktop.desktop-navigation /> | ||
</div> | ||
|
||
<!-- Responsive/Desktop CTA Buttons --> | ||
<div class="flex items-center space-x-4 justify-end md:order-1 md:pb-2"> | ||
<template x-if="!isMobile || !showEstimate"> | ||
<x-navigation::phone-button /> | ||
</template> | ||
<template x-if="!isMobile || showEstimate"> | ||
<x-navigation::free-estimate-button /> | ||
</template> | ||
</div> | ||
</div> | ||
|
||
<!-- Hamburger (Shows on Mobile) --> | ||
<div class="flex items-center md:hidden space-x-4"> | ||
<button @click="dropdownOpen = ! dropdownOpen"> | ||
<x-navigation::hamburger-button /> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<!-- Mobile Navigation Menu --> | ||
<div x-show="dropdownOpen" @click.away="dropdownOpen = false" class="md:hidden bg-white overflow-y-auto max-h-screen -mx-2 mt-2"> | ||
<div class="border-t border-gray-300"> | ||
<x-navigation::mobile.mobile-navigation /> | ||
|
||
<!-- Mobile CTA Buttons --> | ||
<div class="ml-2 py-4 space-y-4"> | ||
<x-navigation::phone-button /> | ||
<x-navigation::free-estimate-button /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</x-navigation::navigation-scroll> |
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
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