Skip to content

Instantly share code, notes, and snippets.

@Nempickaxe
Created January 15, 2024 14:27
Show Gist options
  • Save Nempickaxe/d755ca3e07dff50c9240e4ca157ef289 to your computer and use it in GitHub Desktop.
Save Nempickaxe/d755ca3e07dff50c9240e4ca157ef289 to your computer and use it in GitHub Desktop.
basic HTML, CSS, JS example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Magical Recipes</title>
<style>
body {
background-color: #f5e3f8; /* Magical pastel purple */
font-family: 'Cursive Magic', fantasy;
}
h1 {
color: #6a0572; /* Deep purple */
}
</style>
</head>
<body>
<h1>Enchanted Chocolate Cake</h1>
<p>Ingredients:</p>
<ul>
<li>Magical Cocoa Powder</li>
<li>Elf-made Flour</li>
<!-- More ingredients -->
</ul>
<p>Instructions:</p>
<ol>
<li>Combine ingredients...</li>
<li>Bake under the moonlight...</li>
<!-- More steps -->
</ol>
<!-- Adding a magical spell icon for JavaScript interaction -->
<div id="spellIcon" style="cursor: pointer;">🔮</div>
<script>
// JavaScript to handle a click event on the spell icon
let spellIcon = document.getElementById("spellIcon");
spellIcon.addEventListener("click", function() {
alert("✨ Abra Kadabra! Secrets revealed: Add a pinch of stardust for an extra magical taste!");
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment