start taking in account feedbacks
All checks were successful
/ test_checkout (push) Successful in 1m50s

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-10-21 01:52:00 +02:00
parent 0d50644ede
commit de6359db3f
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 354 additions and 192 deletions

View file

@ -43,9 +43,8 @@ cmyk(25%,7%,0%,0%),
// Data
#let sns-polylux-template_title = state("title", none)
#let sns-polylux-template_short-title = state("short-title", none)
#let sns-polylux-template_subtitle = state("subtitle", none)
#let sns-polylux-template_event = state("event", none)
#let sns-polylux-template_footer-text = state("footer-text", none)
#let sns-polylux-template_short-event = state("short-event", none)
#let sns-polylux-template_authors = state("authors", none)
@ -77,8 +76,7 @@ cmyk(25%,7%,0%,0%),
// Data
title : none,
subtitle : none,
short-title : none,
event : none,
footer-text : none,
short-event : none,
logo-2 : none,
logo-1 : none,
@ -115,11 +113,7 @@ cmyk(25%,7%,0%,0%),
)
sns-polylux-template_title.update(title)
sns-polylux-template_subtitle.update(subtitle)
if short-title != none { sns-polylux-template_short-title.update(short-title) }
else { sns-polylux-template_short-title.update(title) }
sns-polylux-template_event.update(event)
if short-event != none { sns-polylux-template_short-event.update(short-event) }
else { sns-polylux-template_short-event.update(event) }
if footer-text != none { sns-polylux-template_footer-text.update(footer-text) }
sns-polylux-template_logo-2.update(logo-2)
sns-polylux-template_logo-1.update(logo-1)
sns-polylux-template_authors.update(authors)
@ -171,7 +165,7 @@ cmyk(25%,7%,0%,0%),
let content = align(top + center, context( {
let title = sns-polylux-template_title.at(here())
let subtitle = sns-polylux-template_subtitle.at(here())
let event = sns-polylux-template_event.at(here())
let footer-text = sns-polylux-template_footer-text.at(here())
let authors = sns-polylux-template_authors.at(here())
let title-size = sns-polylux-template_title-size.at(here())
let logo = {
@ -224,7 +218,7 @@ cmyk(25%,7%,0%,0%),
place(
bottom + center,
dy: -1cm,
text(fill: sns-polylux-template_background-color.at(here()), size: 22pt, event)
text(fill: sns-polylux-template_background-color.at(here()), size: 22pt, footer-text)
)
if logo != none {
place(
@ -454,8 +448,7 @@ cmyk(25%,7%,0%,0%),
// FOOTER
let footer = align(top + center, context( {
let short-title = sns-polylux-template_short-title.at(here())
let short-event = sns-polylux-template_short-event.at(here())
let footer-text = sns-polylux-template_footer-text.at(here())
place(top + center, line(length: 100%-2cm, stroke: (paint: sns-polylux-template_colormap.at(here()).at(1), thickness: 2pt)))
@ -468,9 +461,8 @@ cmyk(25%,7%,0%,0%),
align(horizon,text(fill: sns-polylux-template_colormap.at(here()).at(2), size: 16pt,
grid(
gutter: 0.8cm,
columns: (0.7fr, 1fr, 0.7fr),
align(left, short-title),
align(center, smallcaps(short-event)),
columns: (1fr, 5em),
align(center, smallcaps(footer-text)),
align(right, if page-number [#toolbox.slide-number/#toolbox.last-slide-number]),
))
))