Skip to content

Instantly share code, notes, and snippets.

@matthieua
Created March 26, 2020 19:17
Show Gist options
  • Save matthieua/e20a7f57dc1a2e8cbb86a8ce674815b8 to your computer and use it in GitHub Desktop.
Save matthieua/e20a7f57dc1a2e8cbb86a8ce674815b8 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: 10px;
font-size: 14px;
border-radius: 10px;
}
img {
max-width: 80%;
display: block;
margin: 0 auto;
border-radius: 10px;
}
p {
font-size: 12px;
line-height: 1.5;
}
button {
background: blueviolet;
color: #fff;
padding: 10px 20px;
display: block;
margin: 20px auto;
border-radius: 20px;
border: none;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
button:hover {
opacity: 0.8;
cursor: pointer;
}
.container {
max-width: 800px;
margin: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>
Yoga
</h1>
<h2>
Physical exercise
</h2>
<img
src="https://img.webmd.com/dtmcms/live/webmd/consumer_assets/site_images/articles/health_tools/basic_yoga_poses_slideshow/getty_rm_photo_of_yoga_instructor_helping_student.jpg"
alt=""
/>
<p>
<strong>
Yoga is a systematic practice
</strong>
of physical exercise, breath control, relaxation, diet control, and
positive thinking and meditation aimed at developing harmony in the
body, mind, and environment.
<br />
<a href="https://en.wikipedia.org/wiki/Yoga" target="_blank">
Learn more on Wikipedia
</a>
<button>
Subscribe to our newsletter
</button>
</p>
</div>
<script>
function subscribe() {
let name = prompt("What is your name?");
let email = prompt("What is your email?");
alert(`Thank you ${name}, we'll be in touch! Meanwhile, exercise 🧘‍♀️`);
}
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