feat(templates): Add social links

This commit is contained in:
Myzel394 2024-11-21 20:22:04 +01:00
parent 94009fb08e
commit 790bd95a12
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F
2 changed files with 28 additions and 2 deletions

View File

@ -19,9 +19,7 @@ export default async function render(
switch (presentation) {
case "browser":
return context.html(content);
break;
case "terminal":
return context.text(content);
break;
}
}

View File

@ -38,6 +38,25 @@
margin-top: 0;
text-align: left;
}
.socials {
display: flex;
justify-content: end;
column-gap: 1em;
margin-top: 1.4em;
}
.socials img {
color: #fff;
filter: invert(0.7);
border-radius: 50%;
width: 1.4em;
}
.socials img:hover {
filter: invert(1);
}
</style>
{% block header %}{% endblock %}
@ -47,6 +66,15 @@
{% block main %}
<h2>Am I Open</h2>
{% endblock %}
<div class="socials">
<a href="https://github.com/Myzel394/amiopen.now" target="_blank" rel="noopener noreferrer">
<img src="/static/github.svg" alt="GitHub" />
</a>
<a href="https://twitter.com/Myzel394" target="_blank" rel="noopener noreferrer">
<img src="/static/twitter.svg" alt="GitHub" />
</a>
</div>
</main>
{% block scripts %}
{% endblock %}