removed dark mod and applied fixes for text colors
This commit is contained in:
@@ -69,7 +69,7 @@ new class extends Component
|
||||
<div class="mb-6 flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center">
|
||||
<div>
|
||||
<flux:heading size="xl">{{ __('pages.edit_page') }}: {{ $page->title_en }}</flux:heading>
|
||||
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">
|
||||
<p class="mt-1 text-sm text-zinc-500">
|
||||
{{ __('pages.last_updated') }}: {{ $page->updated_at->diffForHumans() }}
|
||||
</p>
|
||||
</div>
|
||||
@@ -81,19 +81,19 @@ new class extends Component
|
||||
</flux:callout>
|
||||
@endif
|
||||
|
||||
<div class="rounded-lg border border-zinc-200 bg-white p-6 dark:border-zinc-700 dark:bg-zinc-800">
|
||||
<div class="rounded-lg border border-zinc-200 bg-white p-6">
|
||||
<!-- Language Tabs -->
|
||||
<div class="mb-6 border-b border-zinc-200 dark:border-zinc-700">
|
||||
<div class="mb-6 border-b border-zinc-200">
|
||||
<nav class="-mb-px flex gap-4">
|
||||
<button
|
||||
wire:click="setTab('ar')"
|
||||
class="{{ $activeTab === 'ar' ? 'border-blue-500 text-blue-600 dark:text-blue-400' : 'border-transparent text-zinc-500 hover:border-zinc-300 hover:text-zinc-700 dark:text-zinc-400' }} border-b-2 px-1 pb-3 text-sm font-medium transition-colors"
|
||||
class="{{ $activeTab === 'ar' ? 'border-blue-500 text-blue-600' : 'border-transparent text-zinc-500 hover:border-zinc-300 hover:text-zinc-700' }} border-b-2 px-1 pb-3 text-sm font-medium transition-colors"
|
||||
>
|
||||
{{ __('pages.arabic') }}
|
||||
</button>
|
||||
<button
|
||||
wire:click="setTab('en')"
|
||||
class="{{ $activeTab === 'en' ? 'border-blue-500 text-blue-600 dark:text-blue-400' : 'border-transparent text-zinc-500 hover:border-zinc-300 hover:text-zinc-700 dark:text-zinc-400' }} border-b-2 px-1 pb-3 text-sm font-medium transition-colors"
|
||||
class="{{ $activeTab === 'en' ? 'border-blue-500 text-blue-600' : 'border-transparent text-zinc-500 hover:border-zinc-300 hover:text-zinc-700' }} border-b-2 px-1 pb-3 text-sm font-medium transition-colors"
|
||||
>
|
||||
{{ __('pages.english') }}
|
||||
</button>
|
||||
@@ -108,7 +108,7 @@ new class extends Component
|
||||
<div wire:ignore>
|
||||
<div
|
||||
id="editor-ar"
|
||||
class="min-h-[300px] rounded-lg border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900"
|
||||
class="min-h-[300px] rounded-lg border border-zinc-200 bg-white"
|
||||
dir="rtl"
|
||||
></div>
|
||||
<textarea id="content_ar" wire:model="content_ar" class="hidden">{{ $content_ar }}</textarea>
|
||||
@@ -123,14 +123,14 @@ new class extends Component
|
||||
<div wire:ignore>
|
||||
<div
|
||||
id="editor-en"
|
||||
class="min-h-[300px] rounded-lg border border-zinc-200 bg-white dark:border-zinc-700 dark:bg-zinc-900"
|
||||
class="min-h-[300px] rounded-lg border border-zinc-200 bg-white"
|
||||
></div>
|
||||
<textarea id="content_en" wire:model="content_en" class="hidden">{{ $content_en }}</textarea>
|
||||
</div>
|
||||
</flux:field>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end gap-4 border-t border-zinc-200 pt-6 dark:border-zinc-700">
|
||||
<div class="flex items-center justify-end gap-4 border-t border-zinc-200 pt-6">
|
||||
<flux:button variant="ghost" :href="route('admin.pages.index')" wire:navigate>
|
||||
{{ __('common.cancel') }}
|
||||
</flux:button>
|
||||
@@ -150,16 +150,16 @@ new class extends Component
|
||||
<flux:heading size="lg" class="mb-4">{{ __('pages.preview') }}</flux:heading>
|
||||
|
||||
<div class="space-y-6">
|
||||
<div class="border-b border-zinc-200 pb-4 dark:border-zinc-700">
|
||||
<h3 class="mb-2 text-lg font-semibold text-zinc-600 dark:text-zinc-400">{{ __('pages.arabic') }}</h3>
|
||||
<h2 class="text-xl font-bold text-zinc-900 dark:text-zinc-100" dir="rtl">{{ $page->title_ar }}</h2>
|
||||
<div class="prose prose-sm mt-2 max-w-none dark:prose-invert" dir="rtl">{!! clean($content_ar) !!}</div>
|
||||
<div class="border-b border-zinc-200 pb-4">
|
||||
<h3 class="mb-2 text-lg font-semibold text-zinc-600">{{ __('pages.arabic') }}</h3>
|
||||
<h2 class="text-xl font-bold text-zinc-900" dir="rtl">{{ $page->title_ar }}</h2>
|
||||
<div class="prose prose-sm mt-2 max-w-none" dir="rtl">{!! clean($content_ar) !!}</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3 class="mb-2 text-lg font-semibold text-zinc-600 dark:text-zinc-400">{{ __('pages.english') }}</h3>
|
||||
<h2 class="text-xl font-bold text-zinc-900 dark:text-zinc-100">{{ $page->title_en }}</h2>
|
||||
<div class="prose prose-sm mt-2 max-w-none dark:prose-invert">{!! clean($content_en) !!}</div>
|
||||
<h3 class="mb-2 text-lg font-semibold text-zinc-600">{{ __('pages.english') }}</h3>
|
||||
<h2 class="text-xl font-bold text-zinc-900">{{ $page->title_en }}</h2>
|
||||
<div class="prose prose-sm mt-2 max-w-none">{!! clean($content_en) !!}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -181,45 +181,6 @@ new class extends Component
|
||||
.ql-container {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.dark .ql-toolbar {
|
||||
border-color: rgb(63 63 70);
|
||||
background: rgb(24 24 27);
|
||||
}
|
||||
|
||||
.dark .ql-container {
|
||||
border-color: rgb(63 63 70);
|
||||
background: rgb(24 24 27);
|
||||
}
|
||||
|
||||
.dark .ql-editor {
|
||||
color: rgb(244 244 245);
|
||||
}
|
||||
|
||||
.dark .ql-stroke {
|
||||
stroke: rgb(161 161 170);
|
||||
}
|
||||
|
||||
.dark .ql-fill {
|
||||
fill: rgb(161 161 170);
|
||||
}
|
||||
|
||||
.dark .ql-picker-label {
|
||||
color: rgb(161 161 170);
|
||||
}
|
||||
|
||||
.dark .ql-picker-options {
|
||||
background: rgb(39 39 42);
|
||||
border-color: rgb(63 63 70);
|
||||
}
|
||||
|
||||
.dark .ql-picker-item {
|
||||
color: rgb(244 244 245);
|
||||
}
|
||||
|
||||
.dark .ql-picker-item:hover {
|
||||
color: rgb(59 130 246);
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
|
||||
Reference in New Issue
Block a user