-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcart.html
More file actions
100 lines (94 loc) · 3.57 KB
/
Copy pathcart.html
File metadata and controls
100 lines (94 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="he" dir="rtl">
<head>
<meta charset="UTF-8">
<title>עגלת קניות - עוגות</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="auth.css">
<script src="email-service.js" defer></script>
</head>
<body>
<header>
<h1>Cakes</h1>
<p>טעימות. ביתיות. מהלב.</p>
<nav>
<a href="index.html">דף הבית</a>
<a href="cart.html" class="active">עגלת קניות</a>
<a href="login.html" id="loginLink">התחברות</a>
<a href="#" id="logoutLink" style="display: none;">התנתקות</a>
</nav>
</header>
<main>
<div class="auth-container" id="cartContainer">
<h2>עגלת קניות</h2>
<div id="cartItems">
<!-- Cart items will be displayed here -->
<p id="emptyCart">העגלה שלך ריקה</p>
</div>
<div class="cart-summary">
<p>סה"כ: <span id="cartTotal">0</span> שקל</p>
<button id="checkoutBtn" disabled>לתשלום</button>
</div>
</div>
<div class="auth-container" id="loginRequired" style="display: none;">
<h2>נדרשת התחברות</h2>
<p>כדי להמשיך לתשלום, יש להתחבר תחילה.</p>
<div class="form-actions">
<a href="login.html" class="button">התחבר</a>
<a href="register.html" class="button secondary">הרשם</a>
</div>
</div>
<div class="auth-container" id="checkoutForm" style="display: none;">
<h2>השלמת הזמנה</h2>
<form id="orderForm">
<div class="form-group">
<label for="deliveryAddress">כתובת למשלוח:</label>
<input type="text" id="deliveryAddress" name="deliveryAddress" required>
</div>
<div class="form-group">
<label for="deliveryDate">תאריך אספקה מבוקש:</label>
<input type="date" id="deliveryDate" name="deliveryDate" required>
</div>
<div class="form-group">
<label for="notes">הערות מיוחדות:</label>
<textarea id="notes" name="notes" rows="3"></textarea>
</div>
<div class="payment-details">
<h3>פרטי תשלום</h3>
<div class="form-group">
<label for="cardNumber">מספר כרטיס:</label>
<input type="text" id="cardNumber" name="cardNumber" required>
</div>
<div class="form-row">
<div class="form-group half">
<label for="expiryDate">תוקף:</label>
<input type="text" id="expiryDate" name="expiryDate" placeholder="MM/YY" required>
</div>
<div class="form-group half">
<label for="cvv">CVV:</label>
<input type="text" id="cvv" name="cvv" required>
</div>
</div>
</div>
<div class="form-actions">
<button type="submit">השלם הזמנה</button>
</div>
</form>
</div>
<div class="auth-container" id="orderConfirmation" style="display: none;">
<h2>תודה על הזמנתך!</h2>
<p>ההזמנה שלך התקבלה בהצלחה.</p>
<p>מספר הזמנה: <span id="orderNumber"></span></p>
<p>נשלח אליך אישור במייל בקרוב.</p>
<div class="form-actions">
<a href="index.html" class="button">חזרה לדף הבית</a>
</div>
</div>
</main>
<footer>
<p>© 2025 כל הזכויות שמורות לעוגות של קייקס</p>
</footer>
<script src="auth.js"></script>
<script src="cart.js"></script>
</body>
</html>