From 77e3778c53f9cb6dedcbea19abefb04ddb35763d Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 21 Mar 2016 20:11:03 +0000 Subject: [PATCH] - working on ticket design (issue #18) --- public/assets/images/qrcode.png | Bin 0 -> 805 bytes public/assets/stylesheet/ticket.css | 102 +++++++ .../Partials/TicketDesignPreview.blade.php | 261 +----------------- .../ViewEvent/Partials/PDFTicket.blade.php | 110 +------- 4 files changed, 114 insertions(+), 359 deletions(-) create mode 100644 public/assets/images/qrcode.png create mode 100644 public/assets/stylesheet/ticket.css diff --git a/public/assets/images/qrcode.png b/public/assets/images/qrcode.png new file mode 100644 index 0000000000000000000000000000000000000000..92ad0cc81613f72999e913145900f13049b4b35a GIT binary patch literal 805 zcmeAS@N?(olHy`uVBq!ia0vp^(?FPm2}o{Eezp}zu_bxCyDVly!+n!@9pb%u6up| z_>(o^=Q{U1_q)#?AFb-sk?v$8{Ai}Y`>p?0X0h$KWnO$bw(@@ct)G%sTptm#X>Pl$ ztnYWPnf2^il=c7hwdZGogK|4z@A&w6K1WWU|L zerwlaf%7dDY7kvc#+S}n-njYK{fM=-nv&D7b^&)zAoz4iM(nlom7 zlPx*2@9MeDuUA<1K^zV?lw0?y?``uf`MJj5qjsi;u3e1k_#l(FSALxfUb1ZMKDT?D zksUJW{w@FCe;3!jo_5)8{#0a{ytE~k&sopz}?as`l zJ72r}&|V~e0`9j{YDK^6ju+ow>3g{>`RP2AfZB9<{&lKup^zt?B(e-gL#{_@ZBu6ERZ z--_br50f5j*&U%A{_f6U(TB)!H5=rFS#D{mJ7-2eH~&5H`{c(`FP&$?A}8*J&82g} zlUA)0o|)^n+uqFFxl9C@JfKk*ca!sHsMYs>=j}IYeUfm8B>pjg&n`ItuK4G_`I#!@jzI50~%;<9Q0`BoZr{%t;^3oPuqqZ!oL}3z6^J1 Usk(FknC=-oUHx3vIVCg!0Ncot%m4rY literal 0 HcmV?d00001 diff --git a/public/assets/stylesheet/ticket.css b/public/assets/stylesheet/ticket.css new file mode 100644 index 00000000..7e438f7a --- /dev/null +++ b/public/assets/stylesheet/ticket.css @@ -0,0 +1,102 @@ +.ticket { + /*page-break-after: always;*/ + padding: 10px; + border: 1px solid #000; + width: 700px; + margin: 0 auto; + margin-top: 20px; + background: #000; + position: relative; + height: 330px; + font-size: 12px; + color: #999; + border-left-width: 3px; + border-left-color: #000; + overflow: hidden; +} + +.ticket table { + width: 100%; +} + +.ticket h1 { + margin-bottom: 5px; + margin-top: 0px; +} + +.ticket hr { + border: none; + border-bottom: 1px solid #ccc; + margin: 5px 0; +} + +.ticket .barcode { + width: 150px; + height: 150px; + position: absolute; + left: 1px; + bottom: 85px; + overflow: hidden; + padding: 10px; + border: 1px solid #000; + border-left: none; + background-color: #fdfdfd; +} + +.ticket .barcode_vertical { + position: absolute; + right: -40px; + -webkit-transform: rotate(90deg); + top: 171px; +} + +.ticket .top_barcode { + margin-bottom: 15px; +} + +.ticket h4 { + font-size: 17px; + margin: 6px auto; + text-transform: uppercase; + color: #999; + +} + +.ticket .event_details, .ticket .attendee_details { + position: absolute; + top: 15px; +} + +.ticket .event_details { + left: 175px; + overflow: hidden; + max-width: 210px; + white-space: nowrap; + text-overflow: ellipsis; + top: 50px; +} + +.ticket .attendee_details { + left: 390px; + overflow: hidden; + max-width: 195px; + white-space: nowrap; + text-overflow: ellipsis; + top: 50px; +} + +.ticket .logo { + position: absolute; + right: 1px; + top: 1px; + border: 1px solid #000; + border-top: none; + border-right: none; + padding: 5px; + background-color: #fdfdfd; + text-align: center; +} + +.ticket .logo img { + max-width: 110px; +} \ No newline at end of file diff --git a/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php b/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php index 70041f5e..52067c21 100644 --- a/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php +++ b/resources/views/ManageEvent/Partials/TicketDesignPreview.blade.php @@ -106,14 +106,10 @@
-
- barcode -

Event

Demo Event

Organiser

Demo Organiser

Venue

Demo Location

Start Date / Time

Mar 18th 4:08PM

End Date / Time

@@ -132,259 +128,6 @@
- - - - 236434278 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - 236434278 - - - - - - - - - - + {!! HTML::image(asset('assets/images/qrcode.png')) !!}
\ No newline at end of file diff --git a/resources/views/Public/ViewEvent/Partials/PDFTicket.blade.php b/resources/views/Public/ViewEvent/Partials/PDFTicket.blade.php index 75c68809..d94e1700 100644 --- a/resources/views/Public/ViewEvent/Partials/PDFTicket.blade.php +++ b/resources/views/Public/ViewEvent/Partials/PDFTicket.blade.php @@ -9,6 +9,9 @@ + + {!! HTML::style(asset('assets/stylesheet/ticket.css')) !!} +