Skip to content

Commit e81a035

Browse files
author
Sebastian Fix
committed
wip
1 parent 8b410a3 commit e81a035

7 files changed

Lines changed: 72 additions & 45 deletions

File tree

database/seeders/Paperflakes/ContactsTableSeeder.php

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ class ContactsTableSeeder extends Seeder
1111
public function run(): void
1212
{
1313
Contact::updateOrCreate(
14-
['name' => 'Sebastian Bürgin-Fix'],
14+
['id' => 1],
1515
[
16+
'name' => 'Sebastian Bürgin-Fix',
1617
'published' => true,
1718
'sections' => [
1819
ContactSectionEnum::EMPLOYEE_SERVICES => [
@@ -29,12 +30,6 @@ public function run(): void
2930
'en_CH' => 'Software-Engineer',
3031
],
3132
],
32-
ContactSectionEnum::COLLABORATIONS => [
33-
'key' => ContactSectionEnum::COLLABORATIONS,
34-
'role' => [
35-
'de_CH' => 'codebar Solutions AG',
36-
],
37-
],
3833
ContactSectionEnum::BOARD_MEMBERS => [
3934
'key' => ContactSectionEnum::BOARD_MEMBERS,
4035
],
@@ -43,14 +38,14 @@ public function run(): void
4338
'email' => 'sebastian.buergin@paperflakes.ch',
4439
'linkedin' => 'https://www.linkedin.com/in/fix-sebastian/',
4540
],
46-
'link' => 'https://www.codebar.ch',
47-
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-codebar-ch/team/s_fix.webp',
41+
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-paperflakes-ch/people/20201001_new_sebastian_fix_square.webp',
4842
]
4943
);
5044

