Skip to content

Commit

Permalink
Merge pull request #96 from ThinkDeepTech/hm/nav-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenmcp authored Sep 17, 2021
2 parents 98af0ab + bd764b9 commit dc2189d
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 423 deletions.
13 changes: 7 additions & 6 deletions packages/deep-navbar/deep-navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ export class DeepNavbar extends LitElement {
static get styles() {
return [
css`
:host {
height: 150px;
}
nav {
display: grid;
grid-gap: 0.6rem;
grid-template-columns: repeat(12, 1fr);
grid-template-columns: repeat(14, 1fr);
align-items: center;
height: inherit;
Expand Down Expand Up @@ -98,11 +101,9 @@ export class DeepNavbar extends LitElement {
*/
_menuItem(route, index) {
return route
? html` <!-- NOTE: The 12 in this comes from the fact that the nav grid is defined having 12 fractional units.
Changing that will impact this positioning. -->
<div style="grid-column-start: ${12 - index};">
<a href="${route.path}"> ${route.name} </a>
</div>`
? html` <div style="grid-column-start: ${14 - index};">
<a href="${route.path}"> ${route.name} </a>
</div>`
: html``;
}
}
Expand Down
31 changes: 29 additions & 2 deletions packages/deep-template-consultancy/deep-consultancy-page-home.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,38 @@
import { html, css, LitElement } from 'lit-element';

export class DeepConsultancyPageHome extends LitElement {
static get properties() {
return {
slogan: { type: String },
};
}

constructor() {
super();

this.slogan = '';
}

static get styles() {
return css``;
return css`
.banner {
background: url('img/nordwood-themes-unsplash.jpg') no-repeat center center fixed;
background-size: cover;
height: 600px;
width: 100%;
}
.slogan {
position: absolute;
top: 50vw;
left 50vw;
}
`;
}
render() {
return html``;
return html`
<div class="banner"></div>
${this.slogan.length > 0 ? html`<h3 class="slogan">${this.slogan}</h3>` : html``}
`;
}
}

Expand Down
49 changes: 0 additions & 49 deletions packages/deep-template-consultancy/img/electrum-dark-icon.svg

This file was deleted.

Loading

0 comments on commit dc2189d

Please sign in to comment.