Skip to content

Commit d705606

Browse files
committed
wip
1 parent 2dba99e commit d705606

24 files changed

+309
-513
lines changed

lang/en/global.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
'forum' => 'Forum',
1313
'articles' => 'Posts',
1414
'discussions' => 'Discussions',
15+
'community' => 'Community',
1516
'about' => 'About',
1617
'podcasts' => 'Podcasts',
1718
'jobs' => 'Jobs',
1819
'sponsors' => 'Sponsors',
20+
'snippets' => 'Snippets',
1921
'branding' => 'Branding',
2022
'faq' => 'FAQ',
2123
'rules' => 'Rules',
@@ -45,5 +47,8 @@
4547
'sponsored' => 'Sponsored',
4648
'read_time' => ':time min reading',
4749
'page_views' => ':number views',
50+
'open_navigation' => 'Open main menu',
51+
'close_navigation' => 'Close menu',
52+
'view_notifications' => 'View notifications',
4853

4954
];

lang/fr/global.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
'forum' => 'Forum',
1313
'articles' => 'Articles',
1414
'discussions' => 'Discussions',
15+
'community' => 'Communauté',
1516
'about' => 'A propos',
1617
'podcasts' => 'Podcasts',
1718
'jobs' => 'Offres',
1819
'sponsors' => 'Soutien',
20+
'snippets' => 'Snippets',
1921
'branding' => 'Branding',
2022
'faq' => 'FAQ',
2123
'rules' => 'Code de conduite',
@@ -45,5 +47,8 @@
4547
'sponsored' => 'Sponsorisé',
4648
'read_time' => ':time min de lecture',
4749
'page_views' => ':number vues',
50+
'open_navigation' => 'Ouvrir le menu',
51+
'close_navigation' => 'Fermer le menu',
52+
'view_notifications' => 'Voir les notifications',
4853

4954
];

resources/css/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.header.is-fixed {
2-
@apply fixed inset-x-0 transform bg-white/80 duration-300;
2+
@apply fixed inset-x-0 bg-white/80 transition-all duration-300;
33
}
44

