-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinalproject.html
106 lines (95 loc) · 3.42 KB
/
finalproject.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
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Greek Yogurt 🥛</title>
<style>
body {
font-family: 'Arial', sans-serif;
background: url('https://images.unsplash.com/photo-1530259152377-3a014e1092e0?q=80&w=2069&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover;
color: #fff;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
background-blend-mode: overlay;
}
h1 {
font-size: 36px;
font-weight: bold;
margin-bottom: 10px;
color: #ffcccb;
}
h2 {
font-size: 24px;
font-weight: normal;
margin-bottom: 20px;
color: #ffeeee;
}
p {
font-size: 18px;
line-height: 1.5;
margin-bottom: 30px;
color: #ffeeee;
}
img {
width: 100%;
max-width: 400px;
border-radius: 10px;
margin-bottom: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
a {
text-decoration: none;
color: #ffffff;
font-weight: bold;
transition: color 0.3s ease;
}
a:hover {
color: #ffcccb;
}
button {
background-color: #4CAF50;
color: #fff;
padding: 15px 30px;
font-size: 18px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h1>I Love Greek Yogurt</h1>
<h2>Strained to Perfection</h2>
<img src="https://images.unsplash.com/photo-1530259152377-3a014e1092e0?q=80&w=2069&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Greek Yogurt" />
<p>Strained yogurt, Greek yogurt, yogurt cheese, or sack yoghurt is yogurt that has been strained to remove most of its whey, resulting in a thicker consistency than unstrained yogurt, while preserving yogurt's distinctive sour taste.</p>
<a href="https://en.wikipedia.org/wiki/Greek_yogurt" target="_blank">Learn more about Greek Yogurt</a>
<br>
<button onclick="showMessage()">Buy Greek Yogurt</button>
<script>
function showMessage() {
let wantToBuy = confirm("Would you like to buy some delicious Greek Yogurt?");
if (wantToBuy) {
let quantity = prompt("How many packs would you like?");
if (quantity) {
alert(`Great choice! You've added ${quantity} packs to your cart. Enjoy your Greek Yogurt!`);
} else {
alert("No problem! Feel free to explore more about Greek Yogurt.");
}
} else {
alert("That's okay! Greek Yogurt will be here whenever you're ready.");
}
}
</script>
</body>
</html>