You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
Wip
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"dist/main.css": "/dist/main.9ed19130.css",
|
||||
"dist/main.css": "/dist/main.7df75636.css",
|
||||
"dist/main.js": "/dist/main.855339d4.js",
|
||||
"dist/455.3a7b4474.css": "/dist/455.3a7b4474.css",
|
||||
"dist/455.17bc016b.js": "/dist/455.17bc016b.js",
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
||||
"entrypoints": {
|
||||
"main": {
|
||||
"css": [
|
||||
"/dist/main.9ed19130.css"
|
||||
"/dist/main.7df75636.css"
|
||||
],
|
||||
"js": [
|
||||
"/dist/main.855339d4.js"
|
||||
|
||||
File diff suppressed because one or more lines are too long
+213
-220
@@ -2,127 +2,38 @@
|
||||
permalink: /theme/flasher/
|
||||
title: Flasher Theme
|
||||
description: The default notification theme for PHPFlasher with a clean design, colored borders, and accessible notifications for your web applications.
|
||||
handler: theme.flasher
|
||||
data-controller: theme-flasher
|
||||
---
|
||||
|
||||
# <i class="fa-solid fa-bolt text-purple-600 mr-2"></i> Flasher Theme
|
||||
<div class="pb-6 mb-8 border-b border-slate-200">
|
||||
<h1 class="text-3xl font-bold tracking-tight flex items-center mb-3">
|
||||
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-gradient-to-r from-purple-600 to-indigo-600 mr-3 shadow-sm">
|
||||
<i class="fa-solid fa-bolt text-white"></i>
|
||||
</span>
|
||||
Flasher Theme
|
||||
</h1>
|
||||
<p class="text-lg text-slate-600 max-w-3xl">The elegant, default notification system for PHPFlasher — designed for clarity, accessibility, and visual impact.</p>
|
||||
</div>
|
||||
|
||||
<p class="text-lg text-gray-700 mb-6">The sleek, elegant default notification style for PHPFlasher</p>
|
||||
|
||||
The Flasher theme comes built-in with PHPFlasher, providing professional notifications right out of the box. Each alert features a colored border that helps users quickly identify the message type (success, error, etc.).
|
||||
|
||||
<div class="p-5 mt-6 mb-6 border-l-4 border-blue-500 bg-blue-50 rounded-r-lg shadow-sm">
|
||||
<div class="p-5 border-l-4 border-blue-500 bg-blue-50 rounded-r-lg my-8">
|
||||
<div class="flex">
|
||||
<div class="flex-shrink-0">
|
||||
<i class="fa-solid fa-circle-info text-blue-500 text-xl"></i>
|
||||
<i class="fa-solid fa-circle-info text-blue-500 text-lg"></i>
|
||||
</div>
|
||||
<div class="ml-4">
|
||||
<div class="ml-3">
|
||||
<p class="text-blue-800">
|
||||
<span class="font-semibold">Just getting started?</span> Check out the <a href="/installation/" class="text-blue-600 underline hover:text-blue-800 transition-colors">installation guide</a> first to set up PHPFlasher.
|
||||
<span class="font-medium">New to PHPFlasher?</span> Start with the <a href="/installation/" class="text-blue-700 underline hover:text-blue-900 transition-colors">installation guide</a> before exploring themes.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
## <i class="fa-solid fa-wand-magic-sparkles text-purple-500 mr-2"></i> Getting Started
|
||||
## Introduction
|
||||
|
||||
Good news! The Flasher theme is already configured as the default when you install PHPFlasher. You don't need to do anything special to start using it.
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-1 gap-5 my-6">
|
||||
<div class="bg-gradient-to-br from-purple-50 to-indigo-50 rounded-lg border border-purple-100 p-5 shadow-sm">
|
||||
<div class="mb-3 flex items-center">
|
||||
<i class="fa-brands fa-php text-purple-600 text-xl mr-2"></i>
|
||||
<span class="font-bold text-purple-800">PHP</span>
|
||||
</div>
|
||||
<div class="bg-white rounded-md p-3 shadow-sm">
|
||||
<pre class="copyable language-php"><code>flash()->success('Your changes have been saved!');</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bg-gradient-to-br from-amber-50 to-yellow-50 rounded-lg border border-amber-100 p-5 shadow-sm">
|
||||
<div class="mb-3 flex items-center">
|
||||
<i class="fa-brands fa-js text-amber-500 text-xl mr-2"></i>
|
||||
<span class="font-bold text-amber-800">JavaScript</span>
|
||||
</div>
|
||||
<div class="bg-white rounded-md p-3 shadow-sm">
|
||||
<pre class="language-javascript"><code>flasher.success('Your changes have been saved!');</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
### <i class="fa-solid fa-wand-magic-sparkles text-purple-500 mr-2"></i> Setting Flasher as Default Theme
|
||||
|
||||
If you want to explicitly set Flasher as your default theme, here's how:
|
||||
|
||||
<div class="space-y-6 my-6">
|
||||
<div class="rounded-lg overflow-hidden border border-gray-200 shadow-sm">
|
||||
<div class="bg-gradient-to-r from-red-500 to-pink-500 px-4 py-3 text-white">
|
||||
<div class="flex items-center">
|
||||
<i class="fa-brands fa-laravel text-2xl mr-2"></i>
|
||||
<span class="font-bold">Laravel Configuration</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-4 bg-white">
|
||||
<div class="bg-slate-50 p-4 rounded-lg">
|
||||
<pre class="language-php"><code>// config/flasher.php
|
||||
|
||||
return [
|
||||
'default' => 'flasher',
|
||||
|
||||
// Other settings...
|
||||
];</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-lg overflow-hidden border border-gray-200 shadow-sm">
|
||||
<div class="bg-gradient-to-r from-gray-700 to-gray-900 px-4 py-3 text-white">
|
||||
<div class="flex items-center">
|
||||
<i class="fa-brands fa-symfony text-2xl mr-2"></i>
|
||||
<span class="font-bold">Symfony Configuration</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-4 bg-white">
|
||||
<div class="bg-slate-50 p-4 rounded-lg">
|
||||
<pre class="language-yaml"><code># config/packages/flasher.yaml
|
||||
|
||||
flasher:
|
||||
default: flasher
|
||||
|
||||
# Other settings...</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-lg overflow-hidden border border-gray-200 shadow-sm">
|
||||
<div class="bg-gradient-to-r from-yellow-400 to-amber-500 px-4 py-3 text-white">
|
||||
<div class="flex items-center">
|
||||
<i class="fa-brands fa-js text-2xl mr-2"></i>
|
||||
<span class="font-bold">JavaScript Configuration</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-4 bg-white">
|
||||
<div class="bg-slate-50 p-4 rounded-lg">
|
||||
<pre class="language-javascript"><code>// explicitly set it as default:
|
||||
flasher.defaultPlugin = 'flasher';
|
||||
|
||||
// The theme is available automatically
|
||||
flasher.success('Well done!');
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
### <i class="fa-solid fa-wand-magic-sparkles text-purple-500 mr-2"></i> Notification Types
|
||||
|
||||
<div class="p-5 mt-4 mb-6 rounded-lg bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 shadow-sm">
|
||||
<p class="mb-4 text-slate-700">The Flasher theme provides four distinct notification types, each with its own color
|
||||
scheme and icon:</p>
|
||||
Flasher theme comes pre-installed with PHPFlasher, providing a polished notification system that works immediately. Each notification features a distinctive colored border and matching icon that helps users quickly identify message types.
|
||||
|
||||
<div class="p-5 bg-gradient-to-br from-slate-50 to-slate-100 rounded-lg border border-slate-200 my-6">
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div class="fl-flasher fl-success fl-container fl-show" role="status" aria-live="polite" aria-atomic="true">
|
||||
<div class="fl-flasher fl-success fl-container fl-show hover:translate-y-[-2px] transition-transform duration-200" role="status" aria-live="polite" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
@@ -136,7 +47,7 @@ flasher.success('Well done!');
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="fl-flasher fl-error fl-container fl-show" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="fl-flasher fl-error fl-container fl-show hover:translate-y-[-2px] transition-transform duration-200" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
@@ -150,7 +61,7 @@ flasher.success('Well done!');
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="fl-flasher fl-warning fl-container fl-show" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="fl-flasher fl-warning fl-container fl-show hover:translate-y-[-2px] transition-transform duration-200" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
@@ -164,7 +75,7 @@ flasher.success('Well done!');
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="fl-flasher fl-info fl-container fl-show" role="status" aria-live="polite" aria-atomic="true">
|
||||
<div class="fl-flasher fl-info fl-container fl-show hover:translate-y-[-2px] transition-transform duration-200" role="status" aria-live="polite" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
@@ -180,42 +91,111 @@ flasher.success('Well done!');
|
||||
</div>
|
||||
</div>
|
||||
|
||||
### <i class="fa-solid fa-wand-magic-sparkles text-purple-500 mr-2"></i> Customizing Notifications
|
||||
<h2 class="text-2xl font-semibold text-slate-800 mt-10 mb-6 pb-2 border-b border-slate-200">Quick Start</h2>
|
||||
|
||||
### Using Flasher Theme for Specific Notifications
|
||||
|
||||
If you have a different default theme but want to use the Flasher theme for just one notification:
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-1 gap-5 my-6">
|
||||
<div class="bg-white rounded-lg border border-slate-200 p-4 shadow-sm">
|
||||
<p class="font-semibold text-slate-700 mb-2 flex items-center">
|
||||
<i class="fa-brands fa-php text-purple-500 mr-2"></i> PHP
|
||||
</p>
|
||||
<div class="bg-slate-50 rounded p-3">
|
||||
<pre class="language-php"><code>flash()->use('flasher')->success('This will use the Flasher theme!');</code></pre>
|
||||
<div class="space-y-2 my-3">
|
||||
<div class="bg-white rounded shadow-sm">
|
||||
<div class="flex items-center">
|
||||
<div class="flex-shrink-0 py-3 pl-3">
|
||||
<span class="inline-flex items-center justify-center w-7 h-7 rounded-full bg-purple-100">
|
||||
<i class="fa-brands fa-php text-purple-600"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex-grow p-2">
|
||||
<pre class="copyable language-php font-mono text-sm"><code>flash()->success('Your changes have been saved!');</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bg-white rounded-lg border border-slate-200 p-4 shadow-sm">
|
||||
<p class="font-semibold text-slate-700 mb-2 flex items-center">
|
||||
<i class="fa-brands fa-js text-amber-500 mr-2"></i> JavaScript
|
||||
</p>
|
||||
<div class="bg-slate-50 rounded p-3">
|
||||
<pre class="language-javascript"><code>flasher.use('flasher').success('This will use the Flasher theme!');</code></pre>
|
||||
<div class="bg-white rounded shadow-sm">
|
||||
<div class="flex items-center">
|
||||
<div class="flex-shrink-0 py-3 pl-3">
|
||||
<span class="inline-flex items-center justify-center w-7 h-7 rounded-full bg-amber-100">
|
||||
<i class="fa-brands fa-js text-amber-600"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex-grow p-2">
|
||||
<pre class="language-javascript font-mono text-sm"><code>flasher.success('Your changes have been saved!');</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
### Changing the Colors
|
||||
<h2 class="text-2xl font-semibold text-slate-800 mt-10 mb-6 pb-2 border-b border-slate-200">Configuration Options</h2>
|
||||
|
||||
You can customize the appearance of your notifications by overriding these CSS variables in your stylesheet:
|
||||
<div class="bg-gradient-to-br from-slate-50 to-slate-100 p-6 rounded-lg border border-slate-200 mb-8">
|
||||
<h3 class="text-lg font-medium mb-4 text-slate-800">Setting as Default Theme</h3>
|
||||
|
||||
<div class="space-y-5">
|
||||
<div class="bg-white p-4 rounded-lg border border-slate-200">
|
||||
<div class="flex items-center mb-3">
|
||||
<span class="inline-flex items-center justify-center w-6 h-6 rounded bg-red-100 mr-2">
|
||||
<i class="fa-brands fa-laravel text-red-600 text-sm"></i>
|
||||
</span>
|
||||
<span class="font-medium">Laravel</span>
|
||||
</div>
|
||||
<pre class="language-php font-mono text-sm"><code>// config/flasher.php
|
||||
|
||||
return [
|
||||
'default' => 'flasher',
|
||||
// Other settings...
|
||||
];</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="bg-white p-4 rounded-lg border border-slate-200">
|
||||
<div class="flex items-center mb-3">
|
||||
<span class="inline-flex items-center justify-center w-6 h-6 rounded bg-gray-900 mr-2">
|
||||
<i class="fa-brands fa-symfony text-white text-sm"></i>
|
||||
</span>
|
||||
<span class="font-medium">Symfony</span>
|
||||
</div>
|
||||
<pre class="language-yaml font-mono text-sm"><code># config/packages/flasher.yaml
|
||||
|
||||
flasher:
|
||||
default: flasher
|
||||
# Other settings...</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="bg-white p-4 rounded-lg border border-slate-200">
|
||||
<div class="flex items-center mb-3">
|
||||
<span class="inline-flex items-center justify-center w-6 h-6 rounded bg-amber-100 mr-2">
|
||||
<i class="fa-brands fa-js text-amber-600 text-sm"></i>
|
||||
</span>
|
||||
<span class="font-medium">JavaScript</span>
|
||||
</div>
|
||||
<pre class="language-javascript font-mono text-sm"><code>// Set as default theme
|
||||
flasher.defaultPlugin = 'flasher';
|
||||
|
||||
// Then use it
|
||||
flasher.success('Well done!');</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="text-2xl font-semibold text-slate-800 mt-10 mb-6 pb-2 border-b border-slate-200">Core Features</h2>
|
||||
|
||||
<h3 class="text-xl font-medium my-4 text-slate-800">Selective Theme Usage</h3>
|
||||
|
||||
<p class="mb-4 text-slate-600">If you're using multiple themes, you can selectively use the Flasher theme for specific notifications:</p>
|
||||
|
||||
<div class="bg-white rounded-lg border border-slate-200 p-4 my-6 shadow-sm">
|
||||
<pre class="language-php font-mono text-sm"><code>// In PHP
|
||||
flash()->use('flasher')->success('This uses the Flasher theme!');</code></pre>
|
||||
|
||||
<div class="mt-4 pt-4 border-t border-slate-100">
|
||||
<pre class="language-javascript font-mono text-sm"><code>// In JavaScript
|
||||
flasher.use('flasher').success('This uses the Flasher theme!');</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="text-2xl font-semibold text-slate-800 mt-10 mb-6 pb-2 border-b border-slate-200">Customization</h2>
|
||||
|
||||
<h3 class="text-xl font-medium my-4 text-slate-800">Color Theming</h3>
|
||||
|
||||
<p class="mb-4 text-slate-600">Customize the notification appearance by overriding these CSS variables:</p>
|
||||
|
||||
<div class="bg-white rounded-lg border border-slate-200 p-5 shadow-sm my-6">
|
||||
<p class="font-semibold text-slate-700 mb-3 flex items-center">
|
||||
<i class="fa-solid fa-palette text-pink-500 mr-2"></i> Custom Colors
|
||||
</p>
|
||||
<div class="bg-slate-50 rounded p-4">
|
||||
<pre class="language-css"><code>:root {
|
||||
<pre class="language-css font-mono text-sm"><code>:root {
|
||||
/* Base colors */
|
||||
--fl-bg-light: #ffffff; /* Light mode background */
|
||||
--fl-bg-dark: rgb(15, 23, 42); /* Dark mode background */
|
||||
@@ -228,125 +208,138 @@ You can customize the appearance of your notifications by overriding these CSS v
|
||||
--fl-warning: #f59e0b; /* Warning color (orange) */
|
||||
--fl-error: #ef4444; /* Error color (red) */
|
||||
}</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
### <i class="fa-solid fa-wand-magic-sparkles text-purple-500 mr-2"></i> Features and Benefits
|
||||
<h2 class="text-2xl font-semibold text-slate-800 mt-10 mb-6 pb-2 border-b border-slate-200">Design System</h2>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 my-6">
|
||||
<div class="bg-gradient-to-br from-purple-50 to-indigo-50 rounded-lg p-5 border border-purple-100 shadow-sm">
|
||||
<h3 class="text-lg font-bold text-purple-800 mb-3 flex items-center">
|
||||
<i class="fa-solid fa-palette text-purple-600 mr-2"></i> Visual Design
|
||||
<div class="bg-white rounded-lg p-5 border border-slate-200 shadow-sm">
|
||||
<h3 class="text-lg font-medium mb-4 flex items-center text-slate-800">
|
||||
<span class="inline-flex items-center justify-center w-8 h-8 rounded-full bg-purple-100 mr-3">
|
||||
<i class="fa-solid fa-palette text-purple-600"></i>
|
||||
</span>
|
||||
Visual Elements
|
||||
</h3>
|
||||
<ul class="space-y-2">
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-purple-500 mr-2 mt-1"></i>
|
||||
<span>Colored left border for quick message identification</span>
|
||||
<ul class="space-y-2.5">
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Colored left border for quick visual identification</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-purple-500 mr-2 mt-1"></i>
|
||||
<span>Clean, easy-to-read typography</span>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Type-specific icons enhance meaning</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-purple-500 mr-2 mt-1"></i>
|
||||
<span>Type-specific icons (checkmark, alert, etc.)</span>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Visual progress bar indicates time until dismissal</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-purple-500 mr-2 mt-1"></i>
|
||||
<span>Progress bar shows time until auto-dismiss</span>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Clean typography with proper hierarchy</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-purple-500 mr-2 mt-1"></i>
|
||||
<span>Smooth animations for better user experience</span>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Subtle animations for better user experience</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="bg-gradient-to-br from-blue-50 to-sky-50 rounded-lg p-5 border border-blue-100 shadow-sm">
|
||||
<h3 class="text-lg font-bold text-blue-800 mb-3 flex items-center">
|
||||
<i class="fa-solid fa-universal-access text-blue-600 mr-2"></i> Accessibility
|
||||
<div class="bg-white rounded-lg p-5 border border-slate-200 shadow-sm">
|
||||
<h3 class="text-lg font-medium mb-4 flex items-center text-slate-800">
|
||||
<span class="inline-flex items-center justify-center w-8 h-8 rounded-full bg-blue-100 mr-3">
|
||||
<i class="fa-solid fa-universal-access text-blue-600"></i>
|
||||
</span>
|
||||
Accessibility
|
||||
</h3>
|
||||
<ul class="space-y-2">
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-blue-500 mr-2 mt-1"></i>
|
||||
<span>Proper ARIA roles for screen readers</span>
|
||||
<ul class="space-y-2.5">
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Semantic ARIA roles for screen readers</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-blue-500 mr-2 mt-1"></i>
|
||||
<span>High contrast text meeting WCAG standards</span>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>WCAG-compliant contrast ratios</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-blue-500 mr-2 mt-1"></i>
|
||||
<span>Keyboard navigable close buttons</span>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Keyboard-navigable close buttons</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-blue-500 mr-2 mt-1"></i>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Respects reduced motion preferences</span>
|
||||
</li>
|
||||
<li class="flex items-start">
|
||||
<i class="fa-solid fa-check text-blue-500 mr-2 mt-1"></i>
|
||||
<span>Full RTL (right-to-left) language support</span>
|
||||
<li class="flex items-start group">
|
||||
<i class="fa-solid fa-check text-green-500 mr-2.5 mt-0.5 transform transition-transform duration-200 group-hover:scale-125"></i>
|
||||
<span>Full RTL language support</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
### <i class="fa-solid fa-wand-magic-sparkles text-purple-500 mr-2"></i> HTML Structure
|
||||
<h2 class="text-2xl font-semibold text-slate-800 mt-10 mb-6 pb-2 border-b border-slate-200">Technical Details</h2>
|
||||
|
||||
For developers who want to customize further, here's the HTML structure of the notifications:
|
||||
<h3 class="text-xl font-medium my-4 text-slate-800">HTML Structure</h3>
|
||||
|
||||
```html
|
||||
<div class="fl-flasher fl-[type]" role="[role]" aria-live="[ariaLive]" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
<strong class="fl-title">Title text</strong>
|
||||
<span class="fl-message">Message text</span>
|
||||
</div>
|
||||
<button class="fl-close" aria-label="Close [type] message">×</button>
|
||||
</div>
|
||||
<span class="fl-progress-bar">
|
||||
<span class="fl-progress"></span>
|
||||
</span>
|
||||
<p class="mb-4 text-slate-600">For developers looking to customize the theme, here's the HTML structure:</p>
|
||||
|
||||
<div class="bg-white rounded-lg border border-slate-200 p-5 shadow-sm my-6">
|
||||
<pre class="language-html font-mono text-sm"><code><div class="fl-flasher fl-[type]" role="[role]" aria-live="[ariaLive]" aria-atomic="true">
|
||||
<div class="fl-content">
|
||||
<div class="fl-icon"></div>
|
||||
<div>
|
||||
<strong class="fl-title">Title text</strong>
|
||||
<span class="fl-message">Message text</span>
|
||||
</div>
|
||||
<button class="fl-close" aria-label="Close [type] message">×</button>
|
||||
</div>
|
||||
<span class="fl-progress-bar">
|
||||
<span class="fl-progress"></span>
|
||||
</span>
|
||||
</div></code></pre>
|
||||
</div>
|
||||
```
|
||||
|
||||
<div class="bg-gradient-to-br from-slate-50 to-slate-100 rounded-lg border border-slate-200 p-6 shadow-sm mt-8">
|
||||
<h3 class="text-xl font-bold text-slate-800 mb-4">Browser Support</h3>
|
||||
<p class="text-slate-700 mb-4">The Flasher theme works seamlessly across all modern browsers:</p>
|
||||
<div class="flex flex-wrap gap-3">
|
||||
<span class="px-4 py-2 bg-white rounded-lg border border-slate-200 shadow-sm flex items-center">
|
||||
<i class="fa-brands fa-chrome text-green-600 text-lg mr-2"></i> Chrome
|
||||
</span>
|
||||
<span class="px-4 py-2 bg-white rounded-lg border border-slate-200 shadow-sm flex items-center">
|
||||
<i class="fa-brands fa-firefox text-orange-600 text-lg mr-2"></i> Firefox
|
||||
</span>
|
||||
<span class="px-4 py-2 bg-white rounded-lg border border-slate-200 shadow-sm flex items-center">
|
||||
<i class="fa-brands fa-safari text-blue-600 text-lg mr-2"></i> Safari
|
||||
</span>
|
||||
<span class="px-4 py-2 bg-white rounded-lg border border-slate-200 shadow-sm flex items-center">
|
||||
<i class="fa-brands fa-edge text-blue-500 text-lg mr-2"></i> Edge
|
||||
</span>
|
||||
<span class="px-4 py-2 bg-white rounded-lg border border-slate-200 shadow-sm flex items-center">
|
||||
<i class="fa-brands fa-opera text-red-600 text-lg mr-2"></i> Opera
|
||||
</span>
|
||||
<span class="px-4 py-2 bg-white rounded-lg border border-slate-200 shadow-sm flex items-center">
|
||||
<i class="fa-solid fa-mobile-screen text-slate-600 text-lg mr-2"></i> Mobile
|
||||
</span>
|
||||
<div class="bg-white rounded-lg border border-slate-200 p-6 shadow-sm my-6">
|
||||
<h3 class="text-lg font-medium mb-4 text-slate-800">Browser Support</h3>
|
||||
<p class="text-slate-600 mb-4">The Flasher theme is compatible with all modern browsers:</p>
|
||||
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-3">
|
||||
<div class="p-3 bg-slate-50 rounded-lg flex flex-col items-center justify-center">
|
||||
<i class="fa-brands fa-chrome text-green-600 text-xl mb-2"></i>
|
||||
<span class="text-sm text-slate-600">Chrome</span>
|
||||
</div>
|
||||
<div class="p-3 bg-slate-50 rounded-lg flex flex-col items-center justify-center">
|
||||
<i class="fa-brands fa-firefox-browser text-orange-600 text-xl mb-2"></i>
|
||||
<span class="text-sm text-slate-600">Firefox</span>
|
||||
</div>
|
||||
<div class="p-3 bg-slate-50 rounded-lg flex flex-col items-center justify-center">
|
||||
<i class="fa-brands fa-safari text-blue-600 text-xl mb-2"></i>
|
||||
<span class="text-sm text-slate-600">Safari</span>
|
||||
</div>
|
||||
<div class="p-3 bg-slate-50 rounded-lg flex flex-col items-center justify-center">
|
||||
<i class="fa-brands fa-edge text-blue-500 text-xl mb-2"></i>
|
||||
<span class="text-sm text-slate-600">Edge</span>
|
||||
</div>
|
||||
<div class="p-3 bg-slate-50 rounded-lg flex flex-col items-center justify-center">
|
||||
<i class="fa-brands fa-opera text-red-600 text-xl mb-2"></i>
|
||||
<span class="text-sm text-slate-600">Opera</span>
|
||||
</div>
|
||||
<div class="p-3 bg-slate-50 rounded-lg flex flex-col items-center justify-center">
|
||||
<i class="fa-solid fa-mobile-screen text-slate-600 text-xl mb-2"></i>
|
||||
<span class="text-sm text-slate-600">Mobile</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="p-5 mt-8 mb-4 rounded-lg bg-teal-50 border border-teal-200 shadow-sm">
|
||||
<div class="flex">
|
||||
<div class="bg-gradient-to-br from-teal-50 to-green-50 border border-teal-100 rounded-lg p-5 shadow-sm mt-8">
|
||||
<div class="flex items-start">
|
||||
<div class="flex-shrink-0">
|
||||
<i class="fa-solid fa-question-circle text-teal-500 text-2xl"></i>
|
||||
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-teal-100 mr-4">
|
||||
<i class="fa-solid fa-question text-teal-600"></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="ml-4">
|
||||
<h3 class="text-lg font-bold text-teal-700">Need Help?</h3>
|
||||
<p class="text-teal-600">
|
||||
If you have questions or need assistance with PHPFlasher, check out our
|
||||
<a href="/docs/" class="text-teal-700 underline hover:text-teal-900 transition-colors">documentation</a>
|
||||
or join our <a href="https://github.com/php-flasher/php-flasher/discussions" class="text-teal-700 underline hover:text-teal-900 transition-colors">community discussions</a>.
|
||||
<div>
|
||||
<h3 class="text-lg font-medium mb-2 text-teal-800">Need Help?</h3>
|
||||
<p class="text-teal-700">
|
||||
Explore our <a href="/docs/" class="text-teal-800 underline hover:text-teal-900 transition-colors">documentation</a> or join the <a href="https://github.com/php-flasher/php-flasher/discussions" class="text-teal-800 underline hover:text-teal-900 transition-colors">community discussions</a> for assistance.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user