| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="ufg-admin-root"> |
| 7 |
<div class="ufg-admin-preloader"> |
| 8 |
<style> |
| 9 |
.ufg-admin-preloader { |
| 10 |
display: flex; |
| 11 |
flex-direction: column; |
| 12 |
align-items: center; |
| 13 |
justify-content: center; |
| 14 |
min-height: calc(100vh - 120px); |
| 15 |
padding: 60px 20px; |
| 16 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| 17 |
background: #f8fafc; |
| 18 |
border-radius: 12px; |
| 19 |
margin-top: 20px; |
| 20 |
box-sizing: border-box; |
| 21 |
} |
| 22 |
.ufg-loader-card { |
| 23 |
background: #ffffff; |
| 24 |
border-radius: 16px; |
| 25 |
box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.025); |
| 26 |
border: 1px solid #f1f5f9; |
| 27 |
padding: 48px 40px; |
| 28 |
text-align: center; |
| 29 |
max-width: 440px; |
| 30 |
width: 100%; |
| 31 |
box-sizing: border-box; |
| 32 |
} |
| 33 |
.ufg-spinner-wrapper { |
| 34 |
position: relative; |
| 35 |
width: 64px; |
| 36 |
height: 64px; |
| 37 |
margin: 0 auto 24px auto; |
| 38 |
display: flex; |
| 39 |
align-items: center; |
| 40 |
justify-content: center; |
| 41 |
} |
| 42 |
.ufg-loader-bg-circle { |
| 43 |
position: absolute; |
| 44 |
inset: 0; |
| 45 |
border-radius: 50%; |
| 46 |
background-color: #eff6ff; |
| 47 |
display: flex; |
| 48 |
align-items: center; |
| 49 |
justify-content: center; |
| 50 |
} |
| 51 |
.ufg-spinner-ring { |
| 52 |
position: absolute; |
| 53 |
inset: -4px; |
| 54 |
border-radius: 50%; |
| 55 |
border: 3px solid transparent; |
| 56 |
border-top-color: #2563eb; |
| 57 |
border-right-color: #2563eb; |
| 58 |
animation: ufg-spin 0.9s linear infinite; |
| 59 |
box-sizing: border-box; |
| 60 |
} |
| 61 |
.ufg-preloader-title { |
| 62 |
font-size: 20px; |
| 63 |
font-weight: 700; |
| 64 |
color: #0f172a; |
| 65 |
margin: 0 0 8px 0; |
| 66 |
line-height: 1.3; |
| 67 |
} |
| 68 |
.ufg-preloader-subtitle { |
| 69 |
font-size: 14px; |
| 70 |
color: #64748b; |
| 71 |
margin: 0; |
| 72 |
font-weight: 400; |
| 73 |
line-height: 1.4; |
| 74 |
} |
| 75 |
@keyframes ufg-spin { |
| 76 |
0% { transform: rotate(0deg); } |
| 77 |
100% { transform: rotate(360deg); } |
| 78 |
} |
| 79 |
</style> |
| 80 |
<div class="ufg-loader-card"> |
| 81 |
<div class="ufg-spinner-wrapper"> |
| 82 |
<div class="ufg-spinner-ring"></div> |
| 83 |
<div class="ufg-loader-bg-circle"> |
| 84 |
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#2563eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 85 |
<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/> |
| 86 |
<circle cx="9" cy="9" r="2"/> |
| 87 |
<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/> |
| 88 |
</svg> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
<h3 class="ufg-preloader-title"><?php esc_html_e('Loading Filter Gallery...', 'filter-gallery'); ?></h3> |
| 92 |
<p class="ufg-preloader-subtitle"><?php esc_html_e('Please wait while the dashboard is initializing', 'filter-gallery'); ?></p> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
</div> |
| 96 |
<div style="position: fixed; bottom: 20px; right: 20px; background: #fff; padding: 5px 10px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); font-weight: bold; color: #2563eb; z-index: 9999;"> |
| 97 |
v<?php echo esc_html(UFG_VERSION); ?> |
| 98 |
</div> |