Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit f066f4d

Browse files
authored
refactor: footer additional output & reduce size of content (#658)
1 parent 752a1c7 commit f066f4d

File tree

4 files changed

+47
-29
lines changed

4 files changed

+47
-29
lines changed

resources/views/footer-bar-desktop.blade.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
@props([
2-
'isArkProduct' => true,
3-
'noBorder' => '',
4-
'copyClass' => '',
5-
'copyText' => null,
6-
'socials' => null,
2+
'isArkProduct' => true,
3+
'noBorder' => '',
4+
'copyClass' => '',
5+
'copyText' => null,
6+
'socials' => null,
7+
'copyrightSlot' => null,
78
])
89

910
<div class="flex items-center justify-between @unless ($noBorder) border-t border-theme-secondary-800 @endunless">
1011
<x-ark-footer-copyright
1112
:is-ark-product="$isArkProduct"
1213
:copy-text="$copyText"
13-
class="{{ $copyClass }}"
14+
:class="$copyClass"
15+
:copyright-slot="$copyrightSlot"
1416
/>
1517

1618
<x-ark-footer-social :networks="$socials" />

resources/views/footer-bar-mobile.blade.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
@props([
2-
'isArkProduct' => true,
3-
'class' => '',
4-
'copyClass' => '',
5-
'copyText' => null,
6-
'socials' => null,
2+
'isArkProduct' => true,
3+
'class' => '',
4+
'copyClass' => '',
5+
'copyText' => null,
6+
'socials' => null,
7+
'copyrightSlot' => null,
78
])
89

910
<div class="flex flex-col {{ $class }}">
1011
<x-ark-footer-copyright
1112
:is-ark-product="$isArkProduct"
1213
:copy-text="$copyText"
13-
class="{{ $copyClass }}"
14+
:class="$copyClass"
15+
:copyright-slot="$copyrightSlot"
1416
/>
1517

1618
<x-ark-footer-social :networks="$socials" />
Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
@props([
2-
'isArkProduct' => true,
3-
'copyText' => 'ARK.io | ' . trans('ui::general.all_rights_reserved'),
2+
'isArkProduct' => true,
3+
'copyText' => 'ARK.io | ' . trans('ui::general.all_rights_reserved'),
4+
'copyrightSlot' => null,
45
])
56

6-
<div {{ $attributes->merge(['class' => 'flex flex-col py-6 space-y-2 font-semibold text-theme-secondary-700 sm:block sm:space-y-0'])}}>
7+
<div {{ $attributes->merge(['class' => 'flex flex-col py-6 space-y-2 font-semibold text-sm text-theme-secondary-700 sm:flex-row sm:space-y-0 sm:space-x-1'])}}>
78
<span class="whitespace-nowrap">
89
{{ date('Y') }} &copy; {{ $copyText }}
910
</span>
1011

11-
@if($isArkProduct)
12-
<span class="hidden mr-1 sm:inline"> | </span>
13-
<span class="whitespace-nowrap">
14-
@svg('ark-logo-red-square', 'inline-block h-6 -mt-1') An <a href="https://ark.io/" class="underline hover:no-underline focus-visible:rounded">ARK.io</a> Product
15-
</span>
16-
@endif
12+
<div class="flex">
13+
@if($isArkProduct)
14+
<div>
15+
<span class="hidden mr-1 sm:inline"> | </span>
16+
<span class="whitespace-nowrap">
17+
<x-ark-icon
18+
name="ark-logo-red-square"
19+
class="inline-block mr-1 -mt-1"
20+
/>
21+
22+
An <a href="https://ark.io/" class="underline hover:no-underline focus-visible:rounded">ARK.io</a> Product
23+
</span>
24+
</div>
25+
@endif
26+
27+
{{ $copyrightSlot }}
28+
</div>
1729
</div>

resources/views/footer.blade.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
@props([
2-
'desktopClass' => 'px-8 max-w-7xl hidden lg:flex',
3-
'mobileClass' => 'px-8 pb-8 lg:hidden',
4-
'copyClass' => '',
5-
'copyText' => null,
6-
'isArkProduct' => true,
7-
'socials' => null,
2+
'desktopClass' => 'px-8 max-w-7xl hidden lg:flex',
3+
'mobileClass' => 'px-8 pb-8 lg:hidden',
4+
'copyClass' => '',
5+
'copyText' => null,
6+
'isArkProduct' => true,
7+
'socials' => null,
8+
'copyrightSlot' => null,
89
])
910

1011
<div {{ $attributes->merge(['class' => 'border-t bg-theme-secondary-900 border-theme-secondary-800']) }}>
1112
<div class="{{ $desktopClass }} flex-col mx-auto">
12-
{{-- Empty class to remove border --}}
1313
<x-ark-footer-bar-desktop
1414
:is-ark-product="$isArkProduct"
1515
:copy-class="$copyClass"
1616
:copy-text="$copyText"
1717
:socials="$socials"
18+
:copyright-slot="$copyrightSlot"
1819
no-border
1920
/>
2021
</div>
2122

2223
<x-ark-footer-bar-mobile
23-
class="{{ $mobileClass }}"
24+
:class="$mobileClass"
2425
:is-ark-product="$isArkProduct"
2526
:copy-class="$copyClass"
2627
:copy-text="$copyText"
2728
:socials="$socials"
29+
:copyright-slot="$copyrightSlot"
2830
/>
2931
</div>

0 commit comments

Comments
 (0)