-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfo-pembeli.html
More file actions
78 lines (75 loc) · 2.09 KB
/
info-pembeli.html
File metadata and controls
78 lines (75 loc) · 2.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
font-family: "Arial", sans-serif;
background-color: rgb(253, 217, 126);
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
h1,
h4 {
color: #223994;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.card {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 16px;
text-align: center;
}
#mascott {
width: 50%;
height: 50%;
}
#result {
font-family: "Courier New", Courier, monospace;
font-weight: 2rem;
margin-top: 12px;
color: #7300ff;
}
.highlight {
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
sans-serif;
color: #ff007bd1;
font-weight: bold;
text-decoration: underline;
}
</style>
<title>Info Pembeli</title>
</head>
<body>
<div class="card">
<h1>~ Selamat Datang di Panda Tropical Cafe ~</h1>
<img
id="mascott"
src="https://img.freepik.com/premium-vector/panda-summer-sea-illustration_80802-1386.jpg"
alt="panda-tropical-mascott"
/>
<div id="result"></div>
<h4>
Cari minuman nyegerin mood + nongkrong pamerable buat nugas? Ya cuman disini
tempatnya!
</h3>
<script>
function infoPembeli(nama, produk) {
return "Terima kasih " + nama + " telah membeli produk " + produk;
}
var resultElement = document.getElementById("result");
var namaText = "Clara";
var produkText = "Sparkling Blue Mocktail";
resultElement.innerHTML = infoPembeli(
'<span class="highlight">' + namaText + "</span>",
'<span class="highlight">' + produkText + "</span>"
);
</script>
</div>
</body>
</html>