From d09e669ccace582bcc08a5a26ffabd15db54e831 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Mon, 29 Sep 2025 11:45:43 -0400 Subject: [PATCH] Create jumpstart_stickers_template.rb --- .../templates/jumpstart_stickers_template.rb | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 app/lib/snail_mail/components/templates/jumpstart_stickers_template.rb diff --git a/app/lib/snail_mail/components/templates/jumpstart_stickers_template.rb b/app/lib/snail_mail/components/templates/jumpstart_stickers_template.rb new file mode 100644 index 0000000..c03c6cd --- /dev/null +++ b/app/lib/snail_mail/components/templates/jumpstart_stickers_template.rb @@ -0,0 +1,60 @@ +# frozen_string_literal: true + +module SnailMail + module Components + module Templates + class JumpstartStickersTemplate < TemplateBase + def self.template_name + "jumpstart Zorp" + end + + def self.template_description + "awawawawa" + end + + def self.show_on_single? = true + + + def view_template + image( + image_path("kestrel-mail-heidi.png"), + at: [107, 216], + width: 305, + ) + + # Render return address + render_return_address(10, 278, 260, 70, size: 10) + render_destination_address( + 126, + 180, + 266, + 67, + size: 16, + valign: :bottom, + align: :left + ) + + + + # Render postal elements + render_imb(124, 180-67-5, 200) + render_qr_code(5, 65, 60) + render_letter_id(10, 19, 10) + + bounding_box [10, 160], + width: 220, + height: 40, + valign: :bottom do + font_size 8 + font_size(10) { font("comic") { text "it's here!" } } + text "contents:", style: :bold + text letter.rubber_stamps || "" + end + + render_postage + end + + end + end + end +end