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> </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">

View file

@ -63,23 +63,44 @@ h1, h2, h3, h4, h5, h6 {
} }
.header { .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: url(/images/header.jpg) no-repeat;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
padding: 40px 30px; top: -2px;
display: flex; bottom: -2px;
align-items: start; left: -2px;
justify-content: flex-end; 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;