-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (112 loc) · 5.82 KB
/
Copy pathindex.html
File metadata and controls
125 lines (112 loc) · 5.82 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InsuranceMate - ผู้ช่วยเรื่องประกันในมือคุณ</title>
<meta name="description" content="แอปจัดการประกันภัยและประกันชีวิต แจ้งเตือน เคลม และติดต่อตัวแทนได้ง่าย">
<!-- Google Fonts - Prompt (Modern Thai Font) -->
<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=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Styles -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- App Container -->
<div id="app" class="app-container">
<!-- Top Navigation Bar -->
<header class="top-nav">
<button id="backBtn" class="back-btn" style="display: none;">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M15 18l-6-6 6-6" />
</svg>
</button>
<h1 id="pageTitle" class="page-title">InsuranceMate</h1>
<div style="display: flex; gap: 0.5rem;">
<button id="notificationBtn" class="notification-btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9" />
<path d="M13.73 21a2 2 0 0 1-3.46 0" />
</svg>
<span id="notificationBadge" class="notification-badge" style="display: none;">3</span>
</button>
<button id="logoutBtn" class="notification-btn" onclick="handleLogout()" title="ออกจากระบบ">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
<polyline points="16 17 21 12 16 7" />
<line x1="21" y1="12" x2="9" y2="12" />
</svg>
</button>
</div>
</header>
<!-- Main Content Area -->
<main id="mainContent" class="main-content">
<!-- Content will be dynamically loaded here -->
</main>
<!-- Bottom Navigation Bar -->
<nav class="bottom-nav">
<button class="nav-item active" data-page="home">
<svg width="24" height="24" 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>
</button>
<button class="nav-item" data-page="family">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" />
<circle cx="9" cy="7" r="4" />
<path d="M23 21v-2a4 4 0 0 0-3-3.87" />
<path d="M16 3.13a4 4 0 0 1 0 7.75" />
</svg>
<span>ครอบครัว</span>
</button>
<button class="nav-item nav-item-primary" data-page="claim">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
<polyline points="14 2 14 8 20 8" />
<line x1="12" y1="18" x2="12" y2="12" />
<line x1="9" y1="15" x2="15" y2="15" />
</svg>
<span>แจ้งเคลม</span>
</button>
<button class="nav-item" data-page="agent">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" />
<circle cx="12" cy="7" r="4" />
</svg>
<span>ตัวแทน</span>
</button>
<button class="nav-item" data-page="more">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1" />
<circle cx="19" cy="12" r="1" />
<circle cx="5" cy="12" r="1" />
</svg>
<span>เพิ่มเติม</span>
</button>
</nav>
<!-- Modal Container -->
<div id="modalContainer" class="modal-container"></div>
<!-- Toast Notification -->
<div id="toast" class="toast"></div>
</div>
<!-- JavaScript -->
<script>
// Check if user is logged in
const currentUser = localStorage.getItem('currentUser');
if (!currentUser) {
window.location.href = 'login.html';
}
// Logout function
function handleLogout() {
if (confirm('ต้องการออกจากระบบหรือไม่?')) {
localStorage.removeItem('currentUser');
window.location.href = 'login.html';
}
}
</script>
<script src="app.js"></script>
</body>
</html>