Skip to content

Instantly share code, notes, and snippets.

@mattdelacdev
Created May 31, 2020 18:15
Show Gist options
  • Select an option

  • Save mattdelacdev/7618cabc661a970529e097549c0f5212 to your computer and use it in GitHub Desktop.

Select an option

Save mattdelacdev/7618cabc661a970529e097549c0f5212 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
h1 {
text-align: center;
color: navy;
}
h2 {
text-align: center;
border: 1px solid navy;
padding: 20px;
border-radius: 5px;
}
img {
width: 100%;
border-radius: 10px;
}
p {
line-height: 1.5;
font-size: 13px;
}
button {
width: 100%;
background: navy;
color: white;
padding: 20px;
font-size: 20px;
border-radius: 40px;
border: none;
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}
footer {
text-align: center;
margin: 20px;
font-size: 12px;
}
</style>
</head>
<body>
<h1>
πŸ‡¬πŸ‡· Greece
</h1>
<h2>
Country in the Balkans
</h2>
<img
src="https://www.telegraph.co.uk/content/dam/news/2020/05/19/greece-GettyImages-1175210335_trans_NvBQzQNjv4BqOTom2IDArMR5JububTrAx7xofMA-wVKmzWS90ufl_vY.jpg?imwidth=1280"
alt=""
/>
<p>
Greece is a country in southeastern Europe with thousands of islands
throughout the Aegean and Ionian seas. Influential in ancient times, it's
often called the cradle of Western civilization. Athens, its capital,
retains landmarks including the 5th-century B.C. Acropolis citadel with
the Parthenon temple. Greece is also known for its beaches, from the black
sands of Santorini to the party resorts of Mykonos.
<br />
<br />
<a href="https://en.wikipedia.org/wiki/Greece">
Learn more on Wikipedia
</a>
</p>
<button>
Go to Greece
</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 as soon as we open our borders! 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