Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 22 additions & 15 deletions docs/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,31 @@ template.innerHTML = `
width: 90px;
height: 20px;
}

header div.container {
max-width: 1200px;
margin: auto;
}
</style>

<header>
<div>
<a href="/">
<img src="/www/assets/wcc-logo.jpg" alt="WCC logo" class="logo"/>
</a>

<a href="https://github.com/ProjectEvergreen/wcc" class="social">
<img
src="https://img.shields.io/github/stars/ProjectEvergreen/wcc.svg?style=social&logo=github&label=github"
alt="WCC GitHub badge"
class="github-badge"
/>
</a>
</div>
<div class="container">
<div>
<a href="/">
<img src="/www/assets/wcc-logo.jpg" alt="WCC logo" class="logo"/>
</a>

<wcc-navigation></wcc-navigation>
<a href="https://github.com/ProjectEvergreen/wcc" class="social">
<img
src="https://img.shields.io/github/stars/ProjectEvergreen/wcc.svg?style=social&logo=github&label=github"
alt="WCC GitHub badge"
class="github-badge"
/>
</a>
</div>

<wcc-navigation></wcc-navigation>
</div>
</header>
`;

Expand All @@ -56,4 +63,4 @@ export {
Header
};

customElements.define('wcc-header', Header);
customElements.define('wcc-header', Header);
12 changes: 8 additions & 4 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ template.innerHTML = `
--accent: #367588;
}

body {
display: flex;
flex-direction: column;
}

main {
margin-bottom: 20px;
max-width: 1200px;
margin: 20px auto;
}

a:visited {
Expand All @@ -25,8 +31,6 @@ template.innerHTML = `
</main>

<wcc-footer></wcc-footer>

</main>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! 👀

`;

class Home extends HTMLElement {
Expand All @@ -39,4 +43,4 @@ class Home extends HTMLElement {
}
}

export default Home;
export default Home;