forked from samuel-p/sp-codes.de
layout ng
This commit is contained in:
parent
2a40582394
commit
805012ef26
22 changed files with 362 additions and 190 deletions
|
@ -49,7 +49,7 @@ layout: base.njk
|
|||
<div class="mb-2">
|
||||
<a href="https://status.sp-codes.de" target="_blank">
|
||||
<img alt="{{strings.state[locale]}}"
|
||||
src="https://shields.sp-codes.de/endpoint?label={{strings.state[locale]}}&url=https%3A%2F%2Fstatus.sp-codes.de%2Fapi%2Fbadge%3Fservice%3D{{service.status}}%26operational%3D{{strings.operational[locale]}}%26outage%3D{{strings.outage[locale]}}%26maintenance%3D{{strings.maintenance[locale]}}">
|
||||
src="https://status.sp-codes.de/api/badge/1/status?label=Status&upLabel=Online&downLabel=Ausfall&maintenanceLabel=Wartung">
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -39,13 +39,13 @@ title: sp-codes
|
|||
<body>
|
||||
<nav class="nav menu border-bottom">
|
||||
<div class="toggle">
|
||||
<label for="menu" class="m-0"><span class="i-bars me-1"></span>{{ strings.menu[locale] }}</label>
|
||||
<label for="menu" class="m-0"><span class="i-bars me-2"></span>{{ strings.menu[locale] }}</label>
|
||||
|
||||
<div class="flex-grow-1"></div>
|
||||
|
||||
{% for language in site.languages %}
|
||||
<div {% if language.code== locale %} class="active" {% endif %}>
|
||||
<a href="{% translatedUrl locale, language.code %}" class="ms-3">
|
||||
<div {% if language.code == locale %} class="active" {% endif %}>
|
||||
<a href="{% translatedUrl locale, language.code %}" class="ms-4">
|
||||
<span class="fi-{{ language.icon }}" title="{{ language.label }}"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -54,11 +54,14 @@ title: sp-codes
|
|||
<input type="checkbox" id="menu"/>
|
||||
|
||||
<div class="items">
|
||||
<a class="logo mini fixed me-4" href="/{{locale}}/">
|
||||
<img src="/img/sp-codes.svg" alt="sp-codes">
|
||||
</a>
|
||||
{%- for entry in collections.all | eleventyNavigation %}
|
||||
{% if not entry.url.startsWith("https") and entry.url.includes(locale) or entry.locale == locale %}
|
||||
<div class="item{% if entry.url == page.url %} active{% endif %}">
|
||||
<a href="{{ entry.url | url }}" class="me-3">
|
||||
{% if entry.icon %}<span class="{{ entry.icon }} me-1"></span>{% endif %}{{ entry.title }}
|
||||
<a href="{{ entry.url | url }}" class="me-4">
|
||||
{% if entry.icon %}<span class="{{ entry.icon }} me-2"></span>{% endif %}{{ entry.title }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@ -67,10 +70,10 @@ title: sp-codes
|
|||
|
||||
<div class="flex-grow-1"></div>
|
||||
|
||||
<div class="lang-large">
|
||||
<div class="items lang-large">
|
||||
{% for language in site.languages %}
|
||||
<div {% if language.code== locale %} class="active" {% endif %}>
|
||||
<a href="{% translatedUrl locale, language.code %}" class="ms-3">
|
||||
<div class="item{% if language.code == locale %} active{% endif %}"">
|
||||
<a href="{% translatedUrl locale, language.code %}" class="ms-4">
|
||||
<span class="fi-{{ language.icon }}" title="{{ language.label }}"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -82,21 +85,21 @@ title: sp-codes
|
|||
{{ content | safe }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-start flex-wrap p-2 menu border-top">
|
||||
<div class="nav d-flex justify-content-start flex-wrap px-4 py-3 menu border-top">
|
||||
<div class="d-flex justify-content-start flex-wrap">
|
||||
<div class="me-3">Made with <span class="i-heart highlight"></span> in Germany</div>
|
||||
<div class="me-3"><a href="https://samuel-philipp.de"><span class="i-copyright me-1"></span>Samuel Philipp</a></div>
|
||||
<div class="me-4">Made with <span class="i-heart highlight"></span> in Germany</div>
|
||||
<div class="me-4"><a href="https://samuel-philipp.de"><span class="i-copyright me-2"></span>Samuel Philipp</a></div>
|
||||
</div>
|
||||
<div class="flex-sm-grow-1"></div>
|
||||
<div class="d-flex justify-content-sm-start flex-wrap">
|
||||
<div class="me-3"><a href="/{{locale}}/imprint"><span class="i-info-circle me-1"></span>{{strings.imprint[locale]}}</a>
|
||||
<div class="me-4"><a href="/{{locale}}/imprint"><span class="i-info-circle me-2"></span>{{strings.imprint[locale]}}</a>
|
||||
</div>
|
||||
<div class="me-3"><a href="/{{locale}}/privacy"><span class="i-user-secret me-1"></span>{{strings.privacy[locale]}}</a>
|
||||
<div class="me-4"><a href="/{{locale}}/privacy"><span class="i-user-secret me-2"></span>{{strings.privacy[locale]}}</a>
|
||||
</div>
|
||||
<div class="me-3"><a target="_blank" href="https://git.sp-codes.de/samuel-p/sp-codes.de"><span
|
||||
class="i-code me-1"></span>{{strings.code[locale]}}</a></div>
|
||||
<div class="me-4"><a target="_blank" href="https://git.sp-codes.de/samuel-p/sp-codes.de"><span
|
||||
class="i-code me-2"></span>{{strings.code[locale]}}</a></div>
|
||||
<div><a target="_blank" href="https://umami.sp-codes.de/share/gaJcXEyG/sp-codes.de"><span
|
||||
class="i-chart-line me-1"></span>{{strings.stats[locale]}}</a></div>
|
||||
class="i-chart-line me-2"></span>{{strings.stats[locale]}}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
35
src/_includes/layouts/service.njk
Normal file
35
src/_includes/layouts/service.njk
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
layout: base.njk
|
||||
---
|
||||
|
||||
{% set service = services | getServiceById(key) %}
|
||||
{% if service %}
|
||||
<h1><i class="{{service.icon}}"></i> {{title}} <a href="https://status.sp-codes.de" class="float-end"><img alt="{{strings.state[locale]}}" src="https://status.sp-codes.de/api/badge/1/status?label=Status&upLabel=Online&downLabel=Ausfall&maintenanceLabel=Wartung"></a></h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-12">
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
<div class="col-lg-4 col-12">
|
||||
<div class="tab-card">
|
||||
<div class="title"><h1 class="text-center fw-bold">sp-codes</h1></div>
|
||||
<div class="card">
|
||||
Seit Anfang 2020 betreibe ich einen öffentlichen Matrix-Server: <a href="https://matrix.sp-codes.de">matrix.sp-codes.de</a> und eine öffentliche Element-Web Instanz: <a href="https://chat.sp-codes.de" target="_blank">chat.sp-codes.de</a>
|
||||
<div class="text-center mt-2">
|
||||
<a class="btn btn-primary" target="_blank" href="https://chat.sp-codes.de/#/register">Jetzt registrieren</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if service.ossrox %}
|
||||
<div class="tab-card ossrox">
|
||||
<div class="title"><img class="ossrox" src="/img/ossrox-white.svg" alt="Ossrox"></div>
|
||||
<div class="card">
|
||||
{{service.ossrox.description[locale]}}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
Service not found
|
||||
{% endif %}
|
1
src/_includes/logo-animated.html
Normal file
1
src/_includes/logo-animated.html
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><linearGradient id="a"><stop offset="0" stop-color="#fea500"></stop><stop offset="1" stop-color="#fea500" stop-opacity="0"></stop></linearGradient></defs><path d="M256 22l202.684 117.02v234.039L256 490.079 53.316 373.058v-234.04z" stroke="#fea500" stroke-width="13.856" stroke-linejoin="round" stroke-linecap="round" class="cEsZQnrx_0"></path><g><path d="M257.82 271.163q0 10.765-5.513 19.08-5.426 8.227-15.841 12.866-10.415 4.55-24.681 4.55-14.266 0-25.382-4.2-11.115-4.289-19.08-11.99l11.116-12.429q6.652 6.127 14.791 9.365 8.227 3.238 18.467 3.238 7.002 0 12.603-2.188 5.69-2.275 9.015-6.651 3.413-4.376 3.413-10.678 0-5.426-2.188-9.102t-7.527-6.564q-5.338-2.889-15.053-5.777-13.391-4.026-21.88-8.752-8.403-4.726-12.779-11.29-4.288-6.652-4.288-15.929 0-9.627 5.338-17.067 5.427-7.439 14.88-11.465 9.451-4.113 21.267-4.113 12.69 0 22.58 3.675 9.978 3.676 17.855 10.853l-10.678 12.078q-6.214-5.426-13.478-8.052-7.265-2.626-15.054-2.626-9.715 0-15.841 4.026-6.04 4.026-6.04 11.553 0 4.814 2.539 8.052 2.625 3.238 8.577 6.04 5.951 2.8 17.154 6.126 11.378 3.413 19.08 7.789 7.702 4.289 12.165 11.553 4.464 7.177 4.464 18.03z" fill="#fea500" stroke-width="0" class="cEsZQnrx_1"></path></g><g><path d="M336.3 261.862q0 20.305-12.691 30.108-12.603 9.714-34.484 9.714H274.51v43.06h-20.305V223.966h33.521q23.28 0 35.884 9.54 12.69 9.453 12.69 28.357zm-21.356.175q0-22.843-25.906-22.843h-14.529v47H289.3q12.253 0 18.905-5.602 6.74-5.602 6.74-18.555z" fill="#fea500" stroke-width="4.366" class="cEsZQnrx_2"></path></g><path d="M53.316 139.02l65.385 37.75L256 97.5V22M256 490.078V414.5l137.23-79.23 65.454 37.789" fill="none" stroke="#fea500" stroke-width="13.856" stroke-linecap="round" stroke-linejoin="round" class="cEsZQnrx_3"></path><path d="M256 22v75.5l137.3 79.27 65.384-37.75zM256 490.004V414.5l-137.23-79.23-65.454 37.789z" fill="#fea500" stroke="#fea500" stroke-width="13.856" stroke-linecap="round" stroke-linejoin="round" class="cEsZQnrx_4"></path></svg>
|
After Width: | Height: | Size: 2 KiB |
|
@ -1,44 +1,45 @@
|
|||
<div class="d-flex justify-content-center flex-wrap my-3 contact-links">
|
||||
<div class="m-2"><a href="mailto:mail@sp-codes.de">
|
||||
<span class="d-none d-md-inline-block i-envelope i-4x i-fw"></span>
|
||||
<!-- TODO -->
|
||||
<div class="d-flex flex-wrap gap-3 my-3 contact-links">
|
||||
<div><a href="mailto:mail@sp-codes.de">
|
||||
<span class="d-none d-md-inline-block i-envelope i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-envelope i-2x i-fw"></span>
|
||||
</a></div>
|
||||
<div class="m-2"><a href="https://matrix.to/#/@samuel-p:matrix.sp-codes.de">
|
||||
<span class="d-none d-md-inline-block i-matrix i-4x i-fw"></span>
|
||||
<div><a href="https://matrix.to/#/@samuel-p:matrix.sp-codes.de">
|
||||
<span class="d-none d-md-inline-block i-matrix i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-matrix i-2x i-fw"></span>
|
||||
</a></div>
|
||||
<div class="m-2"><a rel="me" href="https://social.sp-codes.de/@samuel_p">
|
||||
<span class="d-none d-md-inline-block i-mastodon i-4x i-fw"></span>
|
||||
<div><a rel="me" href="https://social.sp-codes.de/@samuel_p">
|
||||
<span class="d-none d-md-inline-block i-mastodon i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-mastodon i-2x i-fw"></span>
|
||||
</a></div>
|
||||
<div class="m-2"><a rel="me" href="https://www.xing.com/profile/Samuel_Philipp">
|
||||
<span class="d-none d-md-inline-block i-xing i-4x i-fw"></span>
|
||||
<div><a rel="me" href="https://www.xing.com/profile/Samuel_Philipp">
|
||||
<span class="d-none d-md-inline-block i-xing i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-xing i-2x i-fw"></span>
|
||||
</a></div>
|
||||
<div class="m-2"><a rel="me" href="https://www.linkedin.com/in/samuel-philipp">
|
||||
<span class="d-none d-md-inline-block i-linkedin i-4x i-fw"></span>
|
||||
<div><a rel="me" href="https://www.linkedin.com/in/samuel-philipp">
|
||||
<span class="d-none d-md-inline-block i-linkedin i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-linkedin i-2x i-fw"></span>
|
||||
</a></div>
|
||||
<div class="m-2"><a href="https://git.sp-codes.de/samuel-p">
|
||||
<span class="d-none d-md-inline-block i-git i-4x i-fw"></span>
|
||||
<div><a href="https://git.sp-codes.de/samuel-p">
|
||||
<span class="d-none d-md-inline-block i-git i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-git i-2x i-fw"></span>
|
||||
</a></div>
|
||||
<div class="m-2"><a href="https://github.com/samuel-p">
|
||||
<span class="d-none d-md-inline-block i-github i-4x i-fw"></span>
|
||||
<div><a href="https://github.com/samuel-p">
|
||||
<span class="d-none d-md-inline-block i-github i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-github i-2x i-fw"></span>
|
||||
</a></div>
|
||||
<div class="m-2"><a href="https://stackoverflow.com/users/9662601/samuel-p">
|
||||
<span class="d-none d-md-inline-block i-stackoverflow i-4x i-fw"></span>
|
||||
<div><a href="https://stackoverflow.com/users/9662601/samuel-p">
|
||||
<span class="d-none d-md-inline-block i-stackoverflow i-2x i-fw"></span>
|
||||
<span class="d-inline-block d-md-none i-stackoverflow i-2x i-fw"></span>
|
||||
</a></div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-center mb-3">
|
||||
<div class="lead text-center">
|
||||
{% if locale == 'de' %}
|
||||
<a href="https://samuel-philipp.de">samuel-philipp.de</a>
|
||||
{% elseif locale == 'en' %}
|
||||
<a href="https://samuel-philipp.com">samuel-philipp.com</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="d-flex justify-content-center mb-3">-->
|
||||
<!-- <div class="lead text-center">-->
|
||||
<!-- {% if locale == 'de' %}-->
|
||||
<!-- <a href="https://samuel-philipp.de">samuel-philipp.de</a>-->
|
||||
<!-- {% elseif locale == 'en' %}-->
|
||||
<!-- <a href="https://samuel-philipp.com">samuel-philipp.com</a>-->
|
||||
<!-- {% endif %}-->
|
||||
<!-- </div>-->
|
||||
<!--</div>-->
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{%- for service in services %}
|
||||
<div class="col-12 col-md-6 p-3">
|
||||
<div class="col-12 col-md-6 col-lg-4 p-3">
|
||||
<div class="card service flat">
|
||||
<a class="link" href="/{{locale}}/services{% if service.beta != true %}/{{service.id}}{% endif %}"></a>
|
||||
<div class="inner" href="/{{locale}}/services{% if service.beta != true %}/{{service.id}}{% endif %}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue