Skip to content

Commit dd5967c

Browse files
author
Sebastian Fix
committed
wip
1 parent 0c26af3 commit dd5967c

4 files changed

Lines changed: 24 additions & 10 deletions

File tree

database/migrations/2025_06_23_130054_create_contacts_table.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public function up(): void
1717
$table->string('name');
1818
$table->json('sections')->nullable();
1919
$table->string('image');
20-
$table->string('link')->nullable();
2120
$table->json('icons')->nullable();
2221
$table->timestamps();
2322
});

database/seeders/Paperflakes/ContactsTableSeeder.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ public function run(): void
160160
],
161161
],
162162
],
163-
'link' => 'https://www.codebar.ch',
163+
'icons' => [
164+
'email' => 'info@codebar.ch',
165+
'website' => 'https://www.codebar.ch',
166+
],
164167
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/Zeichenfla%CC%88che_1.webp',
165168
]
166169
);
@@ -178,7 +181,10 @@ public function run(): void
178181
],
179182
],
180183
],
181-
'link' => 'https://www.business-solutions.gmbh',
184+
'icons' => [
185+
'email' => 'info@codebar.ch',
186+
'website' => 'https://www.business-solutions.gmbh',
187+
],
182188
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/wds.jpg',
183189
]
184190
);

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
<x-h3 :title="__('Products')"/>
2626
<x-list-grid>
2727
@foreach($contacts->employee_products as $contact)
28-
<x-list-image-card :name="$contact->name" :role="$contact->role" :icons="$contact->icons"
29-
:image="$contact->image"/>
28+
<x-list-image-card
29+
:name="$contact->name"
30+
:role="$contact->role"
31+
:icons="$contact->icons"
32+
:image="$contact->image"/>
3033
@endforeach
3134
</x-list-grid>
3235
@endif
@@ -48,8 +51,11 @@
4851
<x-h2 :title="__('Collaboration')"/>
4952
<x-list-grid>
5053
@foreach($contacts->collaborations as $contact)
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"/>
54+
<x-list-image-card
55+
:name="$contact->name"
56+
:role="$contact->role"
57+
:icons="$contact->icons"
58+
:image="$contact->image"/>
5359
@endforeach
5460
</x-list-grid>
5561
</x-section>
@@ -59,8 +65,10 @@
5965
<x-h2 :title="__('Board of directors')"/>
6066
<x-list-grid class-attributes="mt-2 grid grid-cols-1 lg:grid-cols-2 gap-4">
6167
@foreach($contacts->board_members as $contact)
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"/>
68+
<x-list-image-card
69+
:name="$contact->name"
70+
:image="$contact->image"
71+
image-container-class-attributes="h-20 w-auto flex-shrink-0 overflow-hidden"/>
6472
@endforeach
6573
</x-list-grid>
6674
</x-section>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
'icons' => [],
77
])
88

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

0 commit comments

Comments
 (0)