🛠 Update header and footer

This commit is contained in:
Dennis Reimann
2020-11-23 11:11:22 +01:00
parent 72f3f01ede
commit 42fa4e941a
5 changed files with 58 additions and 39 deletions

View File

@@ -5,7 +5,7 @@
background-color: var(--color-card-bg); background-color: var(--color-card-bg);
transition-property: background-color; transition-property: background-color;
transition-duration: var(--transition-duration-fast); transition-duration: var(--transition-duration-fast);
padding: var(--space-m) 0; padding: var(--space-l) 0;
& .wrap { & .wrap {
@media (--M_and_up) { @media (--M_and_up) {
@@ -13,9 +13,29 @@
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
} }
}
& p { & p:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
}
& .social {
display: flex;
align-items: center;
justify-content: center;
& a {
display: inline-block;
& svg {
height: 24px;
width: 24px;
display: block;
}
}
& > * + * {
margin-left: var(--space-l);
}
}
} }

View File

@@ -45,6 +45,11 @@
align-items: center; align-items: center;
} }
& .brand {
display: block;
margin-bottom: var(--space-m);
}
& .logo { & .logo {
display: block; display: block;
width: 100%; width: 100%;
@@ -58,9 +63,11 @@
align-self: flex-start; align-self: flex-start;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding-right: 5.75%;
line-height: 1; line-height: 1;
@media (--up_to_M) {
margin-bottom: var(--space-s);
}
@media (--up_to_L) { @media (--up_to_L) {
margin-top: var(--space-m); margin-top: var(--space-m);
font-size: var(--font-size-xl); font-size: var(--font-size-xl);
@@ -75,40 +82,37 @@
align-items: center; align-items: center;
& a { & a {
margin-right: var(--space-l);
text-transform: uppercase; text-transform: uppercase;
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
cursor: pointer; cursor: pointer;
line-height: 0;
&.current { &.current {
color: var(--color-accent); color: var(--color-accent);
} }
} }
& > a + a {
margin-left: var(--space-l);
}
} }
& .more {
display: flex;
align-items: center;
margin-left: auto;
& a,
& button{ & button{
display: inline-block; display: inline-block;
position: relative;
top: 2px;
@media (--up_to_S) {
visibility: hidden;
}
& svg { & svg {
height: .85em; height: 4.5vw;
width: .85em; width: 4.5vw;
min-height: 24px;
min-width: 24px;
max-height: 42px;
max-width: 42px;
display: block; display: block;
} }
} }
& > * + * {
margin-left: var(--space-l);
}
}
} }
} }

View File

@@ -14,7 +14,7 @@
padding-top: calc(var(--logo-height) + var(--space-xxl) * 1.525); padding-top: calc(var(--logo-height) + var(--space-xxl) * 1.525);
} }
@media (--M_to_L) { @media (--M_to_L) {
padding-top: calc(var(--logo-height) + var(--space-xxl) * 1.675); padding-top: calc(var(--logo-height) + var(--space-xxl) * 1.825);
} }
@media (--L_and_up) { @media (--L_and_up) {
padding-top: var(--space-l); padding-top: var(--space-l);

View File

@@ -1,3 +1,4 @@
@custom-media --up_to_S screen and (max-width: 360px);
@custom-media --up_to_M screen and (max-width: 599px); @custom-media --up_to_M screen and (max-width: 599px);
@custom-media --up_to_L screen and (max-width: 839px); @custom-media --up_to_L screen and (max-width: 839px);
@custom-media --M_to_L screen and (min-width: 600px) and (max-width: 839px); @custom-media --M_to_L screen and (min-width: 600px) and (max-width: 839px);

View File

@@ -55,13 +55,6 @@ html(lang="en")
nav nav
a.navItem(href="/podcast/" class=(navCurrent === 'podcast' && 'current')) Podcast a.navItem(href="/podcast/" class=(navCurrent === 'podcast' && 'current')) Podcast
a.navItem(href="/team/" class=(navCurrent === 'team' && 'current')) Team a.navItem(href="/team/" class=(navCurrent === 'team' && 'current')) Team
.more
a.twitter(href=site.meta.twitterUrl target="_blank" title="Twitter")
+sprite("twitter")
a.telegram(href=site.meta.telegramUrl target="_blank" title="Telegram")
+sprite("telegram")
a.telegram(href=site.meta.sphinxUrl target="_blank" title="Sphinx")
+sprite("sphinx")
button(type="button").theme button(type="button").theme
+sprite("theme") +sprite("theme")
@@ -72,12 +65,6 @@ html(lang="en")
footer#footer.footer footer#footer.footer
.wrap .wrap
p
= "Folge uns auf "
a(href=site.meta.twitterUrl target="_blank") Twitter
= " und "
a(href=site.meta.telegramUrl target="_blank") komm in die Gruppe
|!
if site.block if site.block
p p
| Aktualisiert um | Aktualisiert um
@@ -85,6 +72,13 @@ html(lang="en")
a(href=`https://www.blockstream.info/block-height/${site.block}`) a(href=`https://www.blockstream.info/block-height/${site.block}`)
time(datetime=site.date)= site.block time(datetime=site.date)= site.block
|. |.
p.social
a.twitter(href=site.meta.twitterUrl target="_blank" title="Twitter")
+sprite("twitter")
a.telegram(href=site.meta.telegramUrl target="_blank" title="Telegram")
+sprite("telegram")
a.telegram(href=site.meta.sphinxUrl target="_blank" title="Sphinx")
+sprite("sphinx")
p p
| Made with 💛 by | Made with 💛 by
= " " = " "