-
Notifications
You must be signed in to change notification settings - Fork 0
main/production #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
main/production #21
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,46 @@ | ||
| <nav class="mt-12 text-xl md:text-2xl" x-data="navigation"> | ||
|
|
||
| <div class="flex justify-center md:justify-start"> | ||
| {{-- Logo & Language Switcher --}} | ||
| <div class="flex justify-between items-center"> | ||
| <a href="{{ localized_route('start.index') }}" title="Start page" class="group inline-block"> | ||
| <x-logo-paperflakes/> | ||
| </a> | ||
|
|
||
| @if(!empty($locales)) | ||
| <div class="hidden lg:flex gap-2 text-lg items-center"> | ||
| @foreach($locales as $language) | ||
| <form method="POST" action="{{ route('language.update') }}"> | ||
| @csrf | ||
| <input type="hidden" name="language" value="{{ $language->value }}"> | ||
| <button type="submit" class="hover:text-black hover:font-semibold transition cursor-pointer" | ||
| title="{{ __('Update to :lang language', ['lang' => $language->getLabel()]) }}"> | ||
| {{ $language->getLabel() }} | ||
| </button> | ||
| </form> | ||
| @if (!$loop->last) | ||
| <span class="text-gray-400 font-light">|</span> | ||
| @endif | ||
| @endforeach | ||
| </div> | ||
| @endif | ||
| </div> | ||
|
|
||
| {{-- Navigation & mobile toggle --}} | ||
| <div class="mt-2 flex items-center justify-between"> | ||
|
|
||
| @include('layouts._partials._navigation_desktop') | ||
|
|
||
| <button @click="toggle" | ||
| class="flex items-center gap-1 md:hidden hover:text-black hover:font-semibold transition focus:outline-none mx-auto"> | ||
| class="flex items-center gap-1 lg:hidden hover:text-black hover:font-semibold transition focus:outline-none mx-auto"> | ||
| <span>{{ __('Menu') }}</span> | ||
|
|
||
| <div class="transition-transform duration-300 ease-in-out" x-bind:class="icon_rotate"> | ||
|
|
||
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6"> | ||
| <path fill-rule="evenodd" | ||
| d="M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z" | ||
| clip-rule="evenodd"/> | ||
| </svg> | ||
| </div> | ||
| </button> | ||
|
|
||
| </div> | ||
|
|
||
| @include('layouts._partials._navigation_mobile') | ||
|
|
||
| </nav> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The
flex-rowclass is redundant becauseflexdefaults to row direction; consider removing it for brevity and clarity.