Skip to content

Commit

Permalink
other hero banner proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
cookiemonster committed Dec 13, 2023
1 parent 7bd3fb3 commit a5395da
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
11 changes: 6 additions & 5 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{% include header.html %}

{% if page.title == "frontpage" %}
<!-- Banner -->
<section id="banner">
<div class="inner">
<img src="images/DIVDlogotransparent.png" alt="DIVD logo"><p>Launched: 1 October 2019</p>
<!-- Banner -->

<div class="inner" >
<div class="hero-banner grey-out">
<img src="images/DIVDlogotransparent.png" class="logo" alt="DIVD logo"/>
</div>
</section>
</div>

<section class="wrapper">
<div class="inner content">
Expand Down
31 changes: 30 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2877,4 +2877,33 @@ body.is-menu-visible #menu {
float: right;
margin: 0px 0px 15px 15px;
width: 25%;
}
}

.hero-banner {
background-image: url('/images/hero-banner.jpg');
background-size: cover;
background-position: center;
min-width: 900px;
min-height: 450px;
color: #fff;
text-align: center;
padding: 100px 0;
}

.grey-out {
filter: grayscale(100%);
transition: filter 0.3s ease;
}

.grey-out:hover {
filter: grayscale(0%);
}

.logo {
height: 136px;
padding-top: 0px;
margin-top: -100px;
margin-left: 5px;
float: left;
filter: grayscale(0%); !important;
}
Binary file added images/hero-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a5395da

Please sign in to comment.