5145
Contact::updateOrCreate(
52-
['name' => 'Mischa Lanz'],
46+
['id' => 2],
5347
[
48+
'name' => 'Mischa Lanz',
5449
'published' => true,
5550
'sections' => [
5651
ContactSectionEnum::EMPLOYEE_SERVICES => [
@@ -67,13 +62,14 @@ public function run(): void
6762
'email' => 'mischa.lanz@paperflakes.ch',
6863
'linkedin' => 'https://www.realestateclub.ch/images/REC_social_linkedin.svg',
6964
],
70-
'image' => 'https://www.realestateclub.ch/images/6528f7c6bddf8430fb5d154c_Mischa_Hemd.webp',
65+
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-paperflakes-ch/people/e2ch9rzadt0hamytyzc8.webp',
7166
]
7267
);
7368

7469
Contact::updateOrCreate(
75-
['name' => 'Dominique Ernst'],
70+
['id' => 3],
7671
[
72+
'name' => 'Dominique Ernst',
7773
'published' => true,
7874
'sections' => [
7975
ContactSectionEnum::BOARD_MEMBERS => [
@@ -84,13 +80,14 @@ public function run(): void
8480
'email' => 'dominique.ernst@paperflakes.ch',
8581
'linkedin' => 'https://www.linkedin.com/in/dominique-ernst',
8682
],
87-
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-codebar-ch/team/d_ernst.webp',
83+
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-paperflakes-ch/people/ujywqubl5rkkm5hjqjsa.webp',
8884
]
8985
);
9086

9187
Contact::updateOrCreate(
92-
['name' => 'Rhys Lees'],
88+
['id' => 4],
9389
[
90+
'name' => 'Rhys Lees',
9491
'published' => true,
9592
'sections' => [
9693
ContactSectionEnum::EMPLOYEE_PRODUCTS => [
@@ -105,13 +102,14 @@ public function run(): void
105102
'email' => 'rhys.leess@paperflakes.ch',
106103
'linkedin' => 'https://www.linkedin.com/in/rhys-lees',
107104
],
108-
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-codebar-ch/team/r_lees.webp',
105+
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-paperflakes-ch/people/r_lees.webp',
109106
]
110107
);
111108

112109
Contact::updateOrCreate(
113-
['name' => 'Katja Lanz'],
110+
['id' => 5],
114111
[
112+
'name' => 'Katja Lanz',
115113
'published' => true,
116114
'sections' => [
117115
ContactSectionEnum::EMPLOYEE_ADMINISTRATION => [
@@ -131,8 +129,27 @@ public function run(): void
131129
);
132130

133131
Contact::updateOrCreate(
134-
['name' => 'Dario Wieland'],
132+
['id' => 6],
133+
[
134+
'name' => 'Sebastian Bürgin-Fix',
135+
'published' => true,
136+
'sections' => [
137+
ContactSectionEnum::COLLABORATIONS => [
138+
'key' => ContactSectionEnum::COLLABORATIONS,
139+
'role' => [
140+
'de_CH' => 'codebar Solutions AG',
141+
],
142+
],
143+
],
144+
'link' => 'https://www.codebar.ch',
145+
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-paperflakes-ch/people/codebar_social_linkedin_profilbild.webp',
146+
]
147+
);
148+
149+
Contact::updateOrCreate(
150+
['id' => 7],
135151
[
152+
'name' => 'Dario Wieland',
136153
'published' => true,
137154
'sections' => [
138155
ContactSectionEnum::COLLABORATIONS => [
@@ -143,7 +160,7 @@ public function run(): void
143160
],
144161
],
145162
'link' => 'https://www.business-solutions.gmbh',
146-
'image' => 'https://cdn.prod.website-files.com/6727978a2c75d658e43b75d5/67543ad5eb733f845bc34ba6_DarioWieland_Web.webp',
163+
'image' => 'https://res.cloudinary.com/codebar/image/upload/c_scale,dpr_2.0,f_auto,q_auto,w_500/www-paperflakes-ch/people/wieland_busines_solutions_gmbh.jpg',
147164
]
148165
);
149166
}

resources/views/app/about-us/index.blade.php

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<x-list-grid>
1616

1717
@foreach($contacts->employee_services as $contact)
18-
<x-list-image-card :name="$contact->name" :role="$contact->role" :icons="$contact->icons" :image="$contact->image"/>
18+
<x-list-image-card :name="$contact->name" :role="$contact->role" :icons="$contact->icons"
19+
:image="$contact->image"/>
1920
@endforeach
2021
</x-list-grid>
2122
@endif
@@ -24,38 +25,42 @@
2425
<x-h3 :title="__('Products')"/>
2526
<x-list-grid>
2627
@foreach($contacts->employee_products as $contact)
27-
<x-list-image-card :name="$contact->name" :role="$contact->role" :icons="$contact->icons" :image="$contact->image"/>
28+
<x-list-image-card :name="$contact->name" :role="$contact->role" :icons="$contact->icons"
29+
:image="$contact->image"/>
2830
@endforeach
2931
</x-list-grid>
3032
@endif
3133

32-
@if(!empty($contacts->employee_administration) && $contacts->employee_administration->count())
33-
<x-h3 :title="__('Administration')"/>
34-
<x-list-grid>
35-
@foreach($contacts->employee_administration as $contact)
36-
<x-list-image-card :name="$contact->name" :role="$contact->role" :icons="$contact->icons" :image="$contact->image"/>
37-
@endforeach
38-
</x-list-grid>
39-
@endif
34+
@if(!empty($contacts->employee_administration) && $contacts->employee_administration->count())
35+
<x-h3 :title="__('Administration')"/>
36+
<x-list-grid>
37+
@foreach($contacts->employee_administration as $contact)
38+
<x-list-image-card :name="$contact->name" :role="$contact->role" :icons="$contact->icons"
39+
:image="$contact->image"/>
40+
@endforeach
41+
</x-list-grid>
42+
@endif
4043
</div>
4144
</x-section>
4245

4346
@if(!empty($contacts->employee_services) && $contacts->employee_services->count())
4447
<x-section>
45-
<x-h2 :title="__('Zusammenarbeit')"/>
48+
<x-h2 :title="__('Collaboration')"/>
4649
<x-list-grid>
4750
@foreach($contacts->collaborations as $contact)
48-
<x-list-image-card :name="$contact->name" :role="$contact->role" :image="$contact->image"/>
51+
<x-list-image-card :name="$contact->name" :role="$contact->role" :image="$contact->image"
52+
image-container-class-attributes="h-20 w-auto flex-shrink-0 overflow-hidden"/>
4953
@endforeach
5054
</x-list-grid>
5155
</x-section>
5256
@endif
5357

5458
<x-section>
55-
<x-h2 :title="__('Verwaltungsrat')"/>
56-
<x-list-grid>
59+
<x-h2 :title="__('Board of directors')"/>
60+
<x-list-grid class-attributes="mt-2 grid grid-cols-1 lg:grid-cols-2 gap-4">
5761
@foreach($contacts->board_members as $contact)
58-
<x-list-image-card :name="$contact->name" :icons="$contact->icons" :image="$contact->image"/>
62+
<x-list-image-card :name="$contact->name" :image="$contact->image"
63+
image-container-class-attributes="h-20 w-auto flex-shrink-0 overflow-hidden"/>
5964
@endforeach
6065
</x-list-grid>
6166
</x-section>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@props([])
1+
@props(['classAttributes' => "mt-2 grid grid-cols-1 lg:grid-cols-2 gap-4"])
22

3-
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4" >
3+
<div class="{{ $classAttributes }}">
44
{{ $slot }}
55
</div>

resources/views/components/list-image-card.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
@props([
22
'image',
3+
'imageContainerClassAttributes' => 'h-30 w-auto flex-shrink-0 overflow-hidden',
34
'name',
45
'role' => null,
56
'icons' => [],
67
])
78

89
<div class="flex rounded-xl overflow-hidden transition hover:bg-gray-50/50 hover:shadow-sm group">
9-
<div class="h-28 w-28 flex-shrink-0 overflow-hidden">
10+
<div class="{{ $imageContainerClassAttributes }}">
1011
<img src="{{ $image }}" alt="{{ $name }}"
1112
class="w-full h-full object-cover transition-transform duration-300 ease-in-out group-hover:scale-105"/>
1213
</div>

resources/views/layouts/_partials/_footer.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ classAttributes="text-lg"/>
3434
<div>
3535
<h2 class="text-black font-semibold">{{ __('paperflakes AG') }}</h2>
3636
<ul class="mt-1 list-none text-base">
37-
37+
<li>
38+
<x-a :href="localized_route('about-us.index')" label="{{ __('About us') }}"
39+
classAttributes="text-lg"/>
40+
</li>
3841
<li>
3942
<x-a :href="localized_route('contact.index')" label="{{ __('Contact') }}"
4043
classAttributes="text-lg"/>

resources/views/layouts/_partials/_navigation_desktop.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ classAttributes="text-xl md:text-2xl"/>
1212

1313
<x-a :href="localized_route('about-us.index')" label="{{ __('About us') }}"
1414
classAttributes="text-xl md:text-2xl"/>
15+
1516
<span class="text-gray-500">|</span>
1617

1718
<x-a :href="localized_route('services.index')" label="{{ __('Services') }}"

resources/views/layouts/_partials/_navigation_mobile.blade.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@php use App\Enums\LocaleEnum; @endphp
22

33
<div x-show="open" x-transition x-cloak
4-
class="md:hidden mt-4 text-xl space-y-2">
4+
class="md:hidden mt-4 text-xl space-y-2">
55
<!-- News -->
66
<a @click.stop
77
href="{{ localized_route('start.index') }}"
@@ -10,13 +10,13 @@ class="block py-3 text-center bg-gray-50/50 hover:text-black hover:font-semibold
1010
{{ __('News') }}
1111
</a>
1212

13-
{{-- <!-- About us -->
14-
<a @click.stop
15-
href="{{ localized_route('about-us.index') }}"
16-
title="{{ __('About us') }}"
17-
class="block py-3 text-center bg-gray-50 hover:text-black hover:font-semibold transition">
18-
{{ __('About us') }}
19-
</a>--}}
13+
<!-- About us -->
14+
<a @click.stop
15+
href="{{ localized_route('about-us.index') }}"
16+
title="{{ __('About us') }}"
17+
class="block py-3 text-center bg-gray-50 hover:text-black hover:font-semibold transition">
18+
{{ __('About us') }}
19+
</a>
2020

2121
<!-- Services -->
2222
<div @click.stop class="py-3 text-center bg-gray-50/50 transition">

0 commit comments

Comments
 (0)