Change up the header
This commit is contained in:
parent
f5fa4ca853
commit
cd3a7efdaa
2 changed files with 38 additions and 10 deletions
|
@ -8,10 +8,10 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<div class="header__blurb">
|
<a class="header__blurb" href="/">
|
||||||
<a class="header__blurb__title" href="/">Robware</a>
|
<span class="header__blurb__title">Robware</span>
|
||||||
<small class="header__blurb__tagline">Software by Rob</small>
|
<small class="header__blurb__tagline">Software by Rob</small>
|
||||||
</div>
|
</a>
|
||||||
<div class="header__headshot"></div>
|
<div class="header__headshot"></div>
|
||||||
</header>
|
</header>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
|
@ -63,23 +63,44 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background: url(/images/header.jpg) no-repeat;
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
padding: 40px 30px;
|
padding: 40px 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: start;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
|
background-color: black;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
background: url(/images/header.jpg) no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
top: -2px;
|
||||||
|
bottom: -2px;
|
||||||
|
left: -2px;
|
||||||
|
right: -2px;
|
||||||
|
filter: blur(2px);
|
||||||
|
}
|
||||||
|
|
||||||
&__blurb {
|
&__blurb {
|
||||||
|
background-color: fade(white, 80%);
|
||||||
|
color: black;
|
||||||
|
padding: 30px;
|
||||||
|
width: 50%;
|
||||||
|
z-index: 0;
|
||||||
|
display: block;
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
display: block;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: black;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__tagline {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__headshot {
|
&__headshot {
|
||||||
|
@ -91,6 +112,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
border: 5px solid white;
|
border: 5px solid white;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
box-shadow: 0px 0px 5px 0px rgba(0,0,0,1);
|
box-shadow: 0px 0px 5px 0px rgba(0,0,0,1);
|
||||||
|
z-index: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,6 +236,12 @@ form {
|
||||||
}
|
}
|
||||||
|
|
||||||
.header{
|
.header{
|
||||||
|
padding: 20px 10px;
|
||||||
|
|
||||||
|
&__blurb {
|
||||||
|
padding: 20px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
&__headshot{
|
&__headshot{
|
||||||
width: 40vw;
|
width: 40vw;
|
||||||
height: 40vw;
|
height: 40vw;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue