Skip to content

Instantly share code, notes, and snippets.

@matthieua
Created May 14, 2020 18:19
Show Gist options
  • Save matthieua/e873c62d8b3b22dbe3560e8639d87399 to your computer and use it in GitHub Desktop.
Save matthieua/e873c62d8b3b22dbe3560e8639d87399 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
h1 {
text-align: center;
color: blueviolet;
}
h2 {
text-align: center;
border: 1px solid blueviolet;
padding: 20px 30px;
border-radius: 10px;
}
img {
max-width: 100%;
border-radius: 10px;
}
p {
line-height: 1.5;
font-size: 13px;
}
button {
background: blueviolet;
color: white;
display: block;
margin: 20px auto;
padding: 20px 30px;
border-radius: 30px;
font-size: 20px;
border: none;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
button:hover {
opacity: 80%;
cursor: pointer;
}
footer {
text-align: center;
font-size: 12px;
}
</style>
</head>
<body>
<h1>
πŸ§˜β€β™€οΈ Yoga
</h1>
<h2>
Physical Exercise
</h2>
<img
src="https://static01.nyt.com/images/2016/12/02/well/move/yoga_body_images-slide-NMNW/yoga_body_images-slide-NMNW-blog480.jpg"
alt=""
/>
<p>
Yoga is a group of physical, mental, and spiritual practices or
disciplines which originated in ancient India.
</p>
<a href="https://en.wikipedia.org/wiki/Yoga">
Learn more on Wikipedia
</a>
<button>
Subscribe to our Yoga newsletter
</button>
<footer>
Coded by πŸ‘©β€πŸ’»
<a href="https://www.shecodes.io">
SheCodes
</a>
</footer>
<script>
function subscribe() {
let name = prompt("What is your name?");
let email = prompt("What is your email?");
alert(
`Thanks ${name}, we'll be in touch! Meanwhile, wash your keyboard! πŸ§˜β€β™€οΈ`
);
}
let button = document.querySelector("button");
button.addEventListener("click", subscribe);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment