Skip to content

Commit

Permalink
feat: init devoxxfrance prez
Browse files Browse the repository at this point in the history
  • Loading branch information
mrebiai committed Feb 26, 2024
1 parent 52b45cc commit 52e080d
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build-slides.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ASCIIDOCTOR_DOCKER_IMAGE="asciidoctor/docker-asciidoctor:1.61.0"
REVEALJS_DIR="https://cdn.jsdelivr.net/npm/[email protected]"
CONFERENCES=("webinar" "bdxio" "capitoledulibre" "scalaio")
CONFERENCES=("webinar" "bdxio" "capitoledulibre" "scalaio" "devoxxfrance")

cat summary.adoc > index.adoc

Expand All @@ -11,9 +11,10 @@ mkdir -p public

for conf in "${CONFERENCES[@]}"
do
sourceCss=$([[ -f "custom-${conf}.css" ]] && echo "custom-${conf}.css" || echo "custom.css")
CONFERENCE_PNG_BASE64=$(cat images/logo-${conf}.png | base64 -w0) \
QRCODE_PNG_BASE64=$(cat images/qrcode-slides.png | base64 -w0) \
envsubst < custom.css > public/custom-${conf}.css
envsubst < ${sourceCss} > public/custom-${conf}.css
docker run --name $(uuidgen) --rm -u $(id -u):$(id -g) -v $(pwd):/documents ${ASCIIDOCTOR_DOCKER_IMAGE} \
asciidoctor-revealjs -a data-uri -a revealjs_theme=simple \
-a conf-${conf} -a confname=${conf} \
Expand Down
72 changes: 72 additions & 0 deletions custom-devoxxfrance.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
body:before {
content: 'Youpi dansons la Kapoeira !';
font-family: pirulen,Sans-serif;
position: fixed;
padding: 1em;
width: 100%;
bottom: 0;
height: 2em;
color: #1AE77A;
background-color: black;
text-align: center;
font-size: 1rem;
}

body:after {
content: 'Johanna Vauchel and Mehdi Rebiai';
font-family: pirulen,Sans-serif;
position: fixed;
padding: 1em;
bottom: 0;
left: 1em;
height: 2em;
font-size: 1rem;
color: #1AE77A;
text-align: center;
}

.reveal:before {
content: ' ';
position: fixed;
padding: 1em;
width: 10em;
height: 10em;
background: url("data:image/png;base64,${QRCODE_PNG_BASE64}");
background-repeat: no-repeat;
}

.reveal:after {
content: ' ';
position: fixed;
top: 0;
right: 0;
padding: 1em;
width: 10em;
height: 10em;
background: url("data:image/png;base64,${CONFERENCE_PNG_BASE64}");
background-repeat: no-repeat;
background-position: right top;
}

.reveal h2 {
color: #1AE77A;
font-family: pirulen,Sans-serif;
}

.reveal h1 {
color: #1AE77A;
font-family: pirulen,Sans-serif;
}

.footer {
position: absolute;
display: table;
width: 100%;
bottom: 0;
color: #0988d5
}

.reveal code {
font-size: 0.7em;
line-height: 1.2em;
}
4 changes: 2 additions & 2 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ body:after {
}

.reveal h2 {
color: #8B0000
color: #8B0000;
}

.reveal h1 {
color: #8B0000
color: #8B0000;
}

.footer {
Expand Down
Binary file added images/logo-devoxxfrance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 52e080d

Please sign in to comment.