Skip to content

Instantly share code, notes, and snippets.

@matthieua
Created June 2, 2020 18:14
Show Gist options
  • Save matthieua/f42f41651e45016c0d39fa0fc7b9c4ae to your computer and use it in GitHub Desktop.
Save matthieua/f42f41651e45016c0d39fa0fc7b9c4ae to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
h1 {
text-align: center;
color: green;
}
h2 {
text-align: center;
border: 1px solid green;
padding: 20px;
border-radius: 10px;
}
img {
border-radius: 10px;
width: 100%;
}
p {
font-size: 13px;
line-height: 1.5;
}
button {
background: green;
width: 100%;
border-radius: 50px;
border: none;
color: white;
font-size: 20px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
}
footer {
text-align: center;
font-size: 12px;
}
</style>
</head>
<body>
<h1>
🇵🇹 Lisbon
</h1>
<h2>
Capital of Portugal
</h2>
<img
src="https://www.telegraph.co.uk/content/dam/Travel/Destinations/Europe/Portugal/Lisbon/lisbon-lead-image.jpg?imwidth=1400"
alt=""
/>
<p>
Lisbon is Portugal’s hilly, coastal capital city. From imposing São Jorge
Castle, the view encompasses the old city’s pastel-colored buildings,
Tagus Estuary and Ponte 25 de Abril suspension bridge. Nearby, the
National Azulejo Museum displays 5 centuries of decorative ceramic tiles.
Just outside Lisbon is a string of Atlantic beaches, from Cascais to
Estoril.
<br />
<br />
<a href="https://en.wikipedia.org/wiki/Lisbon">
Learn more on Wikipedia
</a>
</p>
<button>
Go to Lisbon
</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 the borders open! 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