Merge branch 'gs/online-only-notice' into 'master'
Suggestion: Add online-only notice. See merge request patek-devs/patek.cz!39
This commit is contained in:
commit
d914a323f1
@ -12,6 +12,13 @@
|
|||||||
"languageName": "English"
|
"languageName": "English"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"params": {
|
||||||
|
"onlineOnly": {
|
||||||
|
"active": true,
|
||||||
|
"link": "/blog/covidbreak-part2",
|
||||||
|
"displayText":"Online mode"
|
||||||
|
}
|
||||||
|
},
|
||||||
"taxonomies": {
|
"taxonomies": {
|
||||||
"tag": "tags",
|
"tag": "tags",
|
||||||
"project": "projects",
|
"project": "projects",
|
||||||
|
@ -314,3 +314,18 @@ patek-logo {
|
|||||||
color: #737373 !important;
|
color: #737373 !important;
|
||||||
}
|
}
|
||||||
// /Custom styles
|
// /Custom styles
|
||||||
|
|
||||||
|
.patek-logo-top {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.patek-logo-top .online-notice {
|
||||||
|
white-space: nowrap;
|
||||||
|
position: absolute;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 2rem;
|
||||||
|
padding: 0px 5px;
|
||||||
|
border-radius: 3px;
|
||||||
|
background-color: red;
|
||||||
|
font-family: 'Fira Code', monospace;
|
||||||
|
transform: rotate(-27deg) translate(-190px, -50px);
|
||||||
|
}
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
<div id="landing">
|
<div id="landing">
|
||||||
<div class="patek-logo-top">
|
<div class="patek-logo-top">
|
||||||
<patek-logo>Pátek</patek-logo>
|
<patek-logo>Pátek</patek-logo>
|
||||||
|
{{ if .Site.Params.onlineOnly.active }}
|
||||||
|
<div class="online-notice">
|
||||||
|
<a href="{{ .Site.Params.onlineOnly.link }}">{{ .Site.Params.onlineOnly.displayText }}</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="intro container">
|
<div class="intro container">
|
||||||
<section class="section">
|
<section class="section">
|
||||||
|
Loading…
Reference in New Issue
Block a user