Skip to content

snowcamp/badges-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SnowCamp.io badges generation

This program is used to generate the Snowcamp.io badges.

Update the date of the badge

Generate the date

  1. go to https://www.dafont.com/snowtop-caps.font?text=2019&psize=l

  2. change the new date (eg 2019)

  3. take a screenshot and crop to the selection

  4. export as png

  5. open with an image editor

    1. set white to transparency

    2. map black to white

    3. export as png (eg 2019.png)

Update the badge model

Use the file src/main/resources/template-badge.svg.mustache

  1. copy it into template-badge.svg

  2. open it with a vector editor (eg Inkscape)

  3. open the png file with the date (eg 2019.png) with the same editor

  4. select the date of the badge template and remove it

  5. copy / paste the new date and adjust the format

  6. ensure the size of the svg is around A6 format (105x148mm)

  7. save the file

Important
the bagde size must be around 105x148mm so that after the printing and the cutting, the badges have a size of around 100x140 mm

Backport the svg to the model

template-badge.svg.mustache declares some mustache variables that will be injected by the Mustache templating engine but Inkscape remove some of them. To avoid this, you need to merge the svg file you’ve generated with the mustache template.

To do so, you can use Intellij (compare the two files) or whatever diff editor.

  1. backport the changes from template-badge.svg to template-badge.svg.mustache (use the Compare files feature of IntelliJ for instance. Don’t copy absolute path references).

  2. save the file

Change the color of the bottom band

Every year, we change the color of the bottom band for:

  • attendees

  • speakers

  • sponsors

    1. edit the config file application.yaml

    2. choose different html colors for them (don’t touch the staff color)

Note
we keep the same color for the staff.

Generate the badge

  1. edit the config file application.yaml and change the value of inputFile to point to the csv files exported from Yurplan

    1. export Participants list from Yurplan:

      1. in Yurplan, go to Participants

      2. for Filtre, choose StatutValide

      3. click on the button Filtrer ma recherche

      4. click on the button Export et Téléchargement > Exporter tous les billets

      5. in application.yaml, declare as inputFile this exported file (absolute path or add the file in this project directory. Beware to exclude it from git commits!)

    2. export Universities list from Yurplan:

      1. in Yurplan, go to Activités > Gestion des activités

      2. click on Filtres et recherche > Afficher plus de filtres

      3. choose StatutValide

      4. click on the button Rechercher

      5. click on the button Export et Téléchargement > Exporter le listing complet

      6. in application.yaml, declare as univsFile this exported file (absolute path or add the file in this project directory. Beware to exclude it from git commits!)

  2. run the main of the App class

Note
values that enables to distinguish between sponsors, speakers, staff and attendees must start with respectively: Sponsor stand, Speaker and Staff
Note
the column order of Yurplan CSV files may change from one year to another. You may need to update the code (AttendeeCsvParser and UnivCsvParser) to update the column number to parse.
Note
check that you got the correct number of badges.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published