55
.header.is-hidden {

resources/views/articles/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class="inline-flex items-center rounded-md border border-skin-base bg-skin-butto
289289
<div class="relative flex justify-center">
290290
<span class="relative z-0 inline-flex -space-x-px rounded-md shadow-sm">
291291
<x-buttons.default
292-
link="{{ route('articles.edit', $article) }}"
292+
:href="route('articles.edit', $article)"
293293
class="relative inline-flex items-center rounded-none rounded-l-lg border border-gray-300"
294294
>
295295
<span class="sr-only">{{ __('actions.edit') }}</span>
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
@props(['link' => null])
1+
@php
2+
$classes = 'inline-flex justify-center py-2 px-4 bg-white border-0 ring-1 ring-gray-200 rounded-lg shadow-sm text-sm text-gray-700 hover:text-gray-900 dark:text-gray-400 hover:bg-gray-50/50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-green-500 dark:bg-gray-800 dark:focus:ring-offset-gray-900';
3+
@endphp
24

3-
@if ($link)
4-
<x-link
5-
href="{{ $link }}"
6-
{{ $attributes->twMerge(['class' => 'inline-flex justify-center py-2 px-4 bg-white border border-gray-200 rounded-lg shadow-sm text-sm text-gray-700 hover:text-gray-900 dark:text-gray-400 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-green-500 dark:bg-gray-800 dark:focus:ring-offset-gray-900']) }}
7-
>
5+
@if ($attributes->hasAny(['href', ':href']))
6+
<x-link :href="$href" {{ $attributes->twMerge(['class' => $classes]) }}>
87
{{ $slot }}
98
</x-link>
109
@else
11-
<button
12-
{{ $attributes->twMerge(['class' => 'inline-flex justify-center py-2 px-4 bg-white border border-gray-200 rounded-lg shadow-sm text-sm text-gray-700 hover:text-gray-900 dark:text-gray-400 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-green-500 dark:bg-gray-800 dark:focus:ring-offset-gray-900']) }}
13-
>
10+
<button {{ $attributes->twMerge(['class' => $classes]) }}>
1411
{{ $slot }}
1512
</button>
1613
@endif
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
@props(['link' => null])
1+
@php
2+
$classes = 'inline-flex items-center justify-center py-2 px-4 border-0 text-sm font-medium rounded-lg text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-green-500 dark:ring-offset-gray-900';
3+
@endphp
24

3-
@if ($link)
4-
<x-link
5-
:href="$link"
6-
{{ $attributes->twMerge(['class' => 'inline-flex items-center justify-center py-2 px-4 border-0 text-sm font-medium rounded-lg text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-green-500 dark:ring-offset-gray-900']) }}
7-
>
5+
@if ($attributes->hasAny(['href', ':href']))
6+
<x-link :href="$href" {{ $attributes->twMerge(['class' => $classes]) }}>
87
{{ $slot }}
98
</x-link>
109
@else
11-
<button
12-
{{ $attributes->twMerge(['class' => 'inline-flex items-center justify-center py-2 px-4 border-0 text-sm font-medium rounded-lg text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-green-500 dark:ring-offset-gray-900']) }}
13-
>
10+
<button {{ $attributes->twMerge(['class' => $classes]) }}>
1411
{{ $slot }}
1512
</button>
1613
@endif

resources/views/components/dropdown-profile.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class="flex rounded-full bg-skin-menu text-sm focus:outline-none focus:ring-2 fo
1010
aria-haspopup="true"
1111
x-bind:aria-expanded="open.toString()"
1212
>
13-
<span class="sr-only">Ouverture du menu</span>
13+
<span class="sr-only">{{ __('global.open_navigation') }}</span>
1414
<x-user.avatar :user="Auth::user()" class="size-8" />
1515
</button>
1616
</div>
@@ -24,7 +24,7 @@ class="flex rounded-full bg-skin-menu text-sm focus:outline-none focus:ring-2 fo
2424
x-transition:leave-start="scale-100 transform opacity-100"
2525
x-transition:leave-end="scale-95 transform opacity-0"
2626
class="absolute right-0 mt-2 w-60 origin-top-right divide-y divide-skin-light rounded-md bg-skin-menu py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
27-
x-ref="menu-items"
27+
x-ref="menu"
2828
role="menu"
2929
aria-orientation="vertical"
3030
aria-labelledby="user-menu-button"

resources/views/components/layouts/footer.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="mx-auto max-w-7xl px-4 sm:px-6">
44
<div class="py-12 lg:grid lg:grid-cols-3 lg:gap-8 lg:py-16">
55
<div class="space-y-3">
6-
<x-brand class="h-12 w-auto text-white sm:h-16" />
6+
<x-brand class="h-12 w-auto text-white sm:h-16" aria-hidden="true" />
77
<p class="inline-flex flex-wrap items-center text-gray-400 text-sm">
88
<a href="https://github.com/caneco/laravel-country-logomarks" class="font-medium text-gray-300 underline">
99
Laravel Country Logomarks
@@ -23,9 +23,8 @@ class="ml-2 size-6 rounded-full"
2323
</h3>
2424
<ul class="mt-6 space-y-3">
2525
<x-footer-link :title="__('global.navigation.about')" :url="route('about')" />
26-
<x-footer-link :title="__('global.navigation.podcasts')" url="#" soon />
27-
<x-footer-link :title="__('global.navigation.jobs')" url="#" soon />
2826
<x-footer-link :title="__('global.navigation.sponsors')" :url="route('sponsors')" />
27+
<x-footer-link :title="__('global.navigation.snippets')" url="https://snippets.laravel.cm" />
2928
<x-footer-link
3029
:title="__('global.navigation.branding')"
3130
url="https://github.com/caneco/laravel-country-logomarks/blob/main/src/cm/README.md"

0 commit comments

Comments
 (0)