defeb7f2d2
Implements all missing shortcodes for ummah.falahos.my: - [prayer_times] — Aladhan API, no auth required - [dhikr_counter] — localStorage-backed, works offline - [qibla_compass] — browser Geolocation + DeviceOrientation - [daily_verse] — AlQuran.cloud API, no auth required - [nur_ai_chat], [falah_wallet], [souq_marketplace] — iframe Falah Mobile - [falah_dashboard] — auto-injects dashboard content into empty page Also adds deploy-falah-mobile.sh to build and run the Next.js app on 13.140.161.244:4013, and Nginx reverse proxy config for falahos.my/mobile.
254 lines
11 KiB
CSS
254 lines
11 KiB
CSS
/* Falah Shortcodes — Design System */
|
|
:root {
|
|
--falah-green: #1a7a4a;
|
|
--falah-green-light: #2da065;
|
|
--falah-gold: #c9a84c;
|
|
--falah-gold-light: #e6c97a;
|
|
--falah-surface: #f8f6f0;
|
|
--falah-surface-dark: #1c1f2e;
|
|
--falah-text: #1a1a2e;
|
|
--falah-text-muted: #5a6070;
|
|
--falah-border: rgba(0,0,0,0.08);
|
|
--falah-radius: 16px;
|
|
--falah-shadow: 0 4px 24px rgba(0,0,0,0.08);
|
|
--falah-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
|
|
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
/* ── Base widget ──────────────────────────────────────────────────────────── */
|
|
.falah-widget {
|
|
background: #fff;
|
|
border-radius: var(--falah-radius);
|
|
box-shadow: var(--falah-shadow);
|
|
overflow: hidden;
|
|
margin: 24px 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
color: var(--falah-text);
|
|
}
|
|
|
|
.falah-widget-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 20px 24px 16px;
|
|
border-bottom: 1px solid var(--falah-border);
|
|
background: linear-gradient(135deg, var(--falah-green) 0%, #145c38 100%);
|
|
color: #fff;
|
|
}
|
|
.falah-widget-header h3 {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
flex: 1;
|
|
}
|
|
.falah-widget-header .falah-location {
|
|
font-size: 0.8rem;
|
|
opacity: 0.8;
|
|
}
|
|
.falah-icon { font-size: 1.4rem; }
|
|
|
|
/* ── Spinner ──────────────────────────────────────────────────────────────── */
|
|
.falah-spinner {
|
|
width: 32px; height: 32px;
|
|
border: 3px solid var(--falah-border);
|
|
border-top-color: var(--falah-green);
|
|
border-radius: 50%;
|
|
animation: falah-spin 0.7s linear infinite;
|
|
}
|
|
@keyframes falah-spin { to { transform: rotate(360deg); } }
|
|
.falah-loading {
|
|
display: flex; align-items: center; gap: 12px;
|
|
justify-content: center; padding: 32px;
|
|
color: var(--falah-text-muted); font-size: 0.9rem;
|
|
}
|
|
|
|
/* ── Prayer Times ─────────────────────────────────────────────────────────── */
|
|
.falah-prayer-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
|
gap: 1px;
|
|
background: var(--falah-border);
|
|
}
|
|
.falah-prayer-item {
|
|
background: #fff;
|
|
padding: 16px 12px;
|
|
text-align: center;
|
|
transition: background 200ms;
|
|
}
|
|
.falah-prayer-item.active {
|
|
background: linear-gradient(135deg, #e8f5ee, #f0faf4);
|
|
}
|
|
.falah-prayer-item.active .falah-prayer-name { color: var(--falah-green); font-weight: 700; }
|
|
.falah-prayer-name { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--falah-text-muted); margin-bottom: 6px; }
|
|
.falah-prayer-time { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
.falah-prayer-item.active .falah-prayer-time { color: var(--falah-green); }
|
|
.falah-next-prayer {
|
|
padding: 12px 24px;
|
|
font-size: 0.85rem;
|
|
color: var(--falah-green);
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
.falah-hijri {
|
|
padding: 0 24px 16px;
|
|
font-size: 0.8rem;
|
|
color: var(--falah-text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
/* ── Dhikr Counter ────────────────────────────────────────────────────────── */
|
|
.falah-dhikr-selector {
|
|
display: flex; flex-wrap: wrap; gap: 8px;
|
|
padding: 16px 20px;
|
|
}
|
|
.falah-dhikr-btn {
|
|
padding: 6px 14px; border-radius: 20px;
|
|
border: 1.5px solid var(--falah-border);
|
|
background: var(--falah-surface); cursor: pointer;
|
|
font-size: 0.82rem; color: var(--falah-text-muted);
|
|
transition: all 150ms;
|
|
}
|
|
.falah-dhikr-btn.active, .falah-dhikr-btn:hover {
|
|
background: var(--falah-green); color: #fff; border-color: var(--falah-green);
|
|
}
|
|
.falah-dhikr-display { text-align: center; padding: 8px 20px 4px; }
|
|
.falah-dhikr-arabic { font-size: 2rem; font-family: 'Scheherazade New', 'KFGQPC Uthmanic Script HAFS', serif; direction: rtl; line-height: 1.6; color: var(--falah-text); }
|
|
.falah-dhikr-meaning { font-size: 0.85rem; color: var(--falah-text-muted); margin-top: 4px; }
|
|
.falah-counter-circle {
|
|
position: relative; width: 140px; height: 140px;
|
|
margin: 16px auto 4px;
|
|
}
|
|
.falah-counter-circle svg { transform: rotate(-90deg); }
|
|
.falah-ring-bg { fill: none; stroke: var(--falah-border); stroke-width: 8; }
|
|
.falah-ring-progress {
|
|
fill: none; stroke: var(--falah-green); stroke-width: 8;
|
|
stroke-linecap: round;
|
|
stroke-dasharray: 314;
|
|
stroke-dashoffset: 314;
|
|
transition: stroke-dashoffset 300ms var(--ease-out-expo);
|
|
}
|
|
.falah-counter-number {
|
|
position: absolute; inset: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 2.2rem; font-weight: 700; color: var(--falah-text);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.falah-counter-target { text-align: center; color: var(--falah-text-muted); font-size: 0.9rem; margin-bottom: 16px; }
|
|
.falah-counter-actions { display: flex; gap: 12px; justify-content: center; padding: 0 20px 16px; }
|
|
.falah-btn-tap {
|
|
flex: 1; max-width: 160px;
|
|
padding: 14px 24px;
|
|
background: var(--falah-green); color: #fff;
|
|
border: none; border-radius: 12px; cursor: pointer;
|
|
font-size: 1rem; font-weight: 600;
|
|
box-shadow: 0 4px 14px rgba(26,122,74,0.3);
|
|
transition: transform 80ms, box-shadow 150ms;
|
|
user-select: none; -webkit-tap-highlight-color: transparent;
|
|
}
|
|
.falah-btn-tap:active { transform: scale(0.95); box-shadow: none; }
|
|
.falah-btn-reset {
|
|
padding: 14px 20px; background: var(--falah-surface);
|
|
color: var(--falah-text-muted); border: 1.5px solid var(--falah-border);
|
|
border-radius: 12px; cursor: pointer; font-size: 0.9rem;
|
|
transition: background 150ms;
|
|
}
|
|
.falah-btn-reset:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
|
|
.falah-session-total { text-align: center; padding: 0 20px 16px; font-size: 0.8rem; color: var(--falah-text-muted); min-height: 20px; }
|
|
|
|
/* ── Qibla Compass ────────────────────────────────────────────────────────── */
|
|
.falah-qibla-status { padding: 32px; text-align: center; }
|
|
.falah-btn-locate {
|
|
padding: 12px 28px; background: var(--falah-green); color: #fff;
|
|
border: none; border-radius: 12px; cursor: pointer; font-size: 1rem;
|
|
box-shadow: 0 4px 14px rgba(26,122,74,0.3); transition: transform 80ms;
|
|
}
|
|
.falah-btn-locate:active { transform: scale(0.97); }
|
|
.falah-qibla-display { padding: 20px; }
|
|
.falah-compass-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
|
|
.falah-compass {
|
|
position: relative; width: 180px; height: 180px;
|
|
border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f0f4ff, #e8ecf8);
|
|
box-shadow: 0 0 0 4px var(--falah-border), var(--falah-shadow-lg);
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.falah-compass-rose { position: absolute; inset: 0; }
|
|
.falah-dir {
|
|
position: absolute; font-size: 0.75rem; font-weight: 700; color: var(--falah-text-muted);
|
|
}
|
|
.falah-dir.n { top: 8px; left: 50%; transform: translateX(-50%); }
|
|
.falah-dir.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
|
|
.falah-dir.e { right: 10px; top: 50%; transform: translateY(-50%); }
|
|
.falah-dir.w { left: 10px; top: 50%; transform: translateY(-50%); }
|
|
.falah-needle-kaaba {
|
|
font-size: 2rem; transition: transform 0.3s ease-out;
|
|
transform-origin: center;
|
|
}
|
|
.falah-qibla-info { text-align: center; color: var(--falah-text-muted); font-size: 0.9rem; }
|
|
#falah-qibla-angle { font-size: 1.2rem; font-weight: 600; color: var(--falah-green); margin-bottom: 4px; }
|
|
|
|
/* ── Daily Verse ──────────────────────────────────────────────────────────── */
|
|
.falah-verse-loading { display: flex; justify-content: center; padding: 32px; }
|
|
.falah-verse-content { padding: 24px; }
|
|
.falah-verse-arabic {
|
|
font-family: 'Scheherazade New', 'KFGQPC Uthmanic Script HAFS', serif;
|
|
font-size: 1.5rem; line-height: 2; text-align: right;
|
|
color: var(--falah-text); margin-bottom: 16px;
|
|
padding-bottom: 16px; border-bottom: 1px solid var(--falah-border);
|
|
}
|
|
.falah-verse-translation { font-size: 1rem; line-height: 1.7; color: var(--falah-text); font-style: italic; }
|
|
.falah-verse-ref { margin-top: 12px; font-size: 0.8rem; color: var(--falah-green); font-weight: 600; }
|
|
|
|
/* ── Iframe Widget ────────────────────────────────────────────────────────── */
|
|
.falah-iframe-container { position: relative; height: 600px; }
|
|
.falah-iframe {
|
|
width: 100%; height: 100%; border: none; display: block;
|
|
position: relative; z-index: 2;
|
|
}
|
|
.falah-iframe-fallback {
|
|
position: absolute; inset: 0; z-index: 1;
|
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
gap: 12px; background: var(--falah-surface); color: var(--falah-text-muted);
|
|
}
|
|
.falah-open-link {
|
|
color: var(--falah-green); text-decoration: none; font-weight: 500; font-size: 0.9rem;
|
|
}
|
|
|
|
/* ── Dashboard ────────────────────────────────────────────────────────────── */
|
|
.falah-dashboard { padding: 4px 0; }
|
|
.falah-dashboard-header { margin-bottom: 24px; }
|
|
.falah-dashboard-header h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; }
|
|
.falah-dashboard-date { color: var(--falah-text-muted); margin: 0; font-size: 0.9rem; }
|
|
.falah-dashboard-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 16px; margin-bottom: 28px;
|
|
}
|
|
.falah-dash-card {
|
|
background: #fff; border-radius: var(--falah-radius);
|
|
box-shadow: var(--falah-shadow); padding: 20px;
|
|
display: flex; gap: 16px; align-items: flex-start;
|
|
border-left: 4px solid var(--falah-green);
|
|
}
|
|
.falah-dash-card-icon { font-size: 1.8rem; flex-shrink: 0; }
|
|
.falah-dash-card-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--falah-text-muted); margin-bottom: 6px; }
|
|
.falah-dash-card-value { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
|
|
.falah-dash-card-sub { font-size: 0.8rem; color: var(--falah-text-muted); margin-top: 2px; }
|
|
.falah-dashboard-links {
|
|
display: flex; flex-wrap: wrap; gap: 12px;
|
|
}
|
|
.falah-dash-link {
|
|
padding: 10px 18px; background: #fff; border-radius: 10px;
|
|
box-shadow: var(--falah-shadow); text-decoration: none;
|
|
color: var(--falah-text); font-size: 0.9rem; font-weight: 500;
|
|
transition: box-shadow 150ms, transform 150ms;
|
|
border: 1px solid var(--falah-border);
|
|
}
|
|
.falah-dash-link:hover { box-shadow: var(--falah-shadow-lg); transform: translateY(-2px); color: var(--falah-green); }
|
|
|
|
@media (max-width: 600px) {
|
|
.falah-prayer-grid { grid-template-columns: repeat(3, 1fr); }
|
|
.falah-dashboard-grid { grid-template-columns: 1fr 1fr; }
|
|
.falah-iframe-container { height: 500px; }
|
|
}
|