Skip to content
Snippets Groups Projects
Commit e1608702 authored by Silas Meister's avatar Silas Meister
Browse files

Finish banner

parent f9c1f557
Branches
No related tags found
No related merge requests found
img/camera.png

1.76 KiB

...@@ -46,9 +46,17 @@ ...@@ -46,9 +46,17 @@
<section class="main"> <section class="main">
<div class="content content-large"> <div class="content content-large">
<a href="#"> <div>
<img class="slide-img" src="img/astronaut_landing.jpg" /> <a class="astronaut-landing" href="#">
</a> <div class="news-headline">
<h3>Space Station</h3>
<h2>Expedition 48 Crew Lands Safely on Earth</h2>
</div>
<div class="camera-triangle"></div>
<img class="camera-img" src="img/camera.png" />
</a>
</div>
</div> </div>
<div class="content content-small"> <div class="content content-small">
<div> <div>
......
...@@ -174,10 +174,6 @@ nav ul li a { ...@@ -174,10 +174,6 @@ nav ul li a {
.content-small { .content-small {
position: relative; position: relative;
display: block;
}
.content-small {
flex: 0 0 25%; flex: 0 0 25%;
} }
...@@ -188,6 +184,7 @@ nav ul li a { ...@@ -188,6 +184,7 @@ nav ul li a {
} }
.content-medium { .content-medium {
position: relative;
flex: 0 0 50%; flex: 0 0 50%;
} }
...@@ -195,9 +192,11 @@ nav ul li a { ...@@ -195,9 +192,11 @@ nav ul li a {
content: ""; content: "";
display: block; display: block;
padding-bottom: 50%; padding-bottom: 50%;
background-color: #555555;
} }
.content-large { .content-large {
position: relative;
flex: 0 0 100%; flex: 0 0 100%;
} }
...@@ -205,7 +204,6 @@ nav ul li a { ...@@ -205,7 +204,6 @@ nav ul li a {
content: ""; content: "";
display: block; display: block;
padding-bottom: 25%; padding-bottom: 25%;
background-color: yellow;
} }
.slide-img { .slide-img {
...@@ -222,13 +220,77 @@ nav ul li a { ...@@ -222,13 +220,77 @@ nav ul li a {
display: block; display: block;
} }
.content-small > div > a { .content-medium > div {
padding: 0.5em;
position: absolute;
width: 100%;
height: 100%;
display: block;
}
.content-large > div {
padding: 0.5em;
position: absolute;
width: 100%;
height: 100%;
display: block;
}
.content-small > div > a, .content-medium > div > a, .content-large > div > a {
display: block; display: block;
position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
text-decoration: none; text-decoration: none;
} }
.astronaut-landing {
background-image: url('img/astronaut_landing.jpg');
background-size: cover;
background-repeat: no-repeat;
}
.news-headline {
position: absolute;
bottom: 1em;
left: 1em;
}
.news-headline > h3 {
display: inline-block;
background-color: #39719e;
opacity: 0.85;
padding: 0.5em;
font-size: 1.2em;
margin: 0;
}
.news-headline > h2 {
background-color: #eeeeee;
opacity: 0.85;
padding: 0.5em;
color: #111111;
font-size: 1.3em;
margin: 0;
}
.camera-triangle {
position: absolute;
top: 0;
right: 0;
border-left: 2em solid transparent;
border-top: 2em solid #111111;
}
.camera-img {
position: absolute;
top: 0;
right: 0;
object-fit: cover;
width: 1em;
height: 1em;
}
.nasa-events-container { .nasa-events-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment