Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created June 2, 2017 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/89e60cd9b2ca6d040e3b18521251d286 to your computer and use it in GitHub Desktop.
Save codecademydev/89e60cd9b2ca6d040e3b18521251d286 to your computer and use it in GitHub Desktop.
Codecademy export
<!DOCTYPE html>
<html>
<head>
<title>Bana's Travel Blog</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Merriweather:300,400" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="reset.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="banner">
<h1>Bana's Travel Blog</h1>
</div>
<div id="blog">
<div class="post">
<h2>Saturday Market</h2>
<h3>January 7th</h3>
<strong class="opening-line">On Saturday, Dilara took us to the market.</strong>
<p>It is a wonderfully eclectic mix of goods from all over the world - delightfully random. I dusted off my bargaining skills to buy a metal bracelet with camels on it, and Maggie bought a lapis lazuli necklace from Afghanistan. In the evening, we walked along Gulf Road towards the marina, passed through Marina Mall, and ate dinner at a wonderful little cafe that we will definitely be frequenting. Ive developed a slight obsession with lentil soul... maybe its because I miss Focos Indian lentil chili.</p>
<div class="image-container">
<img src="market.jpg" />
</div>
<p>We took a catamaran from the marina to Failaka Island, where we got to explore a bit, relax on the beach, and go swimming. The water in the Gulf is incredibly still; I havent seen a wave yet, and when you look out on the horizon it seems to go forever. Something about the color of the water and maybe the dust in the air make it seem hazier than the Atlantic coast. I have some cool pictures of the city skyline as we returned on the boat.</p>
<p>That night, I hung out in a cafe with two friends, drinking traditional lemonade with mint. Its delicious; maybe I should send in a flavor suggestion to Morano Gelato? Then we drove around the city for a while. Cruising around is a really valid way to spend the time when a tank of gas costs about seven bucks. </p>
</div>
<div class="images">
<div class="image-container">
<img src="camel.jpg" />
</div><!--
Adding comment to ensure no whitespace between inline-block div elements from HTML file.
--><div class="image-container">
<img src="map.png" />
</div>
</div>
</div>
<footer>
<span>&copy; Banas Travel Blog</span>
</footer>
</body>
</html>
/* Universal Styles */
html{
font-size: 16px;
}
body {
background-color: white;
}
.image-container {
overflow:hidden;
max-width:100%;
height:auto;
display: block;
}
.image-container img {
}
p {
min-width:200px;
min-height:200px;
}
/* Banner Section */
#banner {
background-image: url('camel-background.png');
background-position: center;
height:46rem;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
#banner h1 {
font-family: 'Roboto', sans-serif;
font-weight: 300;
color: white;
font-size: 3.75rem;
}
/* Blog Post */
#blog {
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
width:86%;
}
#blog .post {
margin-bottom:7.5%;
margin-top:12.5%;
width:52%;
display: flex;
flex-direction: column;
align-items: center;
font-family: 'Merriweather', serif;
font-weight: 300;
font-size: 1rem;
text-align: center;
line-height: 1.8;
color: #444444;
}
.post h2 {
font-size:1.875rem;
}
.post h3 {
font-size:1.125rem;
color: #999999;
}
.post .opening-line {
margin-top: 4.1875rem;
margin-bottom: 1.5rem;
color: black;
font-weight: bold;
}
.post .image-container {
width:100%;
}
/* Blog Images */
.images {
margin-bottom:20%;
}
.images .image-container {
display: inline-block;
width:50%;
}
/* Footer */
footer {
padding: 4rem 0;
border-top: 1px solid #999999;
font-family: 'Roboto', sans-serif;
font-size:1.125rem;
color: #999999;
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment