diff --git a/mai-birthday-2021/audio.mp3 b/mai-birthday-2021/audio.mp3 new file mode 100644 index 0000000..72cd364 Binary files /dev/null and b/mai-birthday-2021/audio.mp3 differ diff --git a/mai-birthday-2021/function.js b/mai-birthday-2021/function.js new file mode 100644 index 0000000..8ba85aa --- /dev/null +++ b/mai-birthday-2021/function.js @@ -0,0 +1,5 @@ +alert("Chạm vào bánh kem 🎂 và tận hưởng bữa tiệc nào!!! 🎶🎉🎊"); +window.addEventListener("click", function () { + var audio = document.getElementById("HBD"); + audio.play(); +}); diff --git a/mai-birthday-2021/image.gif b/mai-birthday-2021/image.gif new file mode 100644 index 0000000..e76d1eb Binary files /dev/null and b/mai-birthday-2021/image.gif differ diff --git a/mai-birthday-2021/index.html b/mai-birthday-2021/index.html new file mode 100644 index 0000000..e60876b --- /dev/null +++ b/mai-birthday-2021/index.html @@ -0,0 +1,52 @@ + + + + Happy Birthday Trúc Mai + + + + + + + +
Happy Birthday Trúc Mai
+
+
+
+
+

+ Happy Birthday
+ Mama +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Chúc cho mama của Vy luôn luôn vui vẻ, gặp nhiều điều may, tốt nghiệp đúng + hạn^^ +
+ + + + + diff --git a/mai-birthday-2021/style.css b/mai-birthday-2021/style.css new file mode 100644 index 0000000..1652b0f --- /dev/null +++ b/mai-birthday-2021/style.css @@ -0,0 +1,224 @@ +body { + background-image: url("image.gif"); +} + +.wish { + margin: 0; + padding: 0; + position: absolute; + top: 4%; + width: 100%; + text-align: center; + font-size: 3em; + color: red; + letter-spacing: 0.1em; + font-family: "Pacifico", cursive; + background: -webkit-linear-gradient(#ffff00, #ff1493); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + -webkit-animation: hue 3s infinite ease-in-out; +} + +@-webkit-keyframes hue { + 0% { + -webkit-filter: hue-rotate(0deg); + transform: scale(1) rotate(0deg); + } + + 50% { + -webkit-filter: hue-rotate(360deg); + transform: scale(1.2) rotate(5deg); + } +} + +.cake { + position: absolute; + width: 250px; + height: 200px; + top: 50%; + left: 50%; + margin-top: -70px; + margin-left: -125px; +} + +.plate { + position: absolute; + width: 290px; + height: 130px; + bottom: -10px; + left: -15px; + background-color: #ccc; + border-radius: 25%; + box-shadow: 0 5px 0 0 #000; +} + +.cake > * { + position: absolute; +} + +.layer { + position: absolute; + display: block; + width: 250px; + height: 100px; + border-radius: 25%; + background-color: #2a0a0a; + border: 3px solid #fff; + box-shadow: 0 15px 0 0 #2a0a0a, 0 30px 0 0 #2a0a0a, 0 33px 0 0 #fff, + 0 45px 0 0 #2a0a0a, 0 60px 0 0 #2a0a0a, 0 63px 0 0 #fff, 0 75px 0 0 #2a0a0a, + 0 90px 0 0 #2a0a0a; +} + +.icing { + top: 3px; + left: 3px; + background-color: #fff; + border: 5px dotted #2a0a0a; + width: 240px; + height: 90px; + border-radius: 25%; +} + +.name { + margin: 0; + padding: 0; + position: absolute; + top: 10%; + width: 100%; + text-align: center; + font-size: 1em; + color: #2a0a0a; + font-family: "Pacifico", cursive; +} + +.candle1 { + z-index: 10; + width: 10px; + height: 50px; + background-color: #fe2e2e; + border-radius: 4px; + top: -25px; + left: 50%; + margin-left: -8px; +} + +.flame1 { + border-bottom-left-radius: 45% 35%; + border-bottom-right-radius: 45% 35%; + box-shadow: 0 -15px 2px 2px #ffc205; + background-color: yellow; + border-radius: 50%; + height: 30px; + width: 5px; + top: -30px; + left: 30%; + position: absolute; +} + +.candle2 { + z-index: 10; + width: 10px; + height: 50px; + background-color: #fe2e2e; + border-radius: 4px; + top: -25px; + left: 80%; + margin-left: -8px; +} + +.flame2 { + border-bottom-left-radius: 45% 35%; + border-bottom-right-radius: 45% 35%; + box-shadow: 0 -15px 2px 2px #ffc205; + background-color: yellow; + border-radius: 50%; + height: 30px; + width: 5px; + top: -30px; + left: 30%; + position: absolute; +} + +.candle3 { + z-index: 10; + width: 10px; + height: 50px; + background-color: #fe2e2e; + border-radius: 4px; + top: -25px; + left: 20%; + margin-left: -8px; +} + +.flame3 { + border-bottom-left-radius: 45% 35%; + border-bottom-right-radius: 45% 35%; + box-shadow: 0 -15px 2px 2px #ffc205; + background-color: yellow; + border-radius: 50%; + height: 30px; + width: 5px; + top: -30px; + left: 30%; + position: absolute; +} + +.candle4 { + z-index: 10; + width: 10px; + height: 50px; + background-color: #fe2e2e; + border-radius: 4px; + top: 15px; + left: 15%; + margin-left: -8px; +} + +.flame4 { + border-bottom-left-radius: 45% 35%; + border-bottom-right-radius: 45% 35%; + box-shadow: 0 -15px 2px 2px #ffc205; + background-color: yellow; + border-radius: 50%; + height: 30px; + width: 5px; + top: -30px; + left: 30%; + position: absolute; +} + +.candle5 { + z-index: 10; + width: 10px; + height: 50px; + background-color: #fe2e2e; + border-radius: 4px; + top: 15px; + left: 85%; + margin-left: -8px; +} + +.flame5 { + border-bottom-left-radius: 45% 35%; + border-bottom-right-radius: 45% 35%; + box-shadow: 0 -15px 2px 2px #ffc205; + background-color: yellow; + border-radius: 50%; + height: 30px; + width: 5px; + top: -30px; + left: 30%; + position: absolute; +} + +.text { + margin: 0; + padding: 0; + position: absolute; + top: 80%; + width: 100%; + text-align: center; + font-size: 2em; + color: white; + font-family: "Pacifico", cursive; +}