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,21 +8,20 @@
|
||||
margin: 0 auto;
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--text-900);
|
||||
}
|
||||
|
||||
.site-title {
|
||||
font-size: 1.5rem;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--text-900);
|
||||
}
|
||||
}
|
||||
|
||||
.nav {
|
||||
@@ -33,15 +32,8 @@
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
li a {
|
||||
li {
|
||||
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;
|
||||
|
||||
opacity: 0;
|
||||
background: var(--color-bg);
|
||||
background: var(--background);
|
||||
transition: opacity 0.3s ease;
|
||||
|
||||
pointer-events: none;
|
||||
|
@@ -6,3 +6,4 @@ $width-max: 60rem;
|
||||
@import "fonts";
|
||||
|
||||
@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