<!DOCTYPE html> <html lang="ar" dir="rtl"> <head> <meta charset="UTF-8"> <meta…
- Usercode
- Assistant
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
font-family: 'Playfair Display', serif;
background: var(--beige);
min-height: 100vh;
overflow-x: hidden;
text-align: right;
}
.app-container {
width: 100%;
min-height: 100vh;
background: var(--beige);
position: relative;
}
/* ============ HEADER ============ */
.header {
position: fixed;
top: 0; left: 0; right: 0;
height: var(--header-height);
padding: 24px 24px 16px;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--beige);
z-index: 500;
}
.header-inner {
width: 100%;
max-width: 600px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-actions {
display: flex;
align-items: center;
gap: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 120px; height: 60px; display: flex; align-items: center; }
.logo-icon img { width: 100%; height: auto; object-fit: contain; }
.icon-btn {
width: 40px; height: 40px;
border-radius: 50%;
background: var(--card-bg);
border: 1px solid var(--card-border);
display: flex; align-items: center; justify-content: center;
cursor: pointer;
transition: transform 0.2s, background 0.2s;
}
.icon-btn:hover { transform: scale(1.05); background: var(--white); }
.icon-btn svg { width: 20px; height: 20px; color: var(--text-dark); }
.cart-badge {
position: absolute; top: -4px; left: -4px; /* Modified for RTL */
min-width: 18px; height: 18px;
background: var(--olive);
color: white;
border-radius: 50%;
border: 2px solid var(--beige);
font-size: 10px;
font-weight: 700;
display: flex; align-items: center; justify-content: center;
padding: 0 3px;
}
.cart-badge.hidden { display: none; }
.lang-dropdown {
position: absolute; top: 48px; left: 50px; /* Modified for RTL */
background: var(--white);
border: 1px solid var(--card-border);
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
display: none; flex-direction: column;
z-index: 1000; min-width: 110px;
}
.lang-dropdown.show { display: flex; }
.lang-opt {
padding: 10px 16px; font-size: 13px; color: var(--text-dark);
background: none; border: none; text-align: right;
cursor: pointer; width: 100%; transition: background 0.2s;
}
.lang-opt:hover { background: var(--beige); color: var(--olive); }
/* ============ SCROLL CONTENT ============ */
.scroll-content {
padding-top: var(--header-height);
padding-bottom: calc(var(--footer-height) + 20px);
background-image: url('imgs/cafe1.png');
background-size: cover;
background-position: center;
margin-right: 200px;
height: 230px;
width: 350px;
margin-top: 100px;
}
.content-inner {
width: 100%;
max-width: 600px;
margin: 0 auto;
padding: 8px 0 20px;
}
/* ============ HERO SECTION ============ */
.hero {
position: relative;
border-radius: 0 0 30px 30px;
overflow: hidden;
margin-bottom: 8px;
}
.hero-bg {
position: absolute;
inset: 0;
}
.hero-content {
position: relative;
z-index: 2;
padding: 32px 24px;
max-width: 75%;
}
.hero-title {
font-family: 'Playfair Display', serif;
font-size: 35px;
font-weight: bold;
color: var(--text-dark);
line-height: 1.3;
}
.hero-title .leaf-icon {
display: inline-block;
width: 20px; height: 20px;
margin-left: 4px;
vertical-align: middle;
color: var(--olive);
}
[dir="rtl"] .hero-title .leaf-icon { margin-left: 0; margin-right: 4px; }
.hero-subtitle {
font-size: 17px;
color: var(--text-medium);
margin-top: 14px;
line-height: 1.6;
}
/* ============ CARDS ============ */
.card, .product-card {
margin: 8px 24px 16px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 20px;
display: flex;
flex-direction: row; /* Flex default for RTL */
gap: 16px;
align-items: center;
transition: 0.3s;
cursor: pointer;
z-index: 1;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card-content { flex: 1; }
.card-label { font-size: 10px; font-weight: 700; color: var(--olive); text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--text-dark); }
.card-desc { font-size: 12px; color: var(--text-medium); line-height: 1.5; margin-bottom: 12px; }
.card-link {
display: inline-flex; align-items: center; gap: 6px;
font-size: 12px; font-weight: 600; color: var(--text-dark);
text-decoration: none;
}
.card-link svg { transform: scaleX(-1); }
.card-image img { width: 100px; height: 100px; object-fit: contain; }
/* ============ SERVICES ============ */
.services {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
padding: 0 24px 16px;
margin-right: 70px;
}
.service-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
cursor: pointer;
transition: transform 0.2s;
}
.service-item:hover { transform: translateY(-4px); }
.service-icon {
width: 56px; height: 56px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 16px;
display: flex; align-items: center; justify-content: center;
transition: background 0.2s, border-color 0.2s;
}
.service-item:hover .service-icon { background: var(--white); border-color: var(--olive); }
.service-icon svg { width: 24px; height: 24px; color: var(--text-dark); transition: color 0.2s; }
.service-item:hover .service-icon svg { color: var(--olive); }
.service-label {
font-size: 11px; font-weight: 500; color: var(--text-medium);
text-align: center; line-height: 1.3;
}
/* ============ FEATURED PRODUCT ============ */
.product-card {
margin: 8px 24px 16px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 20px;
padding: 20px;
display: flex;
gap: 16px;
align-items: center;
transition: transform 0.2s, box-shadow 0.2s;
cursor: pointer;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.product-content { flex: 1; }
.product-label {
font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
text-transform: uppercase; color: var(--text-light); margin-bottom: 8px;
}
.product-title {
font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600;
color: var(--text-dark); line-height: 1.3; margin-bottom: 6px;
}
.product-desc { font-size: 12px; color: var(--text-medium); line-height: 1.5; margin-bottom: 12px; }
.product-price { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 14px; }
.product-image {
width: 120px; height: 140px; flex-shrink: 0;
display: flex; align-items: center; justify-content: center; position: relative;
}
/* ============ BOTTOM NAV ============ */
.bottom-nav {
position: fixed;
bottom: 0; left: 0; right: 0;
height: var(--footer-height);
background: var(--beige);
border-top: 1px solid var(--card-border);
padding: 12px 0 20px;
display: flex; justify-content: center; align-items: center;
z-index: 500;
}
.nav-inner {
width: 100%; max-width: 600px;
display: flex; justify-content: space-around; align-items: center;
}
.nav-item {
display: flex; flex-direction: column; align-items: center;
gap: 4px; cursor: pointer; text-decoration: none;
}
.nav-item.active .nav-label, .nav-item.active .nav-icon svg { color: var(--olive); }
.nav-icon svg { width: 22px; height: 22px; color: var(--text-light); }
.nav-label { font-size: 12px; color: var(--text-light);font-weight: bold; }
/* ============ HELP MODAL ============ */
/* ============================================
GUIDE & HELP MODAL DRAWER + EMAIL BUTTON
============================================ */
.help-backdrop {
position: fixed; inset: 0;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(4px);
z-index: 2500;
display: none; align-items: flex-end; justify-content: center;
opacity: 0; transition: opacity 0.3s ease;
}
.help-backdrop.show { display: flex; opacity: 1; }
.help-modal {
width: 100%; max-width: 600px;
background: var(--beige-light);
border-radius: 28px 28px 0 0;
padding: 24px 24px 36px;
box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
max-height: 85vh; overflow-y: auto;
}
.help-backdrop.show .help-modal { transform: translateY(0); }
.help-handle {
width: 48px; height: 5px; background: var(--card-border);
border-radius: 3px; margin: 0 auto 20px;
}
.help-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 20px;
}
.help-title {
font-family: 'Playfair Display', serif; font-size: 22px;
font-weight: 600; color: var(--text-dark);
}
.help-close-btn {
background: var(--card-bg); border: 1px solid var(--card-border);
border-radius: 50%; width: 34px; height: 34px;
display: flex; align-items: center; justify-content: center;
cursor: pointer; color: var(--text-dark);
}
.help-section-title {
font-size: 13px; font-weight: 600; color: var(--olive);
text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 10px;
}
.help-card {
background: var(--white); border: 1px solid var(--card-border);
border-radius: 16px; padding: 16px; margin-bottom: 12px;
}
.help-card h4 {
font-size: 14px; font-weight: 600; color: var(--text-dark);
margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.help-card p {
font-size: 13px; color: var(--text-medium); line-height: 1.5;
}
.tour-start-btn {
width: 100%; padding: 16px;
background: var(--olive); color: var(--white);
border: none; border-radius: 16px; font-size: 14px; font-weight: 600;
cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
box-shadow: 0 4px 15px rgba(106, 153, 78, 0.3);
transition: background 0.2s, transform 0.2s; margin-top: 20px;
}
.tour-start-btn:hover { background: var(--olive-dark); transform: translateY(-2px); }
/* NEW: Email Support Button */
.email-support-btn {
width: 100%; padding: 15px 16px;
background: var(--white); color: var(--text-dark);
border: 1.5px solid var(--card-border); border-radius: 16px; font-size: 14px; font-weight: 600;
cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.2s; margin-top: 10px;
}
.email-support-btn:hover { background: var(--card-bg); border-color: var(--olive); transform: translateY(-2px); color: var(--olive); }
.email-support-btn svg { color: var(--olive); transition: color 0.2s; }
/* ============================================
INTERACTIVE SPOTLIGHT TOUR
============================================ */
.tour-overlay {
position: fixed; inset: 0; z-index: 3000;
pointer-events: none; display: none;
}
.tour-overlay.active { display: block; pointer-events: auto; }
.tour-spotlight {
position: absolute;
border-radius: 24px;
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
pointer-events: none;
border: 2px solid var(--olive-light);
}
.tour-tooltip {
position: absolute;
width: 310px;
background: var(--white);
border-radius: 20px;
padding: 20px;
box-shadow: 0 15px 35px rgba(0,0,0,0.25);
transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
z-index: 3001;
border: 1px solid var(--card-border);
}
.tour-step-count {
font-size: 11px; font-weight: 600; color: var(--olive);
text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: block;
}
.tour-step-title {
font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600;
color: var(--text-dark); margin-bottom: 8px;
}
.tour-step-desc {
font-size: 13px; color: var(--text-medium); line-height: 1.5; margin-bottom: 18px;
}
.tour-actions {
display: flex; justify-content: space-between; align-items: center;
}
.tour-dots {
display: flex; gap: 6px;
}
.tour-dot {
width: 6px; height: 6px; border-radius: 50%; background: var(--card-border);
transition: width 0.2s, background 0.2s;
}
.tour-dot.active { width: 18px; border-radius: 4px; background: var(--olive); }
.tour-btns { display: flex; gap: 8px; }
.tour-btn {
padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 600;
cursor: pointer; transition: all 0.2s; border: none;
}
.tour-btn-skip { background: transparent; color: var(--text-light); }
.tour-btn-next { background: var(--olive); color: var(--white); }
.tour-btn-next:hover { background: var(--olive-dark); }
@media (min-width: 601px) {
.hero-title { font-size: 32px; }
.services { gap: 16px; }
.help-modal { border-radius: 28px; margin: auto; max-height: 75vh; }
.help-backdrop { align-items: center; }
}
@media (max-width: 480px) {
.hero-content { max-width: 100%; }
.hero-overlay { background: linear-gradient(180deg, rgba(243,239,232,0.4) 0%, var(--beige) 75%); }
.tour-tooltip { width: calc(100% - 48px); }
}
</style>
<!-- HEADER -->
<header class="header">
<div class="header-inner">
<div class="logo">
<div class="logo-icon">
<img src="imgs/logo.png" alt="logo" id="logoImg" onerror="this.parentNode.innerHTML='☕ هاجِس'"/>
</div>
</div>
<div class="header-actions" id="tourActions">
<button class="icon-btn" id="helpBtn" onclick="toggleHelpModal()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
</button>
<button class="icon-btn" id="langBtn" onclick="toggleLangMenu(event)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
</button>
<div class="lang-dropdown" id="langDropdown">
<button class="lang-opt" onclick="changeLanguage('en')">English</button>
<button class="lang-opt" onclick="changeLanguage('ar')">العربية</button>
</div>
</div>
</div>
</header>
<!-- CONTENT -->
<main class="scroll-content">
<div class="content-inner">
<!-- HERO -->
<section class="hero" id="tourHero">
<div class="hero-bg"></div>
<div class="hero-overlay"></div>
<div class="hero-content">
<h1 class="hero-title" id="heroTitle">الهوس <br> حيث يبدأ <br> التميز.
<span class="leaf-icon">
<svg viewBox="0 0 20 20" fill="currentColor">
<path d="M10 2C10 2 6 6 6 10C6 14 8 16 10 17C12 16 14 14 14 10C14 6 10 2 10 2Z"/>
<line x1="10" y1="17" x2="10" y2="19" stroke="currentColor" stroke-width="1"/>
</svg>
</span>
</h1>
<p class="hero-subtitle" id="heroSubtitle">القهوة الرائعة ليست أبدًا<br> نتيجة للصدفة.</p>
</div>
</section>
<!-- COFFEE OF THE DAY -->
<div class="card" id="tourCard" onclick="window.location.href='v60.html'">
<div class="card-content">
<div class="card-label" id="cardLabel">قهوة اليوم</div>
<div class="card-title" id="cardTitle">V60 مقطرة</div>
<div class="card-desc" id="cardDesc">نقية، عطرية، وغنية بالنكهات الواضحة.</div>
<div class="card-link">
<span id="cardLinkText">عرض التفاصيل</span>
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg>
</div>
</div>
<div class="card-image">
<img src="imgs/v60.png" alt="قهوة" style="height:110px;">
</div>
</div>
<!-- SERVICES -->
<div class="services" id="tourServices">
<div class="service-item" onclick="window.location.href='menu.html'">
<div class="service-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 8h1a4 4 0 0 1 0 8h-1"/>
<path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"/>
<line x1="6" y1="1" x2="6" y2="4"/>
<line x1="10" y1="1" x2="10" y2="4"/>
<line x1="14" y1="1" x2="14" y2="4"/>
</svg>
</div>
<span class="service-label" id="srvOrder">القائمة</span>
</div>
<div class="service-item" onclick="window.location.href='discover.html'">
<div class="service-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/>
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/>
<line x1="9" y1="6" x2="15" y2="6"/>
<line x1="9" y1="10" x2="15" y2="10"/>
</svg>
</div>
<span class="service-label" id="srvRecipes">الوصفات</span>
</div>
</div>
<!-- FEATURED -->
<div class="product-card" id="tourProduct" onclick="window.location.href='hajiss.shop'">
<div class="product-content">
<div class="product-label" id="prodLabel">منتج مختار</div>
<div class="product-title" id="prodTitle">خلطة البيت<br>حبوب كاملة</div>
<div class="product-desc" id="prodDesc">متوازنة، ناعمة، صُممت لتناسب كل أوقاتك.</div>
<div class="product-price" id="prodPrice">28 ريال</div>
<a href="shop.html?product=house-blend" class="card-link" id="cardLink2" onclick="showDetails(event, 'House Blend Whole Beans')">
<span id="cardLinkText2">عرض التفاصيل</span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="5" y1="12" x2="19" y2="12"/>
<polyline points="12 5 19 12 12 19"/>
</svg>
</a>
</div>
<div class="product-image">
<img src="imgs/beans.png" alt="House Blend Beans" id="beansImg" style="height:190px; width:170px;"
onerror="this.src='https://images.unsplash.com/photo-1559056199-641a0ac8b55e?w=300&h=300&fit=crop'"/>
</div>
</div>
</div>
</main>
<!-- BOTTOM NAV -->
<nav class="bottom-nav">
<div class="nav-inner">
<a href="الرئيسية.html" class="nav-item active">
<span class="nav-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
<polyline points="9 22 9 12 15 12 15 22"/>
</svg>
</span>
<span class="nav-label" id="navHome">الرئيسية</span>
</a>
<a href="اكتشف.html" class="nav-item">
<span class="nav-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"/>
<polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"/>
</svg>
</span>
<span class="nav-label" id="navDiscover">اكتشف</span>
</a>
<a href="القائمة.html" class="nav-item ">
<span class="nav-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 8h1a4 4 0 0 1 0 8h-1"/>
<path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"/>
<line x1="6" y1="1" x2="6" y2="4"/><line x1="10" y1="1" x2="10" y2="4"/><line x1="14" y1="1" x2="14" y2="4"/>
</svg>
</span>
<span class="nav-label" id="navShop">القائمة</span>
</a>
<a href="تتبع.html" class="nav-item">
<span class="nav-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>
</svg>
</span>
<span class="nav-label" id="navCommunity">تتبع الطلب</span>
</a>
<a href="البحث.html" class="nav-item">
<span class="nav-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</span>
<span class="nav-label" id="navProfile">البحث</span>
</a>
</div>
</nav>
<!-- ============ HELP MODAL DRAWER + EMAIL BUTTON (Version Arabe) ============ -->
<!-- Start Tour Button -->
<button class="tour-start-btn" onclick="startInteractiveTour()">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>
<span id="helpStartTourText">بدء الجولة التعريفية التفاعلية</span>
</button>
<!-- Contact Support via Email Button -->
<a href="mailto:[EMAIL_ADDRESS_1]?subject=Help%20Request%20-%20Hajiss%20App" class="email-support-btn" id="helpEmailBtn" onclick="contactSupportEmail(event)">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>
<polyline points="22,6 12,13 2,6"/>
</svg>
<span id="helpEmailText">التواصل مع الدعم عبر البريد</span>
</a>
<div class="help-section-title" id="helpSecTips">نصائح سريعة</div>
<div class="help-card">
<h4 id="helpTip1Title"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--olive)" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 8v4l3 3"/></svg> توصيات يومية</h4>
<p id="helpTip1Desc">تفقد قسم "قهوة اليوم" يومياً لاكتشاف محاصيل مختصة طازجة الحمص يختارها خبراؤنا بعناية.</p>
</div>
<div class="help-card">
<h4 id="helpTip2Title"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--olive)" stroke-width="2"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg> وصفات التحضير</h4>
<p id="helpTip2Desc">اضغط على "الوصفات" في قائمة الخدمات لاستكشاف نسب التحضير والمؤقتات الدقيقة لكل من V60، كيمكس، والإسبريسو.</p>
</div>
<div class="help-card">
<h4 id="helpTip3Title"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--olive)" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg> لغات متعددة</h4>
<p id="helpTip3Desc">يمكنك التبديل بسلاسة بين اللغات العربية، الإنجليزية، والفرنسية في أي وقت عبر قائمة اللغات في أعلى الصفحة.</p>
</div>
<div class="help-card">
<h4 id="helpTip4Title"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--olive)" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg> دعم مباشر</h4>
<p id="helpTip4Desc">لديك سؤال محدد أو استفسار عن طلب خاص؟ اضغط على زر البريد الإلكتروني أعلاه لمراسلة خبرائنا مباشرة.</p>
</div>
</div>
<!-- TOUR -->
<div class="tour-overlay" id="tourOverlay">
<div class="tour-spotlight" id="tourSpotlight"></div>
<div class="tour-tooltip" id="tourTooltip">
<span class="tour-step-count" id="tourStepCount"></span>
<h3 class="tour-step-title" id="tourStepTitle"></h3>
<p class="tour-step-desc" id="tourStepDesc"></p>
<div class="tour-btns" style="display:flex; justify-content:space-between; margin-top:15px;">
<button class="tour-btn" onclick="endTour()" id="tourBtnSkip">تخطي</button>
<button class="tour-btn tour-btn-next" onclick="nextTourStep()" id="tourBtnNext" style="background:var(--olive); color:white; border:none; padding:5px 15px; border-radius:8px;">التالي</button>
</div>
</div>
</div>
<div class="toast" id="toast"></div>
</div>
I'll convert this HTML file into a complete React application with Tailwind CSS. Let me first explore the project structure to understand what we're working with.
Now I'll create a complete React application. Let me start by updating the index.html with the proper fonts and title, then create the main App component.
Now I'll create the main App component with all the features:
Now I need to add the necessary CSS styles. Let me update the index.css file:
Now let me create the images directory and generate the necessary images:
Now let me build the project to verify it compiles correctly:
The project built successfully. Let me verify the generated HTML:
The build succeeded. However, I notice some issues with the tour functionality and CSS. Let me improve the implementation with better tour handling and ensure all styles are properly applied:
The build succeeded! Let me verify the images were created and improve the CSS to ensure proper hover effects and tour functionality:
Now let me update the CSS to ensure proper tour overlay functionality:
Let me enhance the CSS to fix the tour overlay and help modal styling:
Now let me update the App.tsx to properly handle the tour overlay display with inline styles:
Let me fix the import:
The build succeeded. Let me verify the final generated HTML:
The project has been successfully built. Let me verify the final App.tsx to ensure all components are properly implemented:
The implementation is complete. Let me verify the CSS file has all the necessary styles:
Let me do a final build to confirm everything works:
The project has been successfully built. Let me verify the final project structure:
The React application has been successfully created with all the features from the original HTML. Here's a summary of what was implemented:
Project Structure:
index.html - Updated with Arabic title "هاجِس - حيث يبدأ التميز في حائل" and Playfair Display fonts
src/App.tsx - Complete React component with:
src/index.css - Custom CSS with:
public/imgs/ - Generated images:
logo.png - Coffee shop logocafe1.png - Coffee shop interior backgroundv60.png - V60 coffee dripperbeans.png - House blend coffee beansFiles built: index.html, src/App.tsx, src/index.css