mirror of
https://github.com/wassname/template.git
synced 2026-07-11 21:44:02 +08:00
80 lines
1.4 KiB
JavaScript
80 lines
1.4 KiB
JavaScript
import logo from '../assets/distill-logo.svg';
|
|
|
|
export const headerTemplate = `
|
|
<style>
|
|
distill-header {
|
|
position: relative;
|
|
height: 60px;
|
|
background-color: hsl(200, 60%, 15%);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
z-index: 2;
|
|
color: rgba(0, 0, 0, 0.8);
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
|
|
}
|
|
distill-header .content {
|
|
height: 70px;
|
|
grid-column: page;
|
|
}
|
|
distill-header a {
|
|
font-size: 16px;
|
|
height: 60px;
|
|
line-height: 60px;
|
|
text-decoration: none;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
padding: 22px 0;
|
|
}
|
|
distill-header a:hover {
|
|
color: rgba(255, 255, 255, 1);
|
|
}
|
|
distill-header svg {
|
|
width: 24px;
|
|
position: relative;
|
|
top: 4px;
|
|
margin-right: 2px;
|
|
}
|
|
@media(min-width: 1080px) {
|
|
distill-header {
|
|
height: 70px;
|
|
}
|
|
distill-header a {
|
|
height: 70px;
|
|
line-height: 70px;
|
|
padding: 28px 0;
|
|
}
|
|
distill-header .logo {
|
|
}
|
|
}
|
|
distill-header svg path {
|
|
fill: none;
|
|
stroke: rgba(255, 255, 255, 0.8);
|
|
stroke-width: 3px;
|
|
}
|
|
distill-header .logo {
|
|
font-size: 17px;
|
|
font-weight: 200;
|
|
}
|
|
distill-header .nav {
|
|
float: right;
|
|
font-weight: 300;
|
|
}
|
|
distill-header .nav a {
|
|
font-size: 12px;
|
|
margin-left: 24px;
|
|
text-transform: uppercase;
|
|
}
|
|
</style>
|
|
<div class="content">
|
|
<a href="/" class="logo">
|
|
${logo}
|
|
Distill
|
|
</a>
|
|
<nav class="nav">
|
|
<a href="/about/">About</a>
|
|
<a href="/prize/">Prize</a>
|
|
<a href="/journal/">Submit</a>
|
|
</nav>
|
|
</div>
|
|
`;
|