Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SonyaMoisset/ab8be4a562071b17e1de to your computer and use it in GitHub Desktop.
Save SonyaMoisset/ab8be4a562071b17e1de to your computer and use it in GitHub Desktop.
Red Eye Photography | Codecademy | My solution
<html>
<head>
<link rel="stylesheet" href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
<link href='style.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="header">
<h1>Red Eye Photography</h1>
</div>
<div class="nav">
<div class="container">
<ul>
<li>Home</li>
<li>About</li>
<li>Gallery</li>
<li>Contact</li>
</ul>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p1.jpg">
</div>
<div class="col-md-4">
<img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p2.jpg">
</div>
<div class="col-md-4">
<img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p3.jpg">
</div>
</div>
<div class="row">
<div class="col-md-4">
<img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p4.jpg">
</div>
<div class="col-md-4">
<img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p5.jpg">
</div>
<div class="col-md-4">
<img class="img-responsive" src="https://s3.amazonaws.com/codecademy-content/projects/red-eye-photography/p6.jpg">
</div>
</div>
</div>
<div class="footer">
Photography by Matthew Wiebe
</div>
</body>
</html>
html, body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
}
/* Header */
.header {
background-color: #fff;
height: 140px;
text-align: center;
}
.header h1 {
color: #31363d;
font-size: 32px;
margin: 0;
position: relative;
top: 45px;
padding-bottom: 10px;
text-transform: uppercase;
}
/* Nav */
.nav ul {
height: 50px;
margin: 0 0 30px;
padding: 20px 0;
text-align: center;
}
.nav li {
color: #bbb;
display: inline;
text-transform: uppercase;
padding: 0 10px;
-webkit-transition:color 0.25s;
transition:color 0.25s;
}
.nav li:hover {
color: #31363d;
cursor: pointer;
-webkit-transition: color 1s;
transition: color 1s;
}
.row {
margin-top: 30px;
}
/* Footer */
.footer {
color: #31363d;
font-size: 10px;
height: 70px;
line-height: 70px;
padding-right: 40px;
text-align: right;
text-transform: uppercase;
margin-bottom: 100px;
}
@media (max-width: 500px) {
.row {
margin-top: 0;
}
.img-responsive {
margin-bottom: 20px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment