1
0
Fork 0

Starting point for base

This commit is contained in:
Mo 2023-05-30 16:10:24 +02:00
parent 008e0ab365
commit 561c595e4e

View file

@ -5,56 +5,57 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title> <title>
{% if page.title %} {%- block title -%}
{{ page.title }} {%- if page.title -%}
{% elif section.title %} {{- page.title -}}
{{ section.title }} {%- elif section.title -%}
{% else %} {{- section.title -}}
{{ config.title }} {%- else -%}
{% endif %} {{- config.title -}}
{%- endif -%}
{%- endblock -%}
</title> </title>
{% set image = resize_image(path=config.extra.logo_path, width=32, height=32, op="fill") %} <meta name="description"
<link rel="icon" type="image/x-icon" href="{{ image.url }}" /> content="{%- block description -%}{%- if page.description -%}{{- page.description -}}{%- elif section.description -%}{{- section.description -}}{%- else -%}{{- config.description -}}{%- endif -%}{%- endblock -%}">
<link href="{{ get_url(path='bootstrap/bootstrap.min.css') }}" <link rel="icon"
type="image/x-icon"
href="{{ get_url(path='images/logo.svg') | safe }}" />
<link href="{{ get_url(path='main.css') | safe }}?v={{ now(timestamp=true) }}"
rel="stylesheet" /> rel="stylesheet" />
<style>
.grow-on-hover {
transition: all .3s ease-in-out;
}
.grow-on-hover:hover {
transform: scale(1.1);
}
.underline-on-hover:hover {
text-decoration: underline;
}
</style>
{% block styles %}{% endblock %} {% block styles %}{% endblock %}
</head> </head>
<body class="d-flex flex-column min-vh-100"> <body class="flex flex-col p-3 mx-auto max-w-screen-lg min-h-screen text-lg">
{% include "partials/nav.html" %} <header class="flex gap-x-2 items-center px-5 mb-3 text-base font-light bg-gray-100 rounded-full sm:gap-x-4">
<a class="p-0.5 transition duration-500 hover:scale-110"
href="{{ get_url(path='/') | safe }}">
<img class="object-contain w-14 h-14 rounded"
src="{{ get_url(path='images/logo.svg') | safe }}" />
</a>
<div class="container-xxl"> <nav class="flex gap-x-2 items-center sm:gap-x-4">
<br> {% for menu_item in config.extra.menu_items %}
<a class="p-1 no-underline transition duration-500 hover:scale-105"
href="{{ menu_item.url | safe }}">{{ menu_item.name }}</a>
{% endfor %}
</nav>
</header>
<main class="leading-relaxed">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</main>
<br> <footer class="pt-6 pb-2 mt-auto">
</div> <nav class="flex flex-col gap-y-2 justify-around py-2 text-center bg-gray-100 rounded sm:flex-row sm:rounded-full">
{% for footer_item in config.extra.footer_items %}
<footer class="mt-auto" <a class="text-sm no-underline" href="{{ footer_item.url | safe }}">{{ footer_item.name }}</a>
style="background-image: linear-gradient(white, {{ config.extra.primary_color }} 15%); {% endfor %}
text-align: center"> </nav>
{% include "partials/footer.html" %}
</footer> </footer>
<script src="{{ get_url(path='bootstrap/bootstrap.bundle.min.js') }}"></script>
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}
</body> </body>
</html> </html>