Skip to content

Commit 747a4c7

Browse files
authored
Merge pull request #12 from codebar-ag/main
DocuWare | Show Me
2 parents a4f3365 + 7d02fec commit 747a4c7

File tree

12 files changed

+128
-24
lines changed

12 files changed

+128
-24
lines changed

app/Http/Controllers/Products/ProductsShowController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function __invoke(string $locale, Product $product): View
2020
'name' => $product->name,
2121
'teaser' => $product->teaser,
2222
'content' => Str::of($product->content)->markdown(),
23+
'tags' => $product->tags,
2324
]);
2425
}
2526
}

lang/de_CH/components.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
return [
4+
5+
'docuware' => [
6+
'showme' => [
7+
'title' => 'Erleben Sie DocuWare in Aktion',
8+
'teaser' => 'Entdecken Sie interaktive Touren rund um intelligente Dokumentenverarbeitung, Rechnungsfreigabe und
9+
Vertragsmanagement. Sehen Sie live, wie DocuWare Prozesse vereinfacht, Fehler reduziert und Ihr Business
10+
effizienter macht.',
11+
'buttons' => [
12+
'discover_now' => 'Jetzt entdecken',
13+
'more' => 'Mehr über DocuWare,',
14+
],
15+
],
16+
],
17+
];

lang/en_CH/components.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
return [
4+
5+
'docuware' => [
6+
'showme' => [
7+
'title' => 'Experience DocuWare in Action',
8+
'teaser' => 'Discover interactive tours focused on intelligent document processing, invoice approval, and contract management. See how DocuWare streamlines processes, reduces errors, and makes your business more efficient.',
9+
'buttons' => [
10+
'discover_now' => 'Discover Now',
11+
'more' => 'More about DocuWare',
12+
],
13+
],
14+
],
15+
];

resources/css/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
body {
2121
font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
2222
@apply text-gray-800;
23-
}
23+
}

resources/views/app/contact/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ classAttributes="block"/>
2121
<p>CH-4455 Zunzgen</p>
2222
</address>
2323
<x-a-badge href="https://www.google.com/maps/place/Hauptstrasse+91,+4455+Zunzgen,+Schweiz"
24-
label="{{ __('Google Maps') }}" class-attributes="mt-1" target="_blank">
24+
label="{{ __('Google Maps') }}" class-attributes="mt-1" target="_blank" rel="noopener noreferrer">
2525
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
2626
stroke="currentColor" class="mr-1 size-3">
2727
<path stroke-linecap="round" stroke-linejoin="round"

resources/views/app/legal/imprint/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</address>
1313

1414
<x-a-badge href="https://zefix.ch/de/search/entity/list/firm/1598166" label="{{ __('Zefix') }}"
15-
class-attributes="mt-1" target="_blank">
15+
class-attributes="mt-1" target="_blank" rel="noopener noreferrer">
1616
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
1717
stroke="currentColor" class="mr-1 size-3">
1818
<path stroke-linecap="round" stroke-linejoin="round"

resources/views/app/products/show.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
<x-content :content="$content"/>
88
</x-section>
99

10+
@if(in_array('DocuWare', $tags))
11+
<x-docuware-showme/>
12+
@endif
13+
14+
1015
</x-app-layout>

