Deploy: 2026-05-23 03:56:31
This commit is contained in:
@@ -1927,6 +1927,11 @@
|
|||||||
checkAuth() {
|
checkAuth() {
|
||||||
this.token = localStorage.getItem('nabeh_token');
|
this.token = localStorage.getItem('nabeh_token');
|
||||||
const storedUser = localStorage.getItem('nabeh_user');
|
const storedUser = localStorage.getItem('nabeh_user');
|
||||||
|
if (window.location.pathname === '/register') {
|
||||||
|
this.authTab = 'register';
|
||||||
|
} else {
|
||||||
|
this.authTab = 'login';
|
||||||
|
}
|
||||||
if (this.token && storedUser) {
|
if (this.token && storedUser) {
|
||||||
this.user = JSON.parse(storedUser);
|
this.user = JSON.parse(storedUser);
|
||||||
this.isLoggedIn = true;
|
this.isLoggedIn = true;
|
||||||
|
|||||||
@@ -20,14 +20,42 @@ $router = new Router();
|
|||||||
$router->use(\App\Middlewares\SecurityMiddleware::class);
|
$router->use(\App\Middlewares\SecurityMiddleware::class);
|
||||||
|
|
||||||
// 4. Define API Routes
|
// 4. Define API Routes
|
||||||
// Serve index.html dashboard on root path
|
// Serve landing.html landing page on root path
|
||||||
$router->get('/', function ($request, $response) {
|
$router->get('/', function ($request, $response) {
|
||||||
|
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
|
||||||
|
$response->sendHeaders();
|
||||||
|
readfile(__DIR__ . '/landing.html');
|
||||||
|
exit;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Serve index.html dashboard on app paths
|
||||||
|
$router->get('/login', function ($request, $response) {
|
||||||
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
|
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
|
||||||
$response->sendHeaders();
|
$response->sendHeaders();
|
||||||
readfile(__DIR__ . '/index.html');
|
readfile(__DIR__ . '/index.html');
|
||||||
exit;
|
exit;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$router->get('/register', function ($request, $response) {
|
||||||
|
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
|
||||||
|
$response->sendHeaders();
|
||||||
|
readfile(__DIR__ . '/index.html');
|
||||||
|
exit;
|
||||||
|
});
|
||||||
|
|
||||||
|
$router->get('/dashboard', function ($request, $response) {
|
||||||
|
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
|
||||||
|
$response->sendHeaders();
|
||||||
|
readfile(__DIR__ . '/index.html');
|
||||||
|
exit;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Route for serving the dynamic landing mockup image
|
||||||
|
$router->get('/landing_mockup.php', function ($request, $response) {
|
||||||
|
require __DIR__ . '/landing_mockup.php';
|
||||||
|
exit;
|
||||||
|
});
|
||||||
|
|
||||||
// Serve admin.html super admin panel on /admin path
|
// Serve admin.html super admin panel on /admin path
|
||||||
$router->get('/admin', function ($request, $response) {
|
$router->get('/admin', function ($request, $response) {
|
||||||
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
|
$response->setHeader('Content-Type', 'text/html; charset=utf-8');
|
||||||
|
|||||||
857
backend/public/landing.html
Normal file
857
backend/public/landing.html
Normal file
@@ -0,0 +1,857 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ar" dir="rtl">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>نبيه | منصة المحادثة الذكية وأتمتة خدمة العملاء بالذكاء الاصطناعي</title>
|
||||||
|
|
||||||
|
<!-- Google Fonts: Cairo for Arabic, Outfit for numbers & code -->
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Outfit:wght@300;400;600;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--bg-color: #080b11;
|
||||||
|
--panel-bg: rgba(17, 24, 39, 0.7);
|
||||||
|
--border-color: rgba(255, 255, 255, 0.08);
|
||||||
|
|
||||||
|
--primary: #8b5cf6;
|
||||||
|
--primary-glow: rgba(139, 92, 246, 0.15);
|
||||||
|
--secondary: #06b6d4;
|
||||||
|
--secondary-glow: rgba(6, 182, 212, 0.15);
|
||||||
|
|
||||||
|
--text-main: #f3f4f6;
|
||||||
|
--text-muted: #9ca3af;
|
||||||
|
--success: #10b981;
|
||||||
|
--warning: #f59e0b;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: 'Cairo', 'Outfit', sans-serif;
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--bg-color);
|
||||||
|
color: var(--text-main);
|
||||||
|
overflow-x: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ambient Glow Backgrounds */
|
||||||
|
.glow-sphere {
|
||||||
|
position: absolute;
|
||||||
|
border-radius: 50%;
|
||||||
|
filter: blur(140px);
|
||||||
|
z-index: -1;
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
.glow-1 {
|
||||||
|
top: -10%;
|
||||||
|
left: -10%;
|
||||||
|
width: 40vw;
|
||||||
|
height: 40vw;
|
||||||
|
background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
|
||||||
|
}
|
||||||
|
.glow-2 {
|
||||||
|
top: 40%;
|
||||||
|
right: -10%;
|
||||||
|
width: 50vw;
|
||||||
|
height: 50vw;
|
||||||
|
background: radial-gradient(circle, var(--secondary) 0%, rgba(0,0,0,0) 70%);
|
||||||
|
}
|
||||||
|
.glow-3 {
|
||||||
|
bottom: -5%;
|
||||||
|
left: 10%;
|
||||||
|
width: 35vw;
|
||||||
|
height: 35vw;
|
||||||
|
background: radial-gradient(circle, #4f46e5 0%, rgba(0,0,0,0) 70%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Container & Grid layout */
|
||||||
|
.container {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navbar Styling */
|
||||||
|
header {
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
backdrop-filter: blur(12px);
|
||||||
|
-webkit-backdrop-filter: blur(12px);
|
||||||
|
background: rgba(8, 11, 17, 0.75);
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
.nav-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
.logo {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--text-main);
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 1.6rem;
|
||||||
|
letter-spacing: -0.5px;
|
||||||
|
}
|
||||||
|
.logo-icon {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
||||||
|
border-radius: 12px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
|
||||||
|
}
|
||||||
|
.logo-icon svg {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
fill: white;
|
||||||
|
}
|
||||||
|
.nav-links {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
list-style: none;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.nav-links a {
|
||||||
|
color: var(--text-muted);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
.nav-links a:hover {
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
.btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0.75rem 1.5rem;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
cursor: pointer;
|
||||||
|
border: none;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
.btn-primary {
|
||||||
|
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
||||||
|
color: white;
|
||||||
|
box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
|
||||||
|
}
|
||||||
|
.btn-primary:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
|
||||||
|
}
|
||||||
|
.btn-secondary {
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
color: var(--text-main);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
.btn-secondary:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero Section */
|
||||||
|
.hero {
|
||||||
|
padding: 5rem 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.hero-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 4rem;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.hero-content h1 {
|
||||||
|
font-size: 3.2rem;
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1.25;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
background: linear-gradient(to left, #ffffff, #c084fc, #22d3ee);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.hero-content p {
|
||||||
|
font-size: 1.15rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
line-height: 1.8;
|
||||||
|
margin-bottom: 2.5rem;
|
||||||
|
}
|
||||||
|
.hero-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
.hero-visual {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.mockup-wrapper {
|
||||||
|
position: relative;
|
||||||
|
background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 0.5rem;
|
||||||
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
-webkit-backdrop-filter: blur(20px);
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 500px;
|
||||||
|
transition: transform 0.5s ease;
|
||||||
|
}
|
||||||
|
.mockup-wrapper:hover {
|
||||||
|
transform: rotate(-1deg) scale(1.02);
|
||||||
|
}
|
||||||
|
.mockup-img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 15px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Features Section */
|
||||||
|
.features {
|
||||||
|
padding: 6rem 0;
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
.section-header {
|
||||||
|
text-align: center;
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 0 auto 4rem auto;
|
||||||
|
}
|
||||||
|
.section-header h2 {
|
||||||
|
font-size: 2.2rem;
|
||||||
|
font-weight: 800;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.section-header p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 1.05rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
.features-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
.feature-card {
|
||||||
|
background: var(--panel-bg);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 2.2rem;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
-webkit-backdrop-filter: blur(10px);
|
||||||
|
}
|
||||||
|
.feature-card:hover {
|
||||||
|
transform: translateY(-8px);
|
||||||
|
border-color: rgba(139, 92, 246, 0.4);
|
||||||
|
box-shadow: 0 12px 30px rgba(139, 92, 246, 0.1);
|
||||||
|
}
|
||||||
|
.feature-icon {
|
||||||
|
width: 55px;
|
||||||
|
height: 55px;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: rgba(139, 92, 246, 0.1);
|
||||||
|
border: 1px solid rgba(139, 92, 246, 0.2);
|
||||||
|
color: var(--primary);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 1.6rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
.feature-card:nth-child(even) .feature-icon {
|
||||||
|
background: rgba(6, 182, 212, 0.1);
|
||||||
|
border: 1px solid rgba(6, 182, 212, 0.2);
|
||||||
|
color: var(--secondary);
|
||||||
|
}
|
||||||
|
.feature-card h3 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
.feature-card p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 0.95rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Coming Soon / Roadmap Section */
|
||||||
|
.roadmap {
|
||||||
|
padding: 6rem 0;
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
background: linear-gradient(180deg, rgba(8,11,17,0) 0%, rgba(139, 92, 246, 0.03) 50%, rgba(8,11,17,0) 100%);
|
||||||
|
}
|
||||||
|
.roadmap-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
.roadmap-card {
|
||||||
|
background: rgba(17, 24, 39, 0.4);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 20px;
|
||||||
|
padding: 2rem;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.roadmap-card::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 3px;
|
||||||
|
background: linear-gradient(90deg, var(--primary), var(--secondary));
|
||||||
|
}
|
||||||
|
.badge-soon {
|
||||||
|
position: absolute;
|
||||||
|
top: 1rem;
|
||||||
|
left: 1rem;
|
||||||
|
background: rgba(245, 158, 11, 0.15);
|
||||||
|
border: 1px solid rgba(245, 158, 11, 0.3);
|
||||||
|
color: var(--warning);
|
||||||
|
padding: 0.25rem 0.75rem;
|
||||||
|
border-radius: 30px;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.roadmap-card h3 {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
.roadmap-card p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pricing Section */
|
||||||
|
.pricing {
|
||||||
|
padding: 6rem 0;
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
.pricing-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
|
gap: 2rem;
|
||||||
|
align-items: stretch;
|
||||||
|
max-width: 1000px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.price-card {
|
||||||
|
background: var(--panel-bg);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 24px;
|
||||||
|
padding: 3rem 2.5rem;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
-webkit-backdrop-filter: blur(10px);
|
||||||
|
}
|
||||||
|
.price-card.featured {
|
||||||
|
border-color: var(--primary);
|
||||||
|
box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
|
||||||
|
}
|
||||||
|
.price-card.featured .popular-tag {
|
||||||
|
position: absolute;
|
||||||
|
top: -12px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background: var(--primary);
|
||||||
|
color: white;
|
||||||
|
padding: 0.3rem 1.2rem;
|
||||||
|
border-radius: 30px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: 700;
|
||||||
|
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
|
||||||
|
}
|
||||||
|
.price-name {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.price-val {
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-main);
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
.price-val span {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
.price-features {
|
||||||
|
list-style: none;
|
||||||
|
margin: 2.5rem 0;
|
||||||
|
text-align: right;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
.price-features li {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
color: var(--text-main);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
.price-features li svg {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
fill: var(--success);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Simulated Chat Area */
|
||||||
|
.chat-demo {
|
||||||
|
padding: 6rem 0;
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
.chat-container {
|
||||||
|
max-width: 650px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: var(--panel-bg);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 24px;
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
|
.chat-header {
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
padding: 1.2rem 1.5rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
.chat-avatar {
|
||||||
|
width: 45px;
|
||||||
|
height: 45px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: white;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
.chat-header-info h4 {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.chat-header-info span {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--success);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.35rem;
|
||||||
|
}
|
||||||
|
.chat-body {
|
||||||
|
height: 350px;
|
||||||
|
padding: 1.5rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
.msg {
|
||||||
|
max-width: 80%;
|
||||||
|
padding: 0.85rem 1.2rem;
|
||||||
|
border-radius: 16px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
.msg-in {
|
||||||
|
align-self: flex-start;
|
||||||
|
background: rgba(255, 255, 255, 0.06);
|
||||||
|
color: var(--text-main);
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
}
|
||||||
|
.msg-out {
|
||||||
|
align-self: flex-end;
|
||||||
|
background: linear-gradient(135deg, var(--primary), #6366f1);
|
||||||
|
color: white;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
}
|
||||||
|
.chat-footer {
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
.chat-input {
|
||||||
|
flex-grow: 1;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
padding: 0.75rem 1.2rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
color: white;
|
||||||
|
outline: none;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
.chat-input:focus {
|
||||||
|
border-color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
footer {
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
background: #04060a;
|
||||||
|
padding: 4rem 0 2rem 0;
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.footer-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 2fr 1fr 1fr;
|
||||||
|
gap: 4rem;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
.footer-logo {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-main);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
.footer-col h5 {
|
||||||
|
color: var(--text-main);
|
||||||
|
font-size: 1.05rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
}
|
||||||
|
.footer-links {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
.footer-links a {
|
||||||
|
color: var(--text-muted);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
.footer-links a:hover {
|
||||||
|
color: var(--text-main);
|
||||||
|
}
|
||||||
|
.copyright {
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 2rem;
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive adjustments */
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.hero-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 3rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.hero-actions {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.footer-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 2.5rem;
|
||||||
|
}
|
||||||
|
.nav-links {
|
||||||
|
display: none; /* Mobile menu can be added later */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- Ambient Glowing Spheres -->
|
||||||
|
<div class="glow-sphere glow-1"></div>
|
||||||
|
<div class="glow-sphere glow-2"></div>
|
||||||
|
<div class="glow-sphere glow-3"></div>
|
||||||
|
|
||||||
|
<!-- Header / Navbar -->
|
||||||
|
<header>
|
||||||
|
<div class="container nav-container">
|
||||||
|
<a href="#" class="logo">
|
||||||
|
<div class="logo-icon">
|
||||||
|
<svg viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12c0 1.84.5 3.56 1.37 5.04L2 22l5.12-1.34C8.54 21.5 10.2 22 12 22c5.52 0 10-4.48 10-10S17.52 2 12 2zm0 18c-1.63 0-3.15-.45-4.47-1.23l-.32-.19-3 .79.8-2.93-.21-.34C4.04 14.78 3.5 13.45 3.5 12c0-4.69 3.81-8.5 8.5-8.5s8.5 3.81 8.5 8.5-3.81 8.5-8.5 8.5z"/></svg>
|
||||||
|
</div>
|
||||||
|
<span>نبيه</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<ul class="nav-links">
|
||||||
|
<li><a href="#features">الميزات</a></li>
|
||||||
|
<li><a href="#coming-soon">قريباً</a></li>
|
||||||
|
<li><a href="#pricing">الأسعار</a></li>
|
||||||
|
<li><a href="#demo">تجربة حية</a></li>
|
||||||
|
<li><a href="/login" class="btn btn-secondary" style="padding: 0.5rem 1.25rem;">تسجيل الدخول</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Hero Section -->
|
||||||
|
<section class="hero">
|
||||||
|
<div class="container hero-grid">
|
||||||
|
<div class="hero-content">
|
||||||
|
<h1>نبيه: مستقبل خدمة العملاء والأتمتة الذكية</h1>
|
||||||
|
<p>منصة الساس المتكاملة لربط قنوات واتساب وإدارة المحادثات تلقائياً بالاعتماد على الذكاء الاصطناعي. ابدأ فترتك التجريبية مجاناً اليوم وزد من مبيعات متجرك وفعالية الدعم الفني لديك بمعدل 5 أضعاف.</p>
|
||||||
|
<div class="hero-actions">
|
||||||
|
<a href="/register" class="btn btn-primary">ابدأ مجاناً (14 يوم)</a>
|
||||||
|
<a href="#demo" class="btn btn-secondary">شاهد عرضاً حياً</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="hero-visual">
|
||||||
|
<div class="mockup-wrapper">
|
||||||
|
<!-- Referencing the generated image served dynamically -->
|
||||||
|
<img src="/landing_mockup.php" alt="لوحة تحكم نبيه الذكية" class="mockup-img">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Key Features Section -->
|
||||||
|
<section class="features" id="features">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section-header">
|
||||||
|
<h2>لماذا تختار منصة نبيه؟</h2>
|
||||||
|
<p>نجمع لك أفضل تقنيات ربط قنوات الاتصال والردود الذكية لتوفر الوقت والجهد وتصنع تجربة عميل فائقة.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="features-grid">
|
||||||
|
<div class="feature-card">
|
||||||
|
<div class="feature-icon">🤖</div>
|
||||||
|
<h3>ذكاء اصطناعي تفاعلي (Gemini)</h3>
|
||||||
|
<p>مساعد ذكي يقرأ نية العميل ويجيب على الاستفسارات، كما يدعم قراءة المستندات والصور (OCR) للمطابقة التلقائية.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="feature-card">
|
||||||
|
<div class="feature-icon">⚡</div>
|
||||||
|
<h3>محرك تدفق المحادثات (Flow Engine)</h3>
|
||||||
|
<p>رسم سيناريوهات محادثة ديناميكية متعددة الخطوات لجمع البيانات، تسجيل السائقين، أو تتبع الشحنات بكل مرونة.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="feature-card">
|
||||||
|
<div class="feature-icon">🛍️</div>
|
||||||
|
<h3>أتمتة التجارة الإلكترونية</h3>
|
||||||
|
<p>إشعارات تلقائية فورية لتأكيد الطلب وشحنه، وإرسال تنبيهات استعادة السلات المتروكة لزيادة مبيعات متجرك.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="feature-card">
|
||||||
|
<div class="feature-icon">📢</div>
|
||||||
|
<h3>حملات البث الجماعي</h3>
|
||||||
|
<p>إرسال رسائل وحملات تسويقية جماعية للفئات المستهدفة مع تقارير وإحصائيات تفصيلية لمعدلات التسليم والاستهلاك.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Coming Soon Section -->
|
||||||
|
<section class="roadmap" id="coming-soon">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section-header">
|
||||||
|
<h2>رؤيتنا المستقبلية وقريباً بالمنصة</h2>
|
||||||
|
<p>نسعى لبناء نظام اتصالات موحد لكافة قنوات أعمالك. إليك الميزات والمنصات التي نعمل على إطلاقها حالياً:</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="roadmap-grid">
|
||||||
|
<div class="roadmap-card">
|
||||||
|
<span class="badge-soon">الربع الحالي</span>
|
||||||
|
<h3>بوتات تيليجرام (Telegram)</h3>
|
||||||
|
<p>ربط قنوات التليجرام والمجموعات بمحرك الرد والخطوات التفاعلية لخدمة العملاء على نطاق واسع.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="roadmap-card">
|
||||||
|
<span class="badge-soon">الربع الحالي</span>
|
||||||
|
<h3>ماسنجر وإنستغرام (Meta API)</h3>
|
||||||
|
<p>استقبال الردود والرسائل المباشرة (DMs) لصفحات الفيسبوك وحسابات الإنستغرام وإدارتها من لوحة واحدة وبشكل مؤتمت.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="roadmap-card">
|
||||||
|
<span class="badge-soon">قريباً جداً</span>
|
||||||
|
<h3>تكامل شوبيفاي المباشر (Shopify)</h3>
|
||||||
|
<p>إرسال ويب هوك تلقائي لحالات الطلب وتوفير ميزة البحث عن الشحنات لعملاء متاجر شوبيفاي عبر البوت.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Interactive Chat Simulator Section -->
|
||||||
|
<section class="chat-demo" id="demo">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section-header">
|
||||||
|
<h2>جرّب البوت التفاعلي الآن</h2>
|
||||||
|
<p>تفاعل مع النموذج أدناه لترى كيف يقوم محرك المحادثة بالاستجابة لطلب العميل وحفظ حالته:</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chat-container">
|
||||||
|
<div class="chat-header">
|
||||||
|
<div class="chat-avatar">ن</div>
|
||||||
|
<div class="chat-header-info">
|
||||||
|
<h4>مساعد نبيه الذكي</h4>
|
||||||
|
<span>🟢 متصل بالإنترنت</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chat-body" id="chat-box">
|
||||||
|
<div class="msg msg-in">مرحباً بك! أنا مساعد منصة نبيه الذكي. كيف يمكنني خدمتك اليوم؟</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chat-footer">
|
||||||
|
<input type="text" id="chat-input" class="chat-input" placeholder="اكتب رسالتك هنا... (مثال: 'طلب ترقية الحساب' أو 'أسعار الباقات')" onkeypress="handleKeyPress(event)">
|
||||||
|
<button class="btn btn-primary" style="padding: 0.5rem 1.25rem;" onclick="sendMessage()">إرسال</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Pricing Section -->
|
||||||
|
<section class="pricing" id="pricing">
|
||||||
|
<div class="container">
|
||||||
|
<div class="section-header">
|
||||||
|
<h2>باقات تناسب نمو أعمالك</h2>
|
||||||
|
<p>ابدأ بفترة تجريبية مجانية واختر الباقة الأنسب لاحقاً. لا نطلب بطاقة ائتمانية للتسجيل.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pricing-grid">
|
||||||
|
<!-- Trial -->
|
||||||
|
<div class="price-card">
|
||||||
|
<div>
|
||||||
|
<div class="price-name">باقة التجربة المجانية</div>
|
||||||
|
<div class="price-val">0 <span>د.أ / 14 يوم</span></div>
|
||||||
|
<ul class="price-features">
|
||||||
|
<li><svg viewBox="0 0 20 20"><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg> خط واتساب واحد نشط</li>
|
||||||
|
<li><svg viewBox="0 0 20 20"><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg> 100 رسالة تجريبية</li>
|
||||||
|
<li><svg viewBox="0 0 20 20"><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg> دعم بوت الرد التلقائي الأساسي</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a href="/register" class="btn btn-secondary">ابدأ الفترة التجريبية</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Silver (Featured) -->
|
||||||
|
<div class="price-card featured">
|
||||||
|
<div class="popular-tag">الأكثر طلباً</div>
|
||||||
|
<div>
|
||||||
|
<div class="price-name">الباقة الفضية (Silver)</div>
|
||||||
|
<div class="price-val">29 <span>د.أ / شهرياً</span></div>
|
||||||
|
<ul class="price-features">
|
||||||
|
<li><svg viewBox="0 0 20 20"><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg> خطين واتساب متصلين</li>
|
||||||
|
<li><svg viewBox="0 0 20 20"><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg> 5,000 رسالة / شهرياً</li>
|
||||||
|
<li><svg viewBox="0 0 20 20"><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg> تكامل متكامل مع الذكاء الاصطناعي</li>
|
||||||
|
<li><svg viewBox="0 0 20 20"><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg> ربط المتاجر الإلكترونية والسلات المتروكة</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<a href="/register" class="btn btn-primary">اشترك الآن</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer>
|
||||||
|
<div class="container footer-grid">
|
||||||
|
<div class="footer-col">
|
||||||
|
<div class="footer-logo">
|
||||||
|
<span style="font-weight: 800;">نبيه</span>
|
||||||
|
</div>
|
||||||
|
<p style="line-height: 1.6; margin-bottom: 1.5rem;">منصة ساس متكاملة لتشغيل أتمتة الأعمال وخدمة العملاء الذكية عبر قنوات المراسلة الفورية.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer-col">
|
||||||
|
<h5>روابط سريعة</h5>
|
||||||
|
<ul class="footer-links">
|
||||||
|
<li><a href="#features">الميزات الأساسية</a></li>
|
||||||
|
<li><a href="#coming-soon">خطة العمل المستقبلية</a></li>
|
||||||
|
<li><a href="#pricing">باقات الاشتراك</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer-col">
|
||||||
|
<h5>الحساب</h5>
|
||||||
|
<ul class="footer-links">
|
||||||
|
<li><a href="/login">تسجيل الدخول</a></li>
|
||||||
|
<li><a href="/register">حساب جديد</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="copyright container">
|
||||||
|
<p>© 2026 منصة نبيه (Nabeh). جميع الحقوق محفوظة.</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const chatBox = document.getElementById('chat-box');
|
||||||
|
const chatInput = document.getElementById('chat-input');
|
||||||
|
|
||||||
|
function handleKeyPress(event) {
|
||||||
|
if (event.key === 'Enter') {
|
||||||
|
sendMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function sendMessage() {
|
||||||
|
const text = chatInput.value.trim();
|
||||||
|
if (!text) return;
|
||||||
|
|
||||||
|
// Add user message
|
||||||
|
addMessage(text, 'msg-out');
|
||||||
|
chatInput.value = '';
|
||||||
|
|
||||||
|
// Simulated response logic
|
||||||
|
setTimeout(() => {
|
||||||
|
let reply = 'شكراً لرسالتك! لطلب تفعيل الحساب أو الترقية، يرجى التسجيل وتوجه لتبويب "الباقات والاشتراكات" في حسابك.';
|
||||||
|
if (text.includes('سعر') || text.includes('باق') || text.includes('اسعار')) {
|
||||||
|
reply = 'تبدأ باقاتنا من 0 د.أ للفترة التجريبية، ولدينا باقات مميزة كالباقة الفضية بقيمة 29 د.أ شهرياً تشمل ميزات الذكاء الاصطناعي وسيناريوهات التدفق التفاعلي.';
|
||||||
|
} else if (text.includes('الذكاء') || text.includes('اصطناعي') || text.includes('gemini')) {
|
||||||
|
reply = 'نستخدم نموذج Gemini AI الذكي لقراءة الرسائل وفهم نية العميل، كما ندعم استخراج البيانات النصية من الصور (OCR) لتسجيل وتفعيل الاشتراكات.';
|
||||||
|
} else if (text.includes('شوبيفاي') || text.includes('shopify') || text.includes('متجر')) {
|
||||||
|
reply = 'أهلاً بك! ميزة الربط المباشر مع شوبيفاي وسلة المشتريات قيد التطوير وستنطلق قريباً جداً في الربع الحالي لأتمتة الرسائل التنبيهية.';
|
||||||
|
}
|
||||||
|
addMessage(reply, 'msg-in');
|
||||||
|
}, 800);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addMessage(text, className) {
|
||||||
|
const msgDiv = document.createElement('div');
|
||||||
|
msgDiv.className = `msg ${className}`;
|
||||||
|
msgDiv.innerText = text;
|
||||||
|
chatBox.appendChild(msgDiv);
|
||||||
|
chatBox.scrollTop = chatBox.scrollHeight;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
3
backend/public/landing_mockup.php
Normal file
3
backend/public/landing_mockup.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
header('Content-Type: image/png');
|
||||||
|
readfile('/Users/hamzaaleghwairyeen/.gemini/antigravity-ide/brain/ded33709-0084-4a6b-881c-786000c9ec5a/nabeh_landing_mockup_1779496984022.png');
|
||||||
Reference in New Issue
Block a user