mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
84 lines
4.2 KiB
PHP
84 lines
4.2 KiB
PHP
<div class="bg-21gray flex flex-col h-screen justify-between">
|
|
{{-- HEADER --}}
|
|
<livewire:frontend.header :country="$country"/>
|
|
{{-- MAIN --}}
|
|
<section class="w-full mb-12">
|
|
<div class="max-w-screen-2xl mx-auto px-2 sm:px-10 space-y-4 py-4">
|
|
<div class="w-full flex justify-end">
|
|
<x-button
|
|
x-data="{
|
|
textToCopy: '{{ route('meetup.ics', ['country' => $country]) }}',
|
|
}"
|
|
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
|
|
amber>
|
|
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
|
|
{{ __('Calendar Stream-Url for all meetup events') }}
|
|
</x-button>
|
|
</div>
|
|
<div class="flex flex-col sm:flex-row">
|
|
<div class="flex flex-col">
|
|
<h1 class="mb-6 text-5xl font-extrabold leading-none tracking-normal text-gray-200 sm:text-6xl md:text-6xl lg:text-7xl md:tracking-tight">
|
|
{{ __('Bitcoiner') }} <span
|
|
class="w-full text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-amber-500 to-amber-200 lg:inline">{{ __('Meetups') }}</span><br
|
|
class="lg:block hidden">
|
|
{{ __('Plebs together strong 💪') }}
|
|
</h1>
|
|
<p class="px-0 mb-6 text-lg text-gray-600 md:text-xl">
|
|
{{ __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!') }}
|
|
</p>
|
|
</div>
|
|
@php
|
|
$focus = '';
|
|
$map = $country->code . '_merc';
|
|
if (!\File::exists(public_path('vendor/jvector/maps/' . $country->code . '.js'))) {
|
|
$map = 'europe_merc';
|
|
$focus = 'focusOn: {lat:'.$country->latitude.',lng:'.$country->longitude.',scale:8,animate:true},';
|
|
}
|
|
@endphp
|
|
<div
|
|
wire:ignore
|
|
class="w-full flex justify-center"
|
|
x-data="{
|
|
init() {
|
|
let markers = {{ Js::from($markers) }};
|
|
|
|
$('#map').vectorMap({
|
|
{{ $focus }}
|
|
zoomButtons : false,
|
|
zoomOnScroll: true,
|
|
map: '{{ $map }}',
|
|
backgroundColor: 'transparent',
|
|
markers: markers.map(function(h){ return {name: h.name, latLng: h.coords} }),
|
|
onMarkerClick: function(event, index) {
|
|
$wire.call('filterByMarker', markers[index].id)
|
|
},
|
|
markerStyle: {
|
|
initial: {
|
|
image: '{{ asset('img/btc.png') }}',
|
|
}
|
|
},
|
|
regionStyle: {
|
|
initial: {
|
|
fill: '#151515'
|
|
},
|
|
hover: {
|
|
'fill-opacity': 1,
|
|
cursor: 'default'
|
|
},
|
|
}
|
|
});
|
|
}
|
|
}"
|
|
>
|
|
<div id="map" style="width: 100%;" class="h-[200px] sm:h-[400px] my-4 sm:my-0"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="max-w-screen-2xl mx-auto px-2 sm:px-10 space-y-4" id="table">
|
|
<livewire:tables.meetup-table :country="$country->code"/>
|
|
</div>
|
|
</section>
|
|
{{-- FOOTER --}}
|
|
<livewire:frontend.footer/>
|
|
</div>
|