fix: various fixes
This commit is contained in:
parent
7ec4550b5a
commit
568ece3e95
7 changed files with 69 additions and 59 deletions
|
@ -6,6 +6,7 @@ module.exports = {
|
||||||
locale: "en_EN",
|
locale: "en_EN",
|
||||||
lang: "en",
|
lang: "en",
|
||||||
author: "Devin Haska",
|
author: "Devin Haska",
|
||||||
|
repoUrl: "https://github.com/wonderfulfrog/wonderfulfrog.com",
|
||||||
social: {
|
social: {
|
||||||
github: "https://github.com/wonderfulfrog",
|
github: "https://github.com/wonderfulfrog",
|
||||||
mastodon: "https://mastodon.social/@wonderfulfrog",
|
mastodon: "https://mastodon.social/@wonderfulfrog",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% macro format(dateString) %}
|
{% macro format(dateString) %}
|
||||||
<time class="[ date ] [ flex items-center gap-0.5 text-fadeText ]" datetime="{{ date }}">
|
<time class="[ date ] [ flex items-center gap-0.5 text-fadeText ]" datetime="{{ date }}">
|
||||||
<span class="[ text-shadow line-height-s ]">{% include "svgs/calendar.svg" %}</span>{{ dateString | formatDate("MMMM Do YYYY") }}
|
<span class="[ text-primary line-height-s ]">{% include "svgs/calendar.svg" %}</span>{{ dateString | formatDate("MMMM Do YYYY") }}
|
||||||
</time>
|
</time>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<footer class="[ bg-surface mt-1.5 py-1.5 ]">
|
<footer class="[ bg-surface mt-1.5 py-1.5 ]">
|
||||||
<div class="[ wrapper flow ]">
|
<div class="[ wrapper flow ]">
|
||||||
<div class="[ repel ]">
|
<div class="[ repel ]">
|
||||||
<p>© {{ meta.author }} 2018-2024.</p>
|
<p>© {{ meta.author }} 2018 - 2024.</p>
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="[ cluster p-0 m-0 ]" role="list">
|
<ul class="[ cluster p-0 m-0 ]" role="list">
|
||||||
{% for link in navigation.bottom %}
|
{% for link in navigation.bottom %}
|
||||||
|
@ -12,23 +12,32 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<nav class="[ flow-space-0.5 ]">
|
<div class="[ repel ]">
|
||||||
<ul class="[ cluster p-0 m-0 gap-0.5 ]" role="list">
|
<nav class="[ flow-space-0.5 ]">
|
||||||
<li>
|
<ul class="[ menu ] [ cluster p-0 m-0 gap-0.5 ]" role="list">
|
||||||
<span class="[ visually-hidden ]">RSS</span>
|
|
||||||
<a href="/rss.xml" target="_blank" aria-label="View RSS feed">{% include "svgs/rss.svg" %}</a>
|
|
||||||
</li>
|
|
||||||
{% for key, url in meta.social %}
|
|
||||||
{% set alt = key | capitalize %}
|
|
||||||
<li>
|
<li>
|
||||||
<span class="[ visually-hidden ]">{{ alt }}</span>
|
<span class="[ visually-hidden ]">RSS</span>
|
||||||
<a href="{{ url }}"
|
<a href="/rss.xml"
|
||||||
|
class="[ button ]"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="me external noreferrer noopener"
|
aria-label="View RSS feed">{% include "svgs/rss.svg" %}</a>
|
||||||
aria-label="View {{ alt }} page">{% include "svgs/social-" + key + ".svg" %}</a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% for key, url in meta.social %}
|
||||||
</ul>
|
{% set alt = key | capitalize %}
|
||||||
</nav>
|
<li>
|
||||||
|
<span class="[ visually-hidden ]">{{ alt }}</span>
|
||||||
|
<a href="{{ url }}"
|
||||||
|
class="[ button ]"
|
||||||
|
target="_blank"
|
||||||
|
rel="me external noreferrer noopener"
|
||||||
|
aria-label="View {{ alt }} page">{% include "svgs/social-" + key + ".svg" %}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="{{ meta.repoUrl }}"
|
||||||
|
target="_blank"
|
||||||
|
rel="me external noreferrer noopener">Source</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<ul class="[ menu ] [ list-none cluster p-0 m-0 ]">
|
<ul class="[ menu ] [ list-none cluster p-0 m-0 ]">
|
||||||
{% for item in navigation.top %}
|
{% for item in navigation.top %}
|
||||||
<li>
|
<li>
|
||||||
<a class="[ menu-button ]" href="{{ item.url }}">{{ item.text }}</a>
|
<a class="[ button ]" href="{{ item.url }}">{{ item.text }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
35
src/css/blocks/button.css
Normal file
35
src/css/blocks/button.css
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
.button {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 1rem;
|
||||||
|
background-color: var(--color-white);
|
||||||
|
color: var(--color-shadow);
|
||||||
|
box-shadow:
|
||||||
|
1px 1px 0px var(--color-shadow),
|
||||||
|
2px 2px 0 var(--color-shadow);
|
||||||
|
padding-block: var(--spacing-0\.25);
|
||||||
|
padding-inline: var(--spacing-0\.5);
|
||||||
|
border-radius: var(--spacing-0\.25);
|
||||||
|
border: 1px solid var(--color-shadow);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
transition:
|
||||||
|
box-shadow var(--transition-duration),
|
||||||
|
transform var(--transition-duration),
|
||||||
|
background-color var(--transition-duration),
|
||||||
|
color var(--transition-duration);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:hover {
|
||||||
|
background-color: color-mix(
|
||||||
|
in srgb,
|
||||||
|
var(--color-white) 90%,
|
||||||
|
var(--color-primary)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:active {
|
||||||
|
box-shadow: 0 0 0 var(--color-shadow);
|
||||||
|
transform: translate(2px, 2px);
|
||||||
|
}
|
6
src/css/blocks/menu.css
Normal file
6
src/css/blocks/menu.css
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.menu > li {
|
||||||
|
filter: drop-shadow(1px 0 0 var(--color-white))
|
||||||
|
drop-shadow(-1px 0 0 var(--color-white))
|
||||||
|
drop-shadow(0 -1px 0 var(--color-white))
|
||||||
|
drop-shadow(0 1px 0 var(--color-white));
|
||||||
|
}
|
|
@ -16,44 +16,3 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu > li {
|
|
||||||
filter: drop-shadow(1px 0 0 var(--color-white))
|
|
||||||
drop-shadow(-1px 0 0 var(--color-white))
|
|
||||||
drop-shadow(0 -1px 0 var(--color-white))
|
|
||||||
drop-shadow(0 1px 0 var(--color-white));
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-button {
|
|
||||||
display: block;
|
|
||||||
line-height: 1rem;
|
|
||||||
background-color: var(--color-white);
|
|
||||||
color: var(--color-shadow);
|
|
||||||
box-shadow:
|
|
||||||
1px 1px 0px var(--color-shadow),
|
|
||||||
2px 2px 0 var(--color-shadow);
|
|
||||||
padding-block: var(--spacing-0\.25);
|
|
||||||
padding-inline: var(--spacing-0\.5);
|
|
||||||
border-radius: var(--spacing-0\.25);
|
|
||||||
border: 1px solid var(--color-shadow);
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
transition:
|
|
||||||
box-shadow var(--transition-duration),
|
|
||||||
transform var(--transition-duration),
|
|
||||||
background-color var(--transition-duration),
|
|
||||||
color var(--transition-duration);
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-button:hover {
|
|
||||||
background-color: color-mix(
|
|
||||||
in srgb,
|
|
||||||
var(--color-white) 90%,
|
|
||||||
var(--color-primary)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-button:active {
|
|
||||||
box-shadow: 0 0 0 var(--color-shadow);
|
|
||||||
transform: translate(2px, 2px);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue