mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add languages
This commit is contained in:
@@ -20,19 +20,31 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col justify-between text-center md:flex-row">
|
||||
<p class="order-last text-sm leading-tight text-gray-500 md:order-first"> Built with ❤️ by our
|
||||
team. </p>
|
||||
<p class="order-last text-sm leading-tight text-gray-500 md:order-first">
|
||||
{{ __('Built with ❤️ by our team.') }}
|
||||
</p>
|
||||
<ul class="flex flex-row justify-center pb-3 -ml-4 -mr-4 text-sm">
|
||||
<li><a href="https://github.com/affektde/einundzwanzig-bitcoin-school" target="_blank"
|
||||
<li>
|
||||
<a href="https://github.com/affektde/einundzwanzig-bitcoin-school" target="_blank"
|
||||
class="px-4 text-gray-500 hover:text-white">
|
||||
<i class="fa fab fa-github mr-1"></i>
|
||||
Github
|
||||
</a></li>
|
||||
<li><a href="https://bitcoin.productlift.dev/t/wunschzettel" target="_blank"
|
||||
{{ __('Github') }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://bitcoin.productlift.dev/t/wunschzettel" target="_blank"
|
||||
class="px-4 text-gray-500 hover:text-white">
|
||||
<i class="fa fa-thin fa-thought-bubble mr-1"></i>
|
||||
Wunschzettel/Feedback
|
||||
</a></li>
|
||||
{{ __('Wish List/Feedback') }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/languages" target="_blank"
|
||||
class="px-4 text-gray-500 hover:text-white">
|
||||
<i class="fa fa-thin fa-language mr-1"></i>
|
||||
{{ __('Translate (:lang :percent%)', ['lang' => $language->language, 'percent' => $percentTranslated]) }}
|
||||
</a>
|
||||
</li>
|
||||
{{-- <li><a href="#_" class="px-4 text-gray-500 hover:text-white">FAQ's</a></li>--}}
|
||||
{{-- <li><a href="#_" class="px-4 text-gray-500 hover:text-white">Terms</a></li>--}}
|
||||
</ul>
|
||||
|
||||
@@ -13,80 +13,80 @@
|
||||
|
||||
<a href="{{ route('welcome', ['c' => $c]) }}"
|
||||
class="text-gray-400 mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Zurück zur Übersicht
|
||||
{{ __('Back to the overview') }}
|
||||
</a>
|
||||
|
||||
@if(str(request()->route()->getName())->contains('school.'))
|
||||
<a href="{{ route('school.table.city', ['country' => $c, '#table']) }}"
|
||||
class="{{ request()->routeIs('school.table.city') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Städte
|
||||
{{ __('Cities') }}
|
||||
</a>
|
||||
<a href="{{ route('school.table.lecturer', ['country' => $c, '#table']) }}"
|
||||
class="{{ request()->routeIs('school.table.lecturer') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Dozenten
|
||||
{{ __('Lecturers') }}
|
||||
</a>
|
||||
<a href="{{ route('school.table.venue', ['country' => $c, '#table']) }}"
|
||||
class="{{ request()->routeIs('school.table.venue') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Veranstaltungs-Orte
|
||||
{{ __('Venues') }}
|
||||
</a>
|
||||
<a href="{{ route('school.table.course', ['country' => $c, '#table']) }}"
|
||||
class="{{ request()->routeIs('school.table.course') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Kurse
|
||||
{{ __('Courses') }}
|
||||
</a>
|
||||
<a href="{{ route('school.table.event', ['country' => $c, '#table']) }}"
|
||||
class="{{ request()->routeIs('school.table.event') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Termine
|
||||
{{ __('Events') }}
|
||||
</a>
|
||||
@endif
|
||||
@if(str(request()->route()->getName())->contains('library.'))
|
||||
<a href="{{ route('library.table.libraryItems', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('library.table.libraryItems') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Bibliothek
|
||||
{{ __('Library') }}
|
||||
</a>
|
||||
@if(auth()->user()?->is_lecturer)
|
||||
<a href="{{ route('library.table.lecturer', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('library.table.lecturer') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Dozenten-Bibliothek
|
||||
{{ __('Library for lecturers') }}
|
||||
</a>
|
||||
@endif
|
||||
@endif
|
||||
@if(str(request()->route()->getName())->contains('bookCases.'))
|
||||
<a href="{{ route('bookCases.table.city', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('bookCases.table.city') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Stadt-Suche
|
||||
{{ __('City search') }}
|
||||
</a>
|
||||
<a href="{{ route('bookCases.table.bookcases', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('bookCases.table.bookcases') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Bücher-Schränke
|
||||
{{ __('Bookcases') }}
|
||||
</a>
|
||||
@endif
|
||||
@if(str(request()->route()->getName())->contains('meetup.'))
|
||||
<a href="{{ route('meetup.world', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('meetup.world') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Welt-Karte
|
||||
{{ __('World map') }}
|
||||
</a>
|
||||
<a href="{{ route('meetup.table.meetup', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('meetup.table.meetup') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Meetups
|
||||
{{ __('Meetups') }}
|
||||
</a>
|
||||
<a href="{{ route('meetup.table.meetupEvent', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('meetup.table.meetupEvent') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Meetup-Termine
|
||||
{{ __('Meetup dates') }}
|
||||
</a>
|
||||
@endif
|
||||
@if(str(request()->route()->getName())->contains('bitcoinEvent.'))
|
||||
<a href="{{ route('bitcoinEvent.table.bitcoinEvent', ['country' => $c]) }}"
|
||||
class="{{ request()->routeIs('bitcoinEvent.table.bitcoinEvent') ? 'text-amber-500 underline' : 'text-gray-400' }} mr-5 font-medium leading-6 hover:text-gray-300">
|
||||
Veranstaltungen
|
||||
{{ __('Events') }}
|
||||
</a>
|
||||
@endif
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="max-w-sm text-lg text-gray-200">
|
||||
<div class="max-w-sm text-lg text-gray-200 flex flex-row space-x-2">
|
||||
<x-select
|
||||
label="Land wechseln"
|
||||
placeholder="Land wechseln"
|
||||
label="{{ __('Change country') }}"
|
||||
placeholder="{{ __('Change country') }}"
|
||||
wire:model="c"
|
||||
:clearable="false"
|
||||
:searchable="true"
|
||||
@@ -98,6 +98,16 @@
|
||||
'config' => ['src' => 'flag']
|
||||
]"
|
||||
/>
|
||||
<x-select
|
||||
label="{{ __('Change language') }}"
|
||||
placeholder="{{ __('Change language') }}"
|
||||
wire:model="l"
|
||||
:clearable="false"
|
||||
:searchable="true"
|
||||
:async-data="route('api.languages.index')"
|
||||
option-label="language"
|
||||
option-value="language"
|
||||
/>
|
||||
</div>
|
||||
@auth
|
||||
<div></div>
|
||||
@@ -105,11 +115,11 @@
|
||||
<div class="inline-flex items-center ml-5 my-2 text-lg space-x-6 lg:justify-end">
|
||||
<a href="{{ route('auth.ln') }}"
|
||||
class="text-xs sm:text-base font-medium leading-6 text-gray-400 hover:text-gray-300 whitespace-no-wrap transition duration-150 ease-in-out">
|
||||
Login
|
||||
{{ __('Login') }}
|
||||
</a>
|
||||
<a href="{{ route('auth.ln') }}"
|
||||
class="text-xs sm:text-base inline-flex items-center justify-center px-4 py-2 font-medium leading-6 text-gray-200 hover:text-white whitespace-no-wrap bg-gray-800 border border-transparent rounded shadow-sm hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-800">
|
||||
Registrieren
|
||||
{{ __('Registration') }}
|
||||
</a>
|
||||
</div>
|
||||
@endauth
|
||||
@@ -124,12 +134,11 @@
|
||||
<div>
|
||||
<h1 class="mb-6 text-5xl font-extrabold leading-none max-w-5xl mx-auto tracking-normal text-gray-200 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
|
||||
Bitcoin <span
|
||||
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">Kurse</span>
|
||||
für deine<br class="lg:block hidden"> Reise in den Kaninchenbau.
|
||||
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">{{ __('Courses') }}</span>
|
||||
</h1>
|
||||
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl lg:px-24"> Wähle deine Stadt, suche im
|
||||
Umkreis nach
|
||||
Kursen und wähle ein für dich passendes Thema aus. </p>
|
||||
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl lg:px-24">
|
||||
{{ __('Choose your city, search for courses in the surrounding area and select a topic that suits you.') }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -137,11 +146,11 @@
|
||||
<div>
|
||||
<h1 class="mb-6 text-5xl font-extrabold leading-none max-w-5xl mx-auto tracking-normal text-gray-200 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
|
||||
Bitcoin <span
|
||||
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">Content</span>
|
||||
für deine<br class="lg:block hidden"> Reise in den Kaninchenbau.
|
||||
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">{{ __('Content') }}</span>
|
||||
</h1>
|
||||
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl lg:px-24"> Wähle ein für dich passendes
|
||||
Thema aus. </p>
|
||||
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl lg:px-24">
|
||||
{{ __('Choose a topic that is right for you.') }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div>
|
||||
<div class="border-b border-gray-200 pb-5 sm:pb-0 my-6">
|
||||
<h3 class="text-lg font-medium leading-6 text-gray-200">Suche</h3>
|
||||
<h3 class="text-lg font-medium leading-6 text-gray-200">{{ __('Search') }}</h3>
|
||||
<div class="mt-3 sm:mt-4">
|
||||
<!-- Tabs at small breakpoint and up -->
|
||||
<div class="hidden sm:block">
|
||||
@@ -10,19 +10,19 @@
|
||||
$notCurrentTab = 'border-transparent text-gray-200 hover:text-gray-400 hover:border-gray-300';
|
||||
@endphp
|
||||
<a href="{{ route('school.table.city', ['country' => $country]).'#table' }}"
|
||||
class="{{ request()->routeIs('school.table.city') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">Städte</a>
|
||||
class="{{ request()->routeIs('school.table.city') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ __('Cities') }}</a>
|
||||
|
||||
<a href="{{ route('school.table.lecturer', ['country' => $country]).'#table' }}"
|
||||
class="{{ request()->routeIs('school.table.lecturer') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">Dozenten</a>
|
||||
class="{{ request()->routeIs('school.table.lecturer') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ __('Lecturers') }}</a>
|
||||
|
||||
<a href="{{ route('school.table.venue', ['country' => $country]).'#table' }}"
|
||||
class="{{ request()->routeIs('school.table.venue') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">Veranstaltungs-Orte</a>
|
||||
class="{{ request()->routeIs('school.table.venue') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ __('Venues') }}</a>
|
||||
|
||||
<a href="{{ route('school.table.course', ['country' => $country]).'#table' }}"
|
||||
class="{{ request()->routeIs('school.table.course') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">Kurse</a>
|
||||
class="{{ request()->routeIs('school.table.course') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ __('Courses') }}</a>
|
||||
|
||||
<a href="{{ route('school.table.event', ['country' => $country]).'#table' }}"
|
||||
class="{{ request()->routeIs('school.table.event') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">Termine</a>
|
||||
class="{{ request()->routeIs('school.table.event') ? $currentTab : $notCurrentTab }} whitespace-nowrap pb-4 px-1 border-b-2 font-medium text-sm">{{ __('Dates') }}</a>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
src="https://cdn.devdojo.com/tails/images/swirl-white.svg">
|
||||
<div class="container relative z-10 px-4 mx-auto">
|
||||
<div class="w-full mb-8 sm:w-1/2 md:w-3/4 sm:pr-4 md:pr-12 sm:-mb-32 md:-mb-24 lg:-mb-36 xl:-mb-28">
|
||||
<h2 class="tracking-widest text-amber-500 uppercase">Einundzwanzig</h2>
|
||||
<p class="my-3 text-5xl font-bold tracking-tighter text-amber-500 lg:text-6xl">Bitcoin Portal</p>
|
||||
<h2 class="tracking-widest text-amber-500 uppercase">{{ __('Einundzwanzig') }}</h2>
|
||||
<p class="my-3 text-5xl font-bold tracking-tighter text-amber-500 lg:text-6xl">{{ __('Bitcoin Portal') }}</p>
|
||||
<p class="max-w-sm text-lg text-gray-200">
|
||||
{{ __('Eine Bitcoin Community für alle.') }}
|
||||
{{ __('A Bitcoin community for all.') }}
|
||||
</p>
|
||||
<div class="max-w-sm text-lg text-gray-200">
|
||||
<div class="max-w-sm text-lg text-gray-200 space-x-2 flex flex-row">
|
||||
<x-select
|
||||
label="Land wechseln"
|
||||
placeholder="Land wechseln"
|
||||
label="{{ __('Change country') }}"
|
||||
placeholder="{{ __('Change country') }}"
|
||||
wire:model="c"
|
||||
:clearable="false"
|
||||
:searchable="true"
|
||||
@@ -26,6 +26,16 @@
|
||||
'config' => ['src' => 'flag']
|
||||
]"
|
||||
/>
|
||||
<x-select
|
||||
label="{{ __('Change language') }}"
|
||||
placeholder="{{ __('Change language') }}"
|
||||
wire:model="l"
|
||||
:clearable="false"
|
||||
:searchable="true"
|
||||
:async-data="route('api.languages.index')"
|
||||
option-label="language"
|
||||
option-value="language"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid w-full grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4">
|
||||
@@ -45,9 +55,9 @@
|
||||
</div>
|
||||
<div class="relative z-10 flex flex-col items-start justify-start w-full px-6 py-7">
|
||||
<span
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">Plebs together strong</span>
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">{{ __('Plebs together strong') }}</span>
|
||||
<h4 class="text-4xl font-bold tracking-tight text-gray-100 sm:text-3xl md:text-2xl lg:text-3xl">
|
||||
Meetups
|
||||
{{ __('Meetups') }}
|
||||
</h4>
|
||||
</div>
|
||||
</a>
|
||||
@@ -69,9 +79,9 @@
|
||||
</div>
|
||||
<div class="relative z-10 flex flex-col items-start justify-start w-full px-6 py-7">
|
||||
<span
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">Education</span>
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">{{ __('Education') }}</span>
|
||||
<h4 class="text-4xl font-bold tracking-tight text-gray-100 sm:text-3xl md:text-2xl lg:text-3xl">
|
||||
Kurse
|
||||
{{ __('Courses') }}
|
||||
</h4>
|
||||
</div>
|
||||
</a>
|
||||
@@ -90,9 +100,9 @@
|
||||
</div>
|
||||
<div class="relative z-10 flex flex-col items-start justify-start w-full px-6 py-7">
|
||||
<span
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">Content</span>
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">{{ _('Content') }}</span>
|
||||
<h4 class="text-4xl font-bold tracking-tight text-gray-100 sm:text-3xl md:text-2xl lg:text-3xl">
|
||||
Bibliothek
|
||||
{{ __('Library') }}
|
||||
</h4>
|
||||
</div>
|
||||
</a>
|
||||
@@ -114,9 +124,9 @@
|
||||
</div>
|
||||
<div class="relative z-10 flex flex-col items-start justify-start w-full px-6 py-7">
|
||||
<span
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">Worldwide</span>
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">{{ __('Worldwide') }}</span>
|
||||
<h4 class="text-2xl sm:text-4xl font-bold tracking-tight text-gray-100 sm:text-3xl md:text-2xl lg:text-3xl">
|
||||
Veranstaltungen
|
||||
{{ __('Events') }}
|
||||
</h4>
|
||||
</div>
|
||||
</a>
|
||||
@@ -138,9 +148,9 @@
|
||||
</div>
|
||||
<div class="relative z-10 flex flex-col items-start justify-start w-full px-6 py-7">
|
||||
<span
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">Reading</span>
|
||||
class="px-2 py-1 mb-3 text-xs font-semibold tracking-tight text-white uppercase bg-amber-500 rounded-md">{{ __('Reading') }}</span>
|
||||
<h4 class="text-4xl font-bold tracking-tight text-gray-100 sm:text-3xl md:text-2xl lg:text-3xl">
|
||||
Bücher-Schränke
|
||||
{{ __('Bookcases') }}
|
||||
</h4>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user