68
assets/sass/footer.scss
Normal file
68
assets/sass/footer.scss
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
.footer {
|
||||||
|
padding: 4rem 2rem;
|
||||||
|
|
||||||
|
.footer-container {
|
||||||
|
max-width: $width-content;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
font-size: 0.85rem;
|
||||||
|
|
||||||
|
color: color-mix(in srgb, var(--text) 30%, var(--background));
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: var(--text-900);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-nav {
|
||||||
|
.middot {
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
|
||||||
|
li {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: $width-mobile) {
|
||||||
|
.footer {
|
||||||
|
padding: 2rem 1rem;
|
||||||
|
|
||||||
|
.footer-container {
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 1rem;
|
||||||
|
|
||||||
|
.footer-nav {
|
||||||
|
.middot {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -8,13 +8,9 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.site-title {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
@@ -23,6 +19,9 @@
|
|||||||
a:hover {
|
a:hover {
|
||||||
color: var(--text-900);
|
color: var(--text-900);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-title {
|
||||||
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
@@ -33,15 +32,8 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
li a {
|
li {
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
text-decoration: none;
|
|
||||||
color: inherit;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
li a:hover {
|
|
||||||
color: var(--text-900);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,7 +70,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
background: var(--color-bg);
|
background: var(--background);
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.3s ease;
|
||||||
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@@ -6,3 +6,4 @@ $width-max: 60rem;
|
|||||||
@import "fonts";
|
@import "fonts";
|
||||||
|
|
||||||
@import "header";
|
@import "header";
|
||||||
|
@import "footer";
|
||||||
|
@@ -0,0 +1,22 @@
|
|||||||
|
<footer class="footer">
|
||||||
|
<div class="footer-container">
|
||||||
|
<div class="copyright">
|
||||||
|
<a href="{{- "/" | relURL -}}">{{ .Site.Title }}</a> ©
|
||||||
|
{{ now.Year }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="footer-nav">
|
||||||
|
<ul>
|
||||||
|
{{ $len := len .Site.Params.footer }}
|
||||||
|
{{ range $i, $el := .Site.Params.footer }}
|
||||||
|
<li>
|
||||||
|
<a href="{{- $el.url -}}">{{ $el.name }}</a>
|
||||||
|
</li>
|
||||||
|
{{ if lt (add $i 1) $len }}
|
||||||
|
<span class="middot">·</span>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
Reference in New Issue
Block a user