floating image support

main
aprzn 1 year ago
parent bf0dcc16a0
commit 6d9218d416

@ -1,5 +1,9 @@
+++ +++
title = "the third can" title = "the third can"
[extra]
image = "/ttc_config.png"
image_desc = "a screenshot of The Third Can's configuration page, v0.2.0"
+++ +++
i made a browser extension with [theki](https://theki.club) and contributions from [sandvich](https://sandvich.xyz). it adds lots of useful features to [TwoCans](https://twocansandstring.com). i made a browser extension with [theki](https://theki.club) and contributions from [sandvich](https://sandvich.xyz). it adds lots of useful features to [TwoCans](https://twocansandstring.com).

@ -1,6 +1,7 @@
$fave: #aa71fa; $fave: #aa71fa;
$off-dark: #1b181e; $off-dark: #1b181e;
$body-bg: #d5bbf9; $body-bg: #d5bbf9;
$body-bg-light: #e1ccff;
$code-bg: #baa6d8; $code-bg: #baa6d8;
$code-block-bg: #2b303b; $code-block-bg: #2b303b;
@ -83,6 +84,19 @@ code {
border-radius: 0.25em; border-radius: 0.25em;
} }
#main-image {
float: right;
border: 0.15em solid $off-dark;
border-radius: 0.3em;
padding: 0.3em;
margin-right: -2em;
background-color: $body-bg-light;
max-width: 50%;
img {
width: 100%;
}
}
@font-face { @font-face {
font-family: lipamanka; font-family: lipamanka;
src: url(/linjamanka.woff); src: url(/linjamanka.woff);

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

@ -15,6 +15,13 @@
<a href="/why-zinc">why zinc</a> <a href="/why-zinc">why zinc</a>
</div> </div>
<div class="block"> <div class="block">
{% if page.extra.image and page.extra.image_desc %}
<div id="main-image">
<img src="{{ page.extra.image }}" alt="{{ page.extra.image_desc }}">
<br>
{{ page.extra.image_desc }}
</div>
{% endif %}
{% block content %} {% endblock %} {% block content %} {% endblock %}
</div> </div>
<div class="block" id="footer"> <div class="block" id="footer">

Loading…
Cancel
Save