Skip to content

Instantly share code, notes, and snippets.

@matthieua
Created June 9, 2020 18:20
Show Gist options
  • Save matthieua/dff959ad12879ebb347375fe80dfba1c to your computer and use it in GitHub Desktop.
Save matthieua/dff959ad12879ebb347375fe80dfba1c to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
h1 {
text-align: center;
color: red;
}
h2 {
text-align: center;
border: 1px solid red;
padding: 20px;
border-radius: 20px;
}
img {
border-radius: 20px;
width: 100%;
}
p {
font-size: 14px;
line-height: 20px;
}
button {
width: 100%;
border: none;
background: red;
color: white;
font-size: 20px;
padding: 15px;
border-radius: 30px;
margin: 20px 0;
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}
footer {
text-align: center;
font-size: 12px;
}
</style>
</head>
<body>
<h1>
๐Ÿ‡ฎ๐Ÿ‡ฉ Bali
</h1>
<h2>
Bali is a province of Indonesia
</h2>
<img
src="https://www.costacruzeiros.com/content/dam/costa/costa-magazine/articles-magazine/travel/bali-travel/bali_d.jpg.image.1296.974.high.jpg"
alt=""
/>
<p>
Bali is a province of Indonesia and the westernmost of the Lesser Sunda
Islands. Located east of Java and west of Lombok, the province includes
the island of ...
<br />
<br />
<a href="https://en.wikipedia.org/wiki/Bali">
Learn more on Wikipedia
</a>
</p>
<button>
๐Ÿ Go to Bali
</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 you 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