Change up the header

This commit is contained in:
Robert Marshall 2020-03-15 12:43:23 +00:00
parent f5fa4ca853
commit cd3a7efdaa
2 changed files with 38 additions and 10 deletions

View file

@ -8,10 +8,10 @@
</head>
<body>
<header class="header">
<div class="header__blurb">
<a class="header__blurb__title" href="/">Robware</a>
<a class="header__blurb" href="/">
<span class="header__blurb__title">Robware</span>
<small class="header__blurb__tagline">Software by Rob</small>
</div>
</a>
<div class="header__headshot"></div>
</header>
<div id="content">

View file

@ -63,23 +63,44 @@ h1, h2, h3, h4, h5, h6 {
}
.header {
padding: 40px 30px;
display: flex;
align-items: center;
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;
padding: 40px 30px;
display: flex;
align-items: start;
justify-content: flex-end;
top: -2px;
bottom: -2px;
left: -2px;
right: -2px;
filter: blur(2px);
}
&__blurb {
background-color: fade(white, 80%);
color: black;
padding: 30px;
width: 50%;
z-index: 0;
display: block;
&__title {
font-size: 32px;
display: block;
text-decoration: none;
color: black;
font-weight: bold;
}
&__tagline {
display: block;
}
}
&__headshot {
@ -91,6 +112,7 @@ h1, h2, h3, h4, h5, h6 {
border: 5px solid white;
border-radius: 50%;
box-shadow: 0px 0px 5px 0px rgba(0,0,0,1);
z-index: 0;
}
}
@ -214,6 +236,12 @@ form {
}
.header{
padding: 20px 10px;
&__blurb {
padding: 20px 10px;
}
&__headshot{
width: 40vw;
height: 40vw;