resources/views/app/start/index.blade.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
@endforeach
1313
</x-list>
1414
</x-section>
15+
16+
<x-docuware-showme/>
17+
1518
</x-app-layout>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@use(App\Enums\LocaleEnum;use Illuminate\Support\Str)
2+
3+
@php
4+
$showme_url = match (app()->getLocale()) {
5+
LocaleEnum::EN->value => 'https://showme.docuware.com/en-gb/interactive-tours',
6+
default => 'https://showme.docuware.com/de/interactive-tours'
7+
};
8+
$product_url = match (app()->getLocale()) {
9+
LocaleEnum::EN->value => 'https://www.paperflakes.ch/services/en_CH/dms-ecm-docuware',
10+
default => 'https://www.paperflakes.ch/dienstleistungen/de_CH/dms-ecm-docuware'
11+
};
12+
@endphp
13+
14+
<x-section class-attributes="relative isolate bg-gray-100 overflow-hidden">
15+
16+
<div class="absolute -top-32 -left-20 -z-10 h-[30rem] w-[30rem] rounded-full bg-[#2E36B4] opacity-10 blur-[120px]"></div>
17+
18+
<section class="relative z-10 flex flex-col md:flex-row items-center justify-between gap-10 p-6 md:p-12">
19+
<div class="w-full">
20+
<x-h2 :title="__('components.docuware.showme.title')"/>
21+
<p class="text-gray-700 text-base md:text-lg mb-6">
22+
{{ __('components.docuware.showme.teaser') }}
23+
</p>
24+
25+
<div class="flex flex-col sm:flex-row gap-2 text-center">
26+
<a href="{{ $showme_url }}" target="_blank" rel="noopener noreferrer"
27+
aria-label="Interaktive DocuWare-Tour starten"
28+
class="flex items-center justify-center px-4 py-2 rounded-md text-sm font-medium hover:font-semibold transition text-white w-full sm:w-auto focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#2E36B4]"
29+
style="background-color: #2E36B4;">
30+
{{ __('components.docuware.showme.buttons.discover_now') }}
31+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
32+
stroke="currentColor" class="ml-1 w-4 h-4">
33+
<path stroke-linecap="round" stroke-linejoin="round"
34+
d="M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"/>
35+
</svg>
36+
</a>
37+
38+
<a href="{{ $product_url }}" rel="noopener noreferrer"
39+
class="px-4 py-2 border rounded-md text-sm font-medium hover:font-semibold transition w-full sm:w-auto focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#2E36B4]"
40+
style="background-color: white; color: #2E36B4; border-color: #2E36B4;">
41+
{{ __('components.docuware.showme.buttons.more') }}
42+
</a>
43+
</div>
44+
</div>
45+
</section>
46+
</x-section>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<svg
2+
xmlns="http://www.w3.org/2000/svg"
3+
viewBox="0 0 142 142"
4+
class="h-12 w-auto transition-transform duration-700 animate-[lava_8s_ease-in-out_infinite]"
5+
>
6+
<path d="M0 0 C2.37650964 0.84473356 3.59236923 1.83950289 5.40283203 3.58398438 C6.32249756 4.4580896 6.32249756 4.4580896 7.26074219 5.34985352 C7.90317871 5.9736792 8.54561523 6.59750488 9.20751953 7.24023438 C10.55057589 8.52091011 11.89432725 9.80085739 13.23876953 11.08007812 C14.22103516 12.01956299 14.22103516 12.01956299 15.22314453 12.97802734 C17.67604341 15.30274164 20.18311809 17.55586502 22.70751953 19.80273438 C23.47966797 20.50011719 24.25181641 21.1975 25.04736328 21.91601562 C26.29531497 23.03462107 27.55576463 24.13969962 28.83642578 25.22070312 C30.27001953 26.49023438 30.27001953 26.49023438 32.08251953 28.74023438 C31.93283303 33.6466253 29.44079077 35.83091756 26.02001953 39.11523438 C25.52123291 39.59782715 25.02244629 40.08041992 24.50854492 40.57763672 C21.13795902 43.8144821 17.68665005 46.94945752 14.12548828 49.97460938 C12.55875271 51.32865235 11.02566631 52.72171263 9.50830078 54.13085938 C8.62529297 54.95070312 7.74228516 55.77054688 6.83251953 56.61523438 C6.02298828 57.37578125 5.21345703 58.13632813 4.37939453 58.91992188 C2.14988764 60.68684401 0.88594282 61.46468422 -1.91748047 61.74023438 C-2.90748047 61.24523437 -2.90748047 61.24523437 -3.91748047 60.74023438 C-3.91748047 56.45023438 -3.91748047 52.16023438 -3.91748047 47.74023438 C-18.05971015 50.00573719 -27.95972696 52.6408276 -37.91748047 63.74023438 C-43.14744919 71.26990566 -46.90153922 79.32442848 -49.75244141 88.02978516 C-50.39794922 89.85351562 -50.39794922 89.85351562 -51.91748047 92.74023438 C-54.59326172 93.65820312 -54.59326172 93.65820312 -56.91748047 93.74023438 C-58.6537711 90.73975372 -59.14875283 88.70046724 -58.99951172 85.24804688 C-58.96374023 84.38493896 -58.92796875 83.52183105 -58.89111328 82.63256836 C-58.83793945 81.71934814 -58.78476562 80.80612793 -58.72998047 79.86523438 C-58.6780957 78.92429932 -58.62621094 77.98336426 -58.57275391 77.01391602 C-57.5045296 60.30934425 -53.40597433 44.44010004 -41.91748047 31.74023438 C-31.89255664 22.94591497 -17.56779858 14.74023438 -3.91748047 14.74023438 C-3.91748047 10.12023437 -3.91748047 5.50023437 -3.91748047 0.74023438 C-1.91748047 -0.25976562 -1.91748047 -0.25976562 0 0 Z M0.08251953 5.74023438 C-0.24748047 9.37023438 -0.57748047 13.00023438 -0.91748047 16.74023438 C-4.82931688 18.30496894 -8.36642301 19.40103289 -12.41748047 20.42773438 C-27.26894167 24.61980475 -39.2758421 32.18954867 -46.91748047 45.74023438 C-52.45155928 58.34158007 -54.30854563 70.07467967 -53.91748047 83.74023438 C-51.4467517 81.26950561 -50.56200947 78.88290184 -49.16748047 75.67773438 C-42.68959126 61.45147406 -34.63716904 51.8624211 -19.89013672 45.92382812 C-13.75738983 44.06974186 -7.25346661 44.5663811 -0.91748047 44.74023438 C-0.42248047 50.18523437 -0.42248047 50.18523437 0.08251953 55.74023438 C4.89028755 52.28201528 9.17730157 48.79051131 13.28955078 44.53710938 C15.8327159 41.9884036 18.55603069 39.66828981 21.28173828 37.31835938 C23.30674143 35.54373623 25.2179781 33.68246503 27.08251953 31.74023438 C23.6146346 23.84116314 15.49510676 18.25085847 9.08251953 12.74023438 C6.93656907 10.83686962 4.79119868 8.93289389 2.64892578 7.02539062 C1.29136042 5.63451986 1.29136042 5.63451986 0.08251953 5.74023438 Z "
7+
fill="#2F39AD" transform="translate(75.91748046875,24.259765625)"/>
8+
<path d="M0 0 C-0.33 1.32 -0.66 2.64 -1 4 C-1.93199219 4.20753906 -2.86398438 4.41507813 -3.82421875 4.62890625 C-19.81311201 8.49275407 -32.49898294 14.88857579 -41.421875 29.0234375 C-41.94265625 29.67570312 -42.4634375 30.32796875 -43 31 C-43.99 31 -44.98 31 -46 31 C-45.13481997 22.93278084 -40.39132608 17.98167048 -34.4453125 12.75390625 C-28.09979648 7.88901064 -21.51618376 4.66355436 -14 2 C-13.31808594 1.75378906 -12.63617188 1.50757813 -11.93359375 1.25390625 C-7.91658673 -0.04914972 -4.19644387 -0.17128342 0 0 Z "
9+
fill="#00A9FE" transform="translate(76,46)"/>
10+
<path d="M0 0 C0.66 0.99 1.32 1.98 2 3 C-1.6441774 5.4294516 -3.71241272 5.16179575 -8 5 C-8.33 3.68 -8.66 2.36 -9 1 C-5.95699684 -0.52150158 -3.345915 -0.23899393 0 0 Z "
11+
fill="#FE9800" transform="translate(123,51)"/>
12+
<path d="M0 0 C1.32 0.33 2.64 0.66 4 1 C4 3.64 4 6.28 4 9 C2.68 9.33 1.36 9.66 0 10 C0 6.7 0 3.4 0 0 Z "
13+
fill="#FE9800" transform="translate(110,58)"/>
14+
<path d="M0 0 C1.5 1.0625 1.5 1.0625 3 3 C3.1875 6.6875 3.1875 6.6875 3 10 C1.68 10.33 0.36 10.66 -1 11 C-1.02688151 9.35425434 -1.04634123 7.70838587 -1.0625 6.0625 C-1.07410156 5.14597656 -1.08570312 4.22945312 -1.09765625 3.28515625 C-1 1 -1 1 0 0 Z "
15+
fill="#FE9800" transform="translate(111,39)"/>
16+
</svg>

0 commit comments

Comments
 (0)