Recommended articles
Some checks failed
test / cargo test (push) Failing after 59s

This commit is contained in:
Michal Vanko 2024-11-24 15:38:05 +01:00
parent f7eb6cc95d
commit 13820f58eb
2 changed files with 107 additions and 12 deletions

View File

@ -756,6 +756,10 @@ video {
margin-top: 1rem; margin-top: 1rem;
} }
.mb-10 {
margin-bottom: 2.5rem;
}
.block { .block {
display: block; display: block;
} }
@ -804,6 +808,10 @@ video {
height: auto; height: auto;
} }
.h-full {
height: 100%;
}
.max-h-\[236px\] { .max-h-\[236px\] {
max-height: 236px; max-height: 236px;
} }
@ -832,6 +840,10 @@ video {
width: 320px; width: 320px;
} }
.w-0 {
width: 0px;
}
.max-w-\[24rem\] { .max-w-\[24rem\] {
max-width: 24rem; max-width: 24rem;
} }
@ -962,6 +974,10 @@ video {
border-width: 2px; border-width: 2px;
} }
.border-l {
border-left-width: 1px;
}
.border-blue-300 { .border-blue-300 {
--tw-border-opacity: 1; --tw-border-opacity: 1;
border-color: rgb(130 195 247 / var(--tw-border-opacity, 1)); border-color: rgb(130 195 247 / var(--tw-border-opacity, 1));
@ -982,6 +998,11 @@ video {
border-color: rgb(203 213 225 / var(--tw-border-opacity, 1)); border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
} }
.border-l-slate-300 {
--tw-border-opacity: 1;
border-left-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
}
.bg-blue-100 { .bg-blue-100 {
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgb(225 239 253 / var(--tw-bg-opacity, 1)); background-color: rgb(225 239 253 / var(--tw-bg-opacity, 1));
@ -1993,6 +2014,10 @@ article a:visited {
/* } */ /* } */
.first\:border-l-0:first-child {
border-left-width: 0px;
}
.visited\:text-blue-950:visited { .visited\:text-blue-950:visited {
color: rgb(11 39 70 ); color: rgb(11 39 70 );
} }
@ -2186,6 +2211,14 @@ article a:visited {
margin-top: 5rem; margin-top: 5rem;
} }
.lg\:mt-8 {
margin-top: 2rem;
}
.lg\:mb-10 {
margin-bottom: 2.5rem;
}
.lg\:block { .lg\:block {
display: block; display: block;
} }
@ -2228,6 +2261,11 @@ article a:visited {
font-size: 1.125rem; font-size: 1.125rem;
line-height: 1.75rem; line-height: 1.75rem;
} }
.lg\:text-4xl {
font-size: 2.25rem;
line-height: 2.5rem;
}
} }
@media (min-width: 1280px) { @media (min-width: 1280px) {
@ -2259,10 +2297,30 @@ article a:visited {
display: block; display: block;
} }
.xl\:flex {
display: flex;
}
.xl\:grid { .xl\:grid {
display: grid; display: grid;
} }
.xl\:hidden {
display: none;
}
.xl\:auto-cols-auto {
grid-auto-columns: auto;
}
.xl\:auto-cols-fr {
grid-auto-columns: minmax(0, 1fr);
}
.xl\:grid-flow-col {
grid-auto-flow: column;
}
.xl\:grid-cols-3 { .xl\:grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
} }
@ -2271,15 +2329,36 @@ article a:visited {
grid-template-columns: 1fr 2fr; grid-template-columns: 1fr 2fr;
} }
.xl\:justify-start {
justify-content: flex-start;
}
.xl\:gap-8 { .xl\:gap-8 {
gap: 2rem; gap: 2rem;
} }
.xl\:gap-5 {
gap: 1.25rem;
}
.xl\:gap-10 {
gap: 2.5rem;
}
.xl\:gap-x-32 { .xl\:gap-x-32 {
-moz-column-gap: 8rem; -moz-column-gap: 8rem;
column-gap: 8rem; column-gap: 8rem;
} }
.xl\:border-l {
border-left-width: 1px;
}
.xl\:border-slate-300 {
--tw-border-opacity: 1;
border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
}
.xl\:text-4xl { .xl\:text-4xl {
font-size: 2.25rem; font-size: 2.25rem;
line-height: 2.5rem; line-height: 2.5rem;
@ -2293,6 +2372,10 @@ article a:visited {
.xl\:font-medium { .xl\:font-medium {
font-weight: 500; font-weight: 500;
} }
.xl\:first\:border-l-0:first-child {
border-left-width: 0px;
}
} }
@media print { @media print {

View File

@ -35,18 +35,30 @@
<!-- TODO: Next recommendations for reading --> <!-- TODO: Next recommendations for reading -->
<!-- TODO: Back to all posts --> <!-- TODO: Back to all posts -->
{# footer #} <footer class="max-w-maxindex mx-auto">
<footer>
<hr class="border-slate-300 m-5 md:my-8">
<ul class="mx-5"> {% if recommended_posts.len() > 0 %}
{% for post in recommended_posts %} <section id="recommended-articles">
<li> <hr class="border-slate-300 m-5 md:my-8">
{% include "components/blog_post_preview.html" %}
<!-- TODO hidden block media --> <h2 class="m-5 text-2xl md:text-2xl lg:text-4xl lg:mt-8 text-blue-900 lg:mb-10 font-bold">Further reading</h2>
<hr class="border-slate-300 my-5 md:my-8 hidden lg:block"> <ul class="mx-5 xl:flex xl:justify-start xl:gap-10">
</li> {% for post in recommended_posts %}
{% endfor %} <li class="flex-1">
</ul> {% include "components/blog_post_preview.html" %}
<hr class="border-slate-300 my-5 md:my-8 xl:hidden">
</li>
{% if !loop.last %}
<div class="h-auto w-0 border-l border-slate-300 hidden xl:block"></div>
{% endif %}
{% endfor %}
</ul>
</section>
{% endif %}
<section class="text-center my-3 md:text-lg">
<a href="/blog">see all blog posts</a>
</section>
</footer> </footer>
{% endblock %} {% endblock %}
<!-- xl:border-l xl:border-slate-300 xl:first:border-l-0 xl: -->