mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
Redesign OC2 listing page
This commit is contained in:
parent
e79fd20801
commit
0d53e59dbd
17
config/livewire.php
Normal file
17
config/livewire.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'temporary_file_upload' => [
|
||||||
|
'disk' => env('LIVEWIRE_TEMPORARY_FILE_UPLOAD_DISK', 'local'),
|
||||||
|
'rules' => null,
|
||||||
|
'directory' => null,
|
||||||
|
'middleware' => null,
|
||||||
|
'preview_mimes' => [
|
||||||
|
'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
|
||||||
|
'mov', 'avi', 'wmv', 'mp3', 'm4a',
|
||||||
|
'jpg', 'jpeg', 'mpga', 'webp', 'wma',
|
||||||
|
],
|
||||||
|
'max_upload_time' => 5,
|
||||||
|
'cleanup' => true,
|
||||||
|
],
|
||||||
|
];
|
||||||
@ -61,6 +61,7 @@
|
|||||||
$citiesRouteTemplate = \Illuminate\Support\Facades\Route::has('locations.cities')
|
$citiesRouteTemplate = \Illuminate\Support\Facades\Route::has('locations.cities')
|
||||||
? route('locations.cities', ['country' => '__COUNTRY__'], false)
|
? route('locations.cities', ['country' => '__COUNTRY__'], false)
|
||||||
: '';
|
: '';
|
||||||
|
$simplePage = trim((string) $__env->yieldContent('simple_page')) === '1';
|
||||||
@endphp
|
@endphp
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="{{ in_array(app()->getLocale(), ['ar']) ? 'rtl' : 'ltr' }}">
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="{{ in_array(app()->getLocale(), ['ar']) ? 'rtl' : 'ltr' }}">
|
||||||
@ -75,8 +76,33 @@
|
|||||||
<body @class([
|
<body @class([
|
||||||
'min-h-screen font-sans antialiased',
|
'min-h-screen font-sans antialiased',
|
||||||
'bg-slate-50' => $demoLandingMode,
|
'bg-slate-50' => $demoLandingMode,
|
||||||
|
'bg-[#f5f5f7]' => $simplePage && ! $demoLandingMode,
|
||||||
])>
|
])>
|
||||||
@unless($demoLandingMode)
|
@if(!$demoLandingMode && $simplePage)
|
||||||
|
<nav class="sticky top-0 z-50 border-b border-black/5 bg-white/80 backdrop-blur-2xl">
|
||||||
|
<div class="mx-auto flex min-h-[76px] max-w-[1120px] items-center justify-between gap-4 px-4">
|
||||||
|
<a href="{{ route('home') }}" class="oc-brand">
|
||||||
|
@if($siteLogoUrl)
|
||||||
|
<img src="{{ $siteLogoUrl }}" alt="{{ $siteName }}" class="oc-brand-image w-auto rounded-xl">
|
||||||
|
@else
|
||||||
|
<span class="brand-logo" aria-hidden="true"></span>
|
||||||
|
@endif
|
||||||
|
<span class="brand-text leading-none">{{ $siteName }}</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<div class="flex items-center gap-3">
|
||||||
|
@auth
|
||||||
|
<a href="{{ route('panel.listings.index') }}" class="inline-flex min-h-11 items-center justify-center rounded-full border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-700 transition hover:border-slate-300 hover:text-slate-900">
|
||||||
|
My Listings
|
||||||
|
</a>
|
||||||
|
@endauth
|
||||||
|
<a href="{{ route('home') }}" class="inline-flex min-h-11 items-center justify-center rounded-full bg-slate-900 px-5 text-sm font-semibold text-white transition hover:bg-slate-700">
|
||||||
|
Exit
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
@elseif(!$demoLandingMode)
|
||||||
<nav class="market-nav-surface sticky top-0 z-50">
|
<nav class="market-nav-surface sticky top-0 z-50">
|
||||||
<div class="oc-nav-wrap">
|
<div class="oc-nav-wrap">
|
||||||
<div class="oc-nav-main">
|
<div class="oc-nav-main">
|
||||||
@ -314,7 +340,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
@endunless
|
@endif
|
||||||
@if(!$demoLandingMode && $demoRemainingLabel)
|
@if(!$demoLandingMode && $demoRemainingLabel)
|
||||||
<div class="sticky top-0 z-40 border-b border-amber-200 bg-amber-50/95 backdrop-blur-md">
|
<div class="sticky top-0 z-40 border-b border-amber-200 bg-amber-50/95 backdrop-blur-md">
|
||||||
<div class="mx-auto flex min-h-12 max-w-[1320px] items-center justify-center px-4 py-2 text-center text-sm font-semibold text-amber-900">
|
<div class="mx-auto flex min-h-12 max-w-[1320px] items-center justify-center px-4 py-2 text-center text-sm font-semibold text-amber-900">
|
||||||
@ -338,7 +364,7 @@
|
|||||||
'site-main',
|
'site-main',
|
||||||
'min-h-screen' => $demoLandingMode,
|
'min-h-screen' => $demoLandingMode,
|
||||||
])>@yield('content')</main>
|
])>@yield('content')</main>
|
||||||
@unless($demoLandingMode)
|
@if(!$demoLandingMode && !$simplePage)
|
||||||
<footer class="mt-14 bg-slate-100 text-slate-600 border-t border-slate-200">
|
<footer class="mt-14 bg-slate-100 text-slate-600 border-t border-slate-200">
|
||||||
<div class="max-w-[1320px] mx-auto px-4 py-12">
|
<div class="max-w-[1320px] mx-auto px-4 py-12">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
||||||
@ -390,7 +416,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
@endunless
|
@endif
|
||||||
@livewireScripts
|
@livewireScripts
|
||||||
<script>
|
<script>
|
||||||
(() => {
|
(() => {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user