diff --git a/commands/create-flyer.rb b/commands/create-flyer.rb index cda3081b..2b636816 100644 --- a/commands/create-flyer.rb +++ b/commands/create-flyer.rb @@ -7,16 +7,6 @@ description 'Create SVG file with content of given event' class CreateFlyer < ::Nanoc::CLI::CommandRunner require 'rqrcode_png' - # Monkey-patch qr generator - module RQRCodePNG - class Sequence - def border_width() - # No boundary around image - 0 - end - end - end - def get_qr(data) qr = nil size = 7 diff --git a/content/_data/flyer.svg b/content/_data/flyer.svg index 899f5f0a..02630c93 100644 --- a/content/_data/flyer.svg +++ b/content/_data/flyer.svg @@ -46,9 +46,9 @@ inkscape:window-height="838" id="namedview551" showgrid="false" - inkscape:zoom="0.79554925" - inkscape:cx="162.21481" - inkscape:cy="731.4535" + inkscape:zoom="0.56253827" + inkscape:cx="12.294723" + inkscape:cy="528.73359" inkscape:window-x="0" inkscape:window-y="27" inkscape:window-maximized="1" @@ -56,18 +56,61 @@ units="mm" inkscape:document-units="mm" />Vortragsreihe des CCCS Neckarstraße 168b70190 Stuttgart${date}${speakers}: ${title}Eintritt frei, um einen freiwilligen Unkostenbeitrag wird gebeten.${calendar.4}${calendar.5}${calendar.5} + inkscape:tiled-clone-of="#g4295" + xlink:href="#g4295" + transform="translate(371.92698,526.3535)" + id="use5244" + width="744.09448" + height="1052.3622" /> \ No newline at end of file diff --git a/lib/qrpatch.rb b/lib/qrpatch.rb new file mode 100644 index 00000000..cb472323 --- /dev/null +++ b/lib/qrpatch.rb @@ -0,0 +1,11 @@ +require 'rqrcode_png' + +# Monkey-patch qr generator +module RQRCodePNG + class Sequence + def border_width() + # No boundary around image + 0 + end + end +end