Skip to content

Commit

Permalink
Update composer.json description and remove unused repository.
Browse files Browse the repository at this point in the history
Update footer logo classes and add social media icons.
Update logo classes and add social media icons.
Update navigation scroll background color and text color.
Add rocketman social media icon.
  • Loading branch information
thejmitchener committed Nov 14, 2024
1 parent f11f3f6 commit dc93918
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 44 deletions.
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fuelviews/laravel-navigation",
"description": "Fuelviews laravel navigation package",
"description": "Laravel Navigation Package",
"keywords": [
"Fuelviews",
"laravel",
Expand All @@ -15,12 +15,6 @@
"role": "Developer"
}
],
"repositories": [
{
"type": "vcs",
"url": "[email protected]:fuelviews/laravel-forms.git"
}
],
"require": {
"php": "^8.2",
"spatie/laravel-package-tools": "^1.16"
Expand Down
68 changes: 39 additions & 29 deletions resources/views/components/footer/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,50 +1,60 @@
<div>
@php
/* social media accounts */
if (config('businessinfo.social_media') !== null) {
$socialMedia = config('businessinfo.social_media');
}
@php
/* social media accounts */
if (config('businessinfo.social_media') !== null) {
$socialMedia = config('businessinfo.social_media');
}
$logoShape = Navigation::getLogoShape();
$logoClasses = '';
if ($logoShape === 'horizontal') {
$logoClasses = 'mx-auto w-64 lg:w-72';
} elseif ($logoShape === 'vertical') {
$logoClasses = 'mx-auto w-32 lg:w-48';
} elseif ($logoShape === 'square') {
$logoClasses = 'mx-auto w-48 lg:w-64';
}
@endphp
$logoShape = Navigation::getLogoShape();
$logoClasses = '';
if ($logoShape === 'horizontal') {
$logoClasses = 'mx-auto w-64 lg:w-72';
} elseif ($logoShape === 'vertical') {
$logoClasses = 'mx-auto w-32 lg:w-48';
} elseif ($logoShape === 'square') {
$logoClasses = 'mx-auto w-48 lg:w-64';
}
@endphp

<div>
<footer class="bg-footer-back">
<!-- this is important -->
<div class="mx-auto max-w-waistline px-4 pb-6 pt-16 sm:px-6 lg:px-3 lg:pt-24">
<div class="grid grid-cols-1 gap-8 lg:grid-cols-2">
<div>
<div class="flex justify-start text-footer-type">
@if (Navigation::isLogoSwapEnabled() && Navigation::isTransparentNavBackground())
@if (Navigation::getDefaultLogo() && Navigation::isLogoSwapEnabled() && Navigation::isTransparentNavBackground())
<img
{{ glide()->src(Navigation::getTransparencyLogo()) }}
class="{{ $logoClasses }}"
alt="{{ config('app.name') }}"
{{ glide()->src(Navigation::getTransparencyLogo()) }}
class="{{ $logoClasses }}"
alt="{{ config('app.name') }}"
/>
@else
<img
{{ glide()->src(Navigation::getDefaultLogo()) }}
class="{{ $logoClasses }}"
alt="{{ config('app.name') }}"
/>
<div class="{{ $logoClasses }}">
<x-navigation::social.rocketman />
</div>
@endif
</div>

<div class="mx-auto flex justify-center gap-x-9 pt-16 lg:pt-8">
@isset($socialMedia)
@isset($socialMedia['youtube'])
<x-navigation::social.youtube :socialMedia="$socialMedia['youtube']" />
@endisset
@isset($socialMedia['facebook'])
<x-navigation::social.facebook :socialMedia="$socialMedia['facebook']" />
@endisset
@isset($socialMedia['instagram'])
<x-navigation::social.instagram :socialMedia="$socialMedia['instagram']" />
@endisset
@isset($socialMedia['xitter'])
<x-navigation::social.xitter :socialMedia="$socialMedia['xitter']" />
@endisset
@isset($socialMedia['linkedin'])
<x-navigation::social.linkedin :socialMedia="$socialMedia['linkedin']" />
@endisset
@isset($socialMedia['tiktok'])
<x-navigation::social.tiktok :socialMedia="$socialMedia['tiktok']" />
@endisset
@endisset
</div>
</div>
Expand Down Expand Up @@ -104,10 +114,10 @@ class="flex flex-col justify-center md:flex-row md:justify-between md:flex-wrap
<p class="text-sm text-legal-type">
<span class="block sm:inline text-gray-400/75">
All rights reserved
<span>&middot;</span>
<span>.</span>
</span>

@if(Route::is('terms-and-conditions'))
@if(Route::has('terms-and-conditions'))
<a class="inline-block text-legal-link underline transition hover:text-legal-link/75"
href="{{ route('terms-and-conditions') }}"
title="Terms & Conditions"
Expand All @@ -118,7 +128,7 @@ class="flex flex-col justify-center md:flex-row md:justify-between md:flex-wrap
<span>&middot;</span>
@endif

@if(Route::is('privacy-policy'))
@if(Route::has('privacy-policy'))
<a class="inline-block text-legal-link underline transition hover:text-legal-link/75"
href="{{ route('privacy-policy') }}"
title="Privacy Policy"
Expand All @@ -130,7 +140,7 @@ class="flex flex-col justify-center md:flex-row md:justify-between md:flex-wrap
@endif


@if(Route::is('sitemap'))
@if(Route::has('sitemap'))
<a class="inline-block text-legal-link underline transition hover:text-legal-link/75"
href="{{ route('sitemap') }}"
title="Sitemap"
Expand Down
28 changes: 22 additions & 6 deletions resources/views/components/logo.blade.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
@php
$logoShape = Navigation::getLogoShape();
$logoClasses = '';
if ($logoShape === 'horizontal') {
$logoClasses = 'mx-auto w-24 lg:w-40';
} elseif ($logoShape === 'vertical') {
$logoClasses = 'mx-auto w-24 lg:w-32';
} elseif ($logoShape === 'square') {
$logoClasses = 'mx-auto w-24 lg:w-32';
}
@endphp

<div {{ $attributes->only(['class']) }}>
<a href="{{ config('app.url') }}">
<span class="sr-only">
{{ config('app.name') }}
</span>
@if(Navigation::isLogoSwapEnabled() && Navigation::isTransparentNavBackground())
@if(Navigation::getDefaultLogo() && Navigation::isLogoSwapEnabled() && Navigation::isTransparentNavBackground())
<img x-show="!scrolled"
{{ glide()->src(Navigation::getTransparencyLogo(), 1000, lazy: false) }} loading="eager"
class="{{ $attributes->get('logoClass', 'w-36 md:w-64 h-auto my-auto') }}"
class="{{ $attributes->get('logoClass', $logoClasses) }}"
alt="{{ $attributes->get('alt', config('app.name')) }}"/>

<img x-show="scrolled" {{ glide()->src(Navigation::getDefaultLogo(), 1000, lazy: false) }} loading="eager"
class="{{ $attributes->get('logoClass', 'w-36 md:w-64 h-auto my-auto') }}"
class="{{ $attributes->get('logoClass', $logoClasses) }}"
alt="{{ $attributes->get('alt', config('app.name')) }}"/>
@else
<img {{ glide()->src(Navigation::getDefaultLogo(), 1000, lazy: false) }} loading="eager"
class="{{ $attributes->get('logoClass', 'w-36 md:w-64 h-auto my-auto') }}"
alt="{{ $attributes->get('alt', config('app.name')) }}"/>
<div x-show="!scrolled" class="{{ $attributes->get('logoClass', $logoClasses.' text-white') }}">
<x-navigation::social.rocketman />
</div>
<div x-show="scrolled" class="{{ $attributes->get('logoClass', $logoClasses.' text-black') }}">
<x-navigation::social.rocketman />
</div>
@endif
</a>
</div>
4 changes: 2 additions & 2 deletions resources/views/components/navigation-scroll.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
});
"
:class="{
'bg-white text-gray-700': scrolled || {{ Navigation::getPreScrolledRoute() }},
'{{ Navigation::isTransparentNavBackground() ? 'bg-transparent text-white' : 'bg-white text-gray-700' }}': !scrolled && !{{ Navigation::getPreScrolledRoute() }}
'bg-nav text-nav-type': scrolled || {{ Navigation::getPreScrolledRoute() }},
'{{ Navigation::isTransparentNavBackground() ? 'bg-transparent text-nav-type-trans' : 'bg-nav text-nav-type' }}': !scrolled && !{{ Navigation::getPreScrolledRoute() }}
}"
class="duration-600 fixed inset-x-0 top-0 z-40 drop-shadow-2xl transition-all"
x-cloak
Expand Down
26 changes: 26 additions & 0 deletions resources/views/components/social/rocketman.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<svg xmlns="http://www.w3.org/2000/svg" height="6.5rem" viewBox="0 0 300 360" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0,360) scale(0.1,-0.1)" fill="currentColor" stroke="none">
<path d="M2258 3043 l-3 -48 -62 0 c-51 0 -62 -3 -59 -15 3 -8 17 -75 31 -149 19 -96 24 -136 16 -144 -21 -21 -13 -74 14 -95 l24 -19 -62 -186 -62 -185 -28 24 c-15 13 -36 24 -47 24 -22 0 -44 52 -28 68 6 6 3 14 -9 23 -10 8 -29 39 -42 69 -60 143 -198 345 -314 460 -108 106 -139 102 -262 -37 -106 -119 -200 -258 -261 -388 -26 -55 -52 -103 -57 -107 -6 -3 -11 -19 -12 -35 -1 -15 -16 -80 -33 -143 -16 -63 -36 -169 -43 -235 -11 -104 -15 -123 -36 -140 -47 -41 -66 -157 -42 -262 10 -44 8 -60 -31 -200 -43 -152 -43 -153 -72 -153 -40 0 -81 -41 -73 -73 6 -20 -7 -37 -84 -108 l-90 -84 15 -69 c8 -39 17 -72 20 -75 11 -11 219 -70 225 -63 4 4 14 30 24 57 17 47 38 73 75 95 14 7 15 2 6 -49 -11 -66 -1 -130 20 -138 8 -3 59 6 113 21 113 30 122 31 115 12 -6 -16 12 -56 30 -68 6 -4 55 -8 109 -8 61 0 97 -4 97 -11 0 -5 -5 -30 -11 -54 -17 -68 -7 -90 48 -109 79 -27 193 -16 236 22 19 17 19 21 1 120 l-6 32 99 0 c87 0 102 3 118 20 9 10 18 31 18 45 0 14 4 25 9 25 6 0 57 -12 114 -27 127 -34 129 -33 129 75 0 67 -4 86 -33 144 -22 44 -50 82 -83 111 l-50 44 35 134 c53 199 67 304 72 509 4 148 8 186 19 193 39 21 58 139 36 217 -5 18 12 82 61 231 l69 206 40 6 c49 6 69 22 69 53 0 14 18 41 48 71 26 26 58 69 72 96 18 33 29 45 40 41 46 -19 47 -19 83 91 25 74 32 107 24 110 -7 1 -86 17 -177 35 -91 17 -173 33 -182 36 -14 4 -17 -3 -20 -43z m91 1 c24 -5 31 -12 31 -30 0 -22 -3 -23 -46 -20 -53 4 -58 8 -49 35 7 23 15 24 64 15z m142 -30 c5 -3 -18 -121 -26 -131 -1 -2 -16 3 -33 9 -34 13 -38 27 -26 101 7 37 7 37 43 31 20 -4 39 -8 42 -10z m77 -14 c41 -1 45 -14 20 -86 -12 -38 -24 -71 -25 -72 -1 -2 -18 2 -38 9 -25 10 -34 18 -29 29 3 8 11 41 17 73 8 43 14 56 25 52 7 -3 21 -5 30 -5z m-208 -54 c0 -13 -3 -38 -7 -56 l-6 -33 -58 7 c-67 6 -90 -9 -28 -19 49 -8 69 -40 51 -80 -12 -26 -4 -33 16 -13 7 7 12 26 12 44 0 23 5 33 20 37 12 3 20 14 20 27 0 12 3 20 8 18 4 -1 28 -11 55 -22 26 -10 47 -22 47 -26 0 -13 -77 -125 -103 -148 l-25 -24 -30 22 c-16 12 -50 24 -74 27 l-43 5 -23 122 c-12 66 -22 124 -22 129 0 4 43 7 95 7 93 0 95 0 95 -24z m-732 -122 c66 -68 232 -294 232 -315 0 -3 -35 1 -77 9 -107 20 -443 20 -540 0 -40 -8 -73 -13 -73 -12 0 2 19 34 41 71 58 94 121 175 203 261 96 99 105 99 214 -14z m668 -160 c60 -29 56 -84 -6 -84 -23 1 -24 2 -7 14 16 13 16 15 2 30 -9 9 -27 16 -40 16 -19 0 -22 -4 -17 -22 6 -25 -12 -17 -28 12 -7 14 -6 23 6 34 20 20 47 20 90 0z m-478 -185 l64 -13 24 -54 c13 -30 24 -56 24 -58 0 -2 -189 -4 -419 -4 l-419 0 28 58 28 59 79 12 c43 7 85 14 93 16 37 9 441 -4 498 -16z m-350 -273 c-3 -97 -6 -108 -33 -147 -39 -54 -86 -79 -150 -79 -64 0 -111 25 -150 79 -27 39 -30 50 -33 147 l-4 104 187 0 187 0 -4 -104z m462 9 c0 -75 -4 -104 -19 -133 -36 -71 -87 -102 -167 -102 -52 0 -88 16 -125 57 -43 46 -49 67 -49 172 l0 101 180 0 180 0 0 -95z m-865 -43 c1 -67 5 -85 28 -125 16 -26 47 -60 69 -75 37 -24 51 -27 123 -27 72 0 86 3 123 27 63 42 93 102 99 198 3 44 10 80 14 80 5 0 9 -32 9 -70 0 -109 38 -178 122 -221 70 -36 189 -20 246 34 48 45 66 88 72 172 l5 80 22 -90 c38 -155 47 -234 47 -415 1 -124 -5 -211 -18 -297 l-19 -123 -492 0 -492 0 -11 63 c-35 192 -41 468 -12 622 18 99 54 245 59 245 4 0 6 -35 6 -78z m991 21 c30 -32 54 -110 54 -174 0 -46 -16 -99 -30 -99 -3 0 -6 37 -6 83 1 72 -3 90 -31 150 -33 70 -29 85 13 40z m-1115 -490 c-6 -21 -10 -63 -10 -93 2 -51 2 -53 10 -20 7 31 8 30 5 -14 -2 -27 2 -64 10 -82 15 -37 7 -44 -19 -16 -41 45 -48 204 -11 260 22 33 29 16 15 -35z m35 -312 c10 -56 51 -231 68 -285 l15 -49 -54 -48 c-29 -27 -62 -67 -73 -90 -22 -44 -21 -46 -42 48 -10 45 -10 55 4 68 24 25 19 64 -12 93 l-28 27 39 141 c34 123 42 141 58 137 12 -4 21 -18 25 -42z m1024 -106 c0 -13 -61 -15 -485 -15 -424 0 -485 2 -485 15 0 13 61 15 485 15 424 0 485 -2 485 -15z m-14 -52 c-3 -10 -19 -65 -36 -123 -17 -58 -54 -162 -81 -232 l-51 -128 -123 0 -123 0 -4 149 c-4 159 -11 181 -54 181 -45 0 -54 -32 -54 -187 l0 -143 -124 0 -124 0 -21 51 c-57 132 -95 242 -147 432 -5 16 22 17 471 17 449 0 476 -1 471 -17z m-1192 -108 c-5 -12 -10 -13 -20 -4 -9 8 -14 8 -14 1 0 -20 44 -42 80 -41 19 1 27 3 18 6 -10 2 -18 11 -18 19 0 23 19 16 32 -11 23 -52 -37 -73 -100 -35 -39 24 -49 45 -32 65 17 21 61 20 54 0z m-32 -95 c18 -11 45 -20 60 -20 23 0 29 -6 37 -38 23 -83 23 -98 5 -113 -16 -13 -17 -12 -12 9 9 33 -8 27 -21 -8 -5 -16 -13 -30 -16 -30 -4 0 -61 17 -127 37 l-121 37 79 73 c44 40 80 73 81 73 2 0 17 -9 35 -20z m772 -82 c3 -57 8 -147 10 -200 l5 -98 -34 0 -35 0 5 148 c8 203 14 252 30 252 10 0 15 -27 19 -102z m-455 -130 l1 -87 -42 -11 c-24 -6 -56 -15 -72 -21 -40 -13 -48 2 -42 75 6 74 54 175 104 216 l37 31 6 -58 c4 -32 7 -97 8 -145z m956 136 c40 -52 64 -116 71 -181 6 -72 -2 -87 -42 -74 -16 6 -48 15 -71 21 l-43 11 0 92 c0 51 3 115 6 144 7 51 7 52 30 37 12 -9 35 -31 49 -50z m-97 -109 c-3 -114 -4 -115 -64 -99 -20 5 -20 8 20 105 22 54 41 99 43 99 2 0 2 -47 1 -105z m-803 4 c41 -98 39 -109 -16 -109 l-25 0 -3 100 c-1 55 0 100 2 100 2 0 21 -41 42 -91z m-531 15 c11 -4 16 -19 16 -50 0 -24 -3 -44 -7 -44 -20 1 -31 18 -38 58 -7 43 -3 48 29 36z m99 -31 c14 -5 16 -12 11 -42 -8 -45 -8 -45 -39 -37 -22 6 -25 11 -25 52 0 40 2 45 18 39 9 -4 25 -10 35 -12z m92 -34 c3 -4 -1 -24 -9 -43 -11 -27 -19 -33 -35 -29 -24 6 -24 6 -11 55 8 29 14 35 30 31 11 -3 23 -9 25 -14z m655 -114 l0 -35 -130 0 c-120 0 -130 1 -140 21 -22 41 0 49 141 49 l129 0 0 -35z m395 0 l0 -30 -131 -3 -132 -3 -4 31 c-3 16 -2 32 1 35 3 3 64 4 135 3 l131 -3 0 -30z m-230 -95 c0 -14 6 -31 13 -38 6 -7 12 -25 12 -38 0 -19 -8 -28 -35 -40 -67 -28 -215 -9 -215 28 0 7 5 35 12 64 l12 51 100 -1 c101 -1 101 -1 101 -26z"/>
<path d="M1495 2610 c-4 -7 -3 -16 3 -22 14 -14 45 -2 40 15 -6 16 -34 21 -43 7z"/>
<path d="M1300 2589 c0 -14 5 -19 17 -17 26 5 29 38 4 38 -15 0 -21 -6 -21 -21z"/>
<path d="M1692 2593 c2 -10 10 -18 18 -18 8 0 16 8 18 18 2 12 -3 17 -18 17 -15 0 -20 -5 -18 -17z"/>
<path d="M1253 2274 c-8 -22 10 -49 32 -49 10 0 22 7 28 16 15 24 1 49 -28 49 -15 0 -28 -7 -32 -16z"/>
<path d="M1721 2276 c-9 -11 -10 -20 -1 -35 13 -26 46 -27 59 -3 20 38 -31 71 -58 38z"/>
<path d="M1244 1893 c-3 -16 -7 -34 -10 -41 -2 -7 1 -34 7 -61 23 -106 122 -149 203 -88 46 36 90 101 82 123 -4 11 -14 14 -33 10 -41 -9 -140 20 -187 54 -49 37 -54 37 -62 3z"/>
<path d="M1107 1386 c-7 -18 1 -26 25 -26 13 0 18 6 16 17 -4 22 -34 29 -41 9z"/>
<path d="M1307 1393 c-14 -13 -6 -33 13 -33 13 0 20 7 20 20 0 19 -20 27 -33 13z"/>
<path d="M1495 1390 c-4 -7 -3 -16 3 -22 14 -14 45 -2 40 15 -6 16 -34 21 -43 7z"/>
<path d="M1687 1386 c-7 -18 1 -26 25 -26 13 0 18 6 16 17 -4 22 -34 29 -41 9z"/>
<path d="M1887 1393 c-14 -13 -6 -33 13 -33 13 0 20 7 20 20 0 19 -20 27 -33 13z"/>
<path d="M1135 1200 c-4 -7 -3 -16 3 -22 14 -14 45 -2 40 15 -6 16 -34 21 -43 7z"/>
<path d="M1315 1200 c-8 -13 3 -30 20 -30 14 0 27 24 18 34 -10 9 -31 7 -38 -4z"/>
<path d="M1495 1200 c-8 -13 3 -30 20 -30 14 0 27 24 18 34 -10 9 -31 7 -38 -4z"/>
<path d="M1675 1200 c-8 -13 3 -30 20 -30 14 0 27 24 18 34 -10 9 -31 7 -38 -4z"/>
<path d="M1854 1199 c-3 -6 -1 -16 4 -21 13 -13 45 8 36 23 -7 12 -31 11 -40 -2z"/>
<path d="M675 964 c-22 -34 -14 -40 14 -10 12 13 18 27 13 30 -5 3 -17 -6 -27 -20z"/>
<path d="M715 934 c-17 -42 -18 -44 -7 -44 7 0 42 63 42 75 0 3 -4 5 -10 5 -5 0 -17 -16 -25 -36z"/>
<path d="M770 913 c0 -41 13 -35 24 10 5 20 3 27 -9 27 -11 0 -15 -11 -15 -37z"/>
<path d="M1435 580 c-20 -9 -20 -9 0 -9 11 0 27 4 35 9 13 9 13 10 0 9 -8 0 -24 -4 -35 -9z"/>
<path d="M1550 580 c8 -5 24 -9 35 -9 20 0 20 0 0 9 -11 5 -27 9 -35 9 -13 1 -13 0 0 -9z"/>
</g>
</svg>

0 comments on commit dc93918

Please sign in to comment.