mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Website redesign
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<div class="is-clearfix">
|
||||
<a class="button is-pulled-right {{ classes }}" href="{{ href }}">
|
||||
<div class="flex flex-row justify-end items-center">
|
||||
<a class="no-default button1" href="{{ href }}">
|
||||
{{ text }}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<figure class="image">
|
||||
<figure>
|
||||
{% if page is defined %}
|
||||
{% set len = page.components | length %}
|
||||
{% set p = page.components | slice(end=len - 1) | join(sep='/') %}
|
||||
@ -6,5 +6,5 @@
|
||||
{% set p = section.components | join(sep='/') %}
|
||||
{% endif %}
|
||||
|
||||
<img src="{{ get_url(path=p ~ "/" ~ file) }}">
|
||||
<img src="{{ get_url(path=p ~ "/" ~ file) }}" >
|
||||
</figure>
|
||||
|
14
website/site/templates/shortcodes/figure2.html
Normal file
14
website/site/templates/shortcodes/figure2.html
Normal file
@ -0,0 +1,14 @@
|
||||
{% if page is defined %}
|
||||
{% set len = page.components | length %}
|
||||
{% set p = page.components | slice(end=len - 1) | join(sep='/') %}
|
||||
{% else %}
|
||||
{% set p = section.components | join(sep='/') %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<figure class="dark-block" title="{{ dark }}">
|
||||
<img src="{{ get_url(path=p ~ "/" ~ dark) }}">
|
||||
</figure>
|
||||
<figure class="light-block" title="{{ light }}">
|
||||
<img src="{{ get_url(path=p ~ "/" ~ light) }}" >
|
||||
</figure>
|
4
website/site/templates/shortcodes/imgnormal2.html
Normal file
4
website/site/templates/shortcodes/imgnormal2.html
Normal file
@ -0,0 +1,4 @@
|
||||
{% set len = page.components | length %}
|
||||
{% set p = page.components | slice(end=len - 1) | join(sep='/') %}
|
||||
<img class="light-block" src="{{ get_url(path=p ~ "/" ~ light) }}" width="{{ width }}">
|
||||
<img class="dark-block" src="{{ get_url(path=p ~ "/" ~ dark) }}" width="{{ width }}">
|
4
website/site/templates/shortcodes/imgright2.html
Normal file
4
website/site/templates/shortcodes/imgright2.html
Normal file
@ -0,0 +1,4 @@
|
||||
{% set len = page.components | length %}
|
||||
{% set p = page.components | slice(end=len - 1) | join(sep='/') %}
|
||||
<img class="light-block" style="float:right; padding-left:0.25em;" src="{{ get_url(path=p ~ "/" ~ light) }}">
|
||||
<img class="dark-block" style="float:right; padding-left:0.25em;" src="{{ get_url(path=p ~ "/" ~ dark) }}">
|
@ -1,10 +1,10 @@
|
||||
<div class="notification is-{{ mode }} is-light" style="z-index: 0">
|
||||
<div class="content ">
|
||||
<p class="title is-5">
|
||||
{{ title }}
|
||||
</p>
|
||||
<div>
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
<div class="my-3 rounded border border-indigo-200 bg-indigo-100 bg-opacity-40 text-indigo-400 shadow shadow-indigo-200 dark:bg-cyan-500 dark:bg-opacity-30 dark:text-cyan-100 dark:border-cyan-700 dark:shadow-none">
|
||||
<div class="px-1 py-1 border-b border-indigo-200 font-medium w-full bg-indigo-200 bg-opacity-60 dark:bg-cyan-700 dark:border-cyan-700">
|
||||
<i class="fa fa-info mx-2" ></i>
|
||||
{{ title }}
|
||||
</div>
|
||||
|
||||
<div class="px-2">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
</div>
|
||||
|
10
website/site/templates/shortcodes/warningbubble.html
Normal file
10
website/site/templates/shortcodes/warningbubble.html
Normal file
@ -0,0 +1,10 @@
|
||||
<div class="my-3 rounded border border-yellow-300 bg-yellow-200 bg-opacity-40 text-yellow-600 shadow shadow-yellow-200 dark:bg-amber-500 dark:bg-opacity-30 dark:text-amber-100 dark:border-amber-700 dark:shadow-none">
|
||||
<div class="px-1 py-1 border-b border-yellow-300 text-yellow-600 dark:text-amber-300 font-medium w-full bg-yellow-300 bg-opacity-50 dark:bg-amber-700 dark:border-amber-700">
|
||||
<i class="fa fa-info mx-2" ></i>
|
||||
{{ title }}
|
||||
</div>
|
||||
|
||||
<div class="px-2">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user