61 lines
968 B
Vue
61 lines
968 B
Vue
<template>
|
|
<div class="layout">
|
|
<header class="header">
|
|
<strong>
|
|
<g-link to="/">{{ $static.metadata.siteName }}</g-link>
|
|
</strong>
|
|
</header>
|
|
<slot/>
|
|
</div>
|
|
</template>
|
|
|
|
<static-query>
|
|
query {
|
|
metadata {
|
|
siteName
|
|
}
|
|
}
|
|
</static-query>
|
|
|
|
<style lang="scss">
|
|
body {
|
|
font-family: 'Inter', -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
|
|
margin:0;
|
|
padding:0;
|
|
line-height: 1.5;
|
|
background-color: $colorLightGrey;
|
|
}
|
|
|
|
.layout {
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
height: 80px;
|
|
}
|
|
|
|
.nav__link {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
*:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.is-active {
|
|
background: black;
|
|
color: white;
|
|
}
|
|
|
|
// :not(pre) > code[class*="language-"], pre[class*="language-"] {
|
|
// background-color: $colorBlack;
|
|
// }
|
|
</style>
|