Optimize academy
This commit is contained in:
@@ -43,7 +43,8 @@
|
||||
</x-slot>
|
||||
</x-nova-page-header>
|
||||
|
||||
<div class="border-b border-white/10 bg-nova-900/90 backdrop-blur-md">
|
||||
<div class="stories-index-page">
|
||||
<div class="stories-index-page__tabs border-b border-white/10 bg-nova-900/90 backdrop-blur-md">
|
||||
<div class="px-6 md:px-10">
|
||||
<nav data-stories-tabs class="flex items-center gap-0 -mb-px nb-scrollbar-none overflow-x-auto" role="tablist" aria-label="Stories sections">
|
||||
@foreach($storyTabs as $index => $tab)
|
||||
@@ -61,7 +62,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="border-b border-white/10 bg-nova-900/70">
|
||||
<div class="stories-index-page__categories border-b border-white/10 bg-nova-900/70">
|
||||
<div class="px-6 md:px-10 py-6">
|
||||
<div class="flex gap-3 overflow-x-auto nb-scrollbar-none pb-1">
|
||||
<a href="{{ route('stories.index') }}" class="whitespace-nowrap rounded-full px-3 py-1.5 text-sm font-semibold transition-colors {{ $currentCategory === '' ? 'bg-orange-500 text-white' : 'border border-white/10 bg-white/[0.05] text-white/70 hover:bg-white/[0.1] hover:text-white' }}">All</a>
|
||||
@@ -77,7 +78,7 @@
|
||||
<div class="px-6 pb-16 md:px-10">
|
||||
<div class="space-y-10">
|
||||
@if($featured)
|
||||
<section id="featured" class="overflow-hidden rounded-xl border border-gray-700 bg-gray-800/70 shadow-lg">
|
||||
<section id="featured" class="stories-index-page__featured overflow-hidden rounded-xl border border-gray-700 bg-gray-800/70 shadow-lg">
|
||||
<a href="{{ route('stories.show', $featured->slug) }}" class="grid gap-0 lg:grid-cols-2">
|
||||
<div class="aspect-video overflow-hidden bg-gray-900">
|
||||
@if($featured->cover_url)
|
||||
@@ -129,6 +130,7 @@
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
@@ -44,7 +44,24 @@
|
||||
@endsection
|
||||
|
||||
@section('page-content')
|
||||
<div class="mx-auto grid max-w-7xl gap-8 lg:grid-cols-12">
|
||||
<div id="story-page" class="mx-auto grid max-w-7xl gap-8 lg:grid-cols-12">
|
||||
<style>
|
||||
@media (prefers-color-scheme: light) {
|
||||
#story-page { color-scheme: light; }
|
||||
#story-page .rounded-xl.border { background: #ffffff !important; border-color: #e6e6ef !important; }
|
||||
#story-page img { background: transparent; }
|
||||
#story-page h1.text-white { color: #0f172a !important; }
|
||||
#story-page .text-white { color: #0f172a !important; }
|
||||
#story-page .text-gray-300 { color: #6b7280 !important; }
|
||||
#story-page .text-gray-400 { color: #9ca3af !important; }
|
||||
#story-page .prose, #story-page .story-prose, #story-page .prose * { color: #0f172a !important; }
|
||||
#story-page .prose a, #story-page a { color: #0f6fbf !important; }
|
||||
#story-page .rounded-xl.border .p-6 { background: transparent !important; }
|
||||
#story-page .rounded-xl.border.bg-gray-900\/50, #story-page .bg-gray-900\/50 { background: rgba(17,24,39,0.05) !important; }
|
||||
#story-page textarea, #story-page button { color: inherit !important; }
|
||||
#story-page button, #story-page .w-full.rounded-lg { background: #fef2f2 !important; color: #9f1239 !important; border-color: #fbcfe8 !important; }
|
||||
}
|
||||
</style>
|
||||
<article class="lg:col-span-8">
|
||||
<div class="overflow-hidden rounded-xl border border-gray-700 bg-gray-800/70">
|
||||
@if($story->cover_url)
|
||||
|
||||
Reference in New Issue
Block a user