Skip to content

Instantly share code, notes, and snippets.

@matthieua
Created May 25, 2020 18:16
Show Gist options
  • Save matthieua/f7bd1282096a12638dc7f624da8e03c6 to your computer and use it in GitHub Desktop.
Save matthieua/f7bd1282096a12638dc7f624da8e03c6 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
body {
font-family: Georgia;
}
h1 {
color: blueviolet;
text-align: center;
}
h2 {
text-align: center;
border: 1px solid blueviolet;
padding: 10px;
border-radius: 4px;
}
img {
border-radius: 4px;
width: 100%;
}
p {
font-size: 12px;
line-height: 18px;
}
button {
background: blueviolet;
color: white;
margin: 20px auto;
display: block;
padding: 20px;
border-radius: 30px;
border: none;
font-size: 16px;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
width: 100%;
}
footer {
text-align: center;
font-size: 11px;
}
</style>
</head>
<body>
<h1>
Alaska
</h1>
<h2>
US State
</h2>
<img
src="https://www.royalcaribbean.com/content/dam/royal/ports-and-destinations/destinations/Alaska/glacier-view-on-alaska-cruise.jpg"
alt=""
/>
<p>
Alaska is a state located in the northwest extremity of the United States
West Coast, just across the Bering Strait from Asia.
<br />
<br />
<a href="https://en.wikipedia.org/wiki/Alaska">
Learn more Wikipedia
</a>
</p>
<button>
🥶Go to Alaska
</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! We can't wait to see you in Alaska! 🥶`
);
}
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