-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofil.html
98 lines (87 loc) · 3.67 KB
/
profil.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profil - Toko Online</title>
<link rel="icon" href="image/glamoras.jpg" type="image/jpeg"> <!-- Favicon -->
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/styleindex.css">
<script>
// Cek apakah user sudah login, kalau belum redirect ke login.html
if (!localStorage.getItem("isLoggedIn")) {
window.location.href = "login.html";
}
</script>
</head>
<body>
<header class="bg-primary text-white text-center py-4">
<h1>Profil Pengguna</h1>
<a href="index.html" class="btn btn-light mt-2">← Kembali ke Beranda</a>
</header>
<section class="container my-5">
<div class="row">
<!-- Informasi Profil -->
<div class="col-md-4">
<div class="card mb-4">
<div class="card-body text-center">
<h2 class="card-title">Informasi Akun</h2>
<img src="https://via.placeholder.com/150" alt="Foto Profil" class="img-fluid rounded-circle mb-3">
<p>Nama: <span id="userName">Fasya</span></p>
<p>Email: <span id="userEmail">[email protected]</span></p>
<p>Nomor Telepon: <span id="userPhone">0812-3456-7890</span></p>
<p>Alamat: <span id="userAddress">Jalan Contoh No. 123, Kota</span></p>
</div>
</div>
</div>
<!-- Edit Profil -->
<div class="col-md-4">
<div class="card mb-4">
<div class="card-body">
<h3 class="card-title">Edit Profil</h3>
<form id="editForm">
<div class="form-group">
<label for="name">Nama:</label>
<input type="text" class="form-control" id="name" value="Fasya" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" class="form-control" id="email" value="[email protected]" required>
</div>
<div class="form-group">
<label for="phone">Nomor Telepon:</label>
<input type="text" class="form-control" id="phone" value="0812-3456-7890" required>
</div>
<div class="form-group">
<label for="address">Alamat:</label>
<input type="text" class="form-control" id="address" value="Jalan Contoh No. 123, Kota" required>
</div>
<button type="submit" class="btn btn-primary btn-block">Simpan Perubahan</button>
</form>
</div>
</div>
</div>
<!-- Riwayat Pesanan -->
<div class="col-md-4">
<div class="card mb-4">
<div class="card-body">
<h3 class="card-title">Riwayat Pesanan</h3>
<ul class="list-group">
<li class="list-group-item">Pesanan 1 - Status: Dikirim</li>
<li class="list-group-item">Pesanan 2 - Status: Selesai</li>
<li class="list-group-item">Pesanan 3 - Status: Dalam Proses</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<footer class="bg-primary text-white text-center py-4">
<p>© 2024 Glamora. All rights reserved.</p>
</footer>
<!-- Bootstrap JS dan dependencies -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>