templates/pdf/certificate.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <style type="text/css">
  6.             /******************** ANTON /********************/
  7.             @font-face {
  8.                 font-family: 'Anton';
  9.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Anton/Anton-Regular.ttf');
  10.                 font-weight: 400;
  11.                 font-style: normal;
  12.             }
  13.             /******************** ANTON /********************/
  14.             /******************** ROBOTO ********************/
  15.             @font-face {
  16.                 font-family: 'Roboto';
  17.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Roboto/Roboto-Regular.ttf');
  18.                 font-weight: 400;
  19.                 font-style: normal;
  20.             }
  21.             @font-face {
  22.                 font-family: 'Roboto';
  23.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Roboto/Roboto-Bold.ttf');
  24.                 font-weight: 700;
  25.                 font-style: normal;
  26.             }
  27.             @font-face {
  28.                 font-family: 'Roboto';
  29.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Roboto/Roboto-Italic.ttf');
  30.                 font-weight: 400;
  31.                 font-style: italic;
  32.             }
  33.             @font-face {
  34.                 font-family: 'Roboto';
  35.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Roboto/Roboto-BoldItalic.ttf');
  36.                 font-weight: 700;
  37.                 font-style: italic;
  38.             }
  39.             /******************** ROBOTO ********************/
  40.             /******************** GRADUATE ********************/
  41.             @font-face {
  42.                 font-family: 'Graduate';
  43.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Graduate/Graduate-Regular.ttf');
  44.                 font-weight: 400;
  45.                 font-style: normal;
  46.             }
  47.             /******************** GRADUATE ********************/
  48.             /******************** QUICKSAND ********************/
  49.             @font-face {
  50.                 font-family: 'Quicksand';
  51.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Quicksand/Quicksand-Regular.ttf');
  52.                 font-weight: 400;
  53.                 font-style: normal;
  54.             }
  55.             @font-face {
  56.                 font-family: 'Quicksand';
  57.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Quicksand/Quicksand-Bold.ttf');
  58.                 font-weight: 700;
  59.                 font-style: normal;
  60.             }
  61.             @font-face {
  62.                 font-family: 'Quicksand';
  63.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Quicksand/Quicksand-Italic.ttf');
  64.                 font-weight: 400;
  65.                 font-style: italic;
  66.             }
  67.             @font-face {
  68.                 font-family: 'Quicksand';
  69.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Quicksand/Quicksand-BoldItalic.ttf');
  70.                 font-weight: 700;
  71.                 font-style: italic;
  72.             }
  73.             /******************** QUICKSAND ********************/
  74.             /******************** OSTRICH SANS ********************/
  75.             @font-face {
  76.                 font-family: 'ostrichsans_black';
  77.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OstrichSans/OstrichSans-Regular.ttf');
  78.                 font-weight: 400;
  79.                 font-style: normal;
  80.             }
  81.             @font-face {
  82.                 font-family: 'ostrichsans_black';
  83.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OstrichSans/OstrichSans-Black.ttf');
  84.                 font-weight: 700;
  85.                 font-style: normal;
  86.             }
  87.             /******************** OSTRICH SANS ********************/
  88.             /******************** OPEN SANS ********************/
  89.             /*** REGULAR ***/
  90.             @font-face {
  91.                 font-family: "opensans";
  92.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-Regular.ttf');
  93.                 font-weight: 400;
  94.                 font-style: normal;
  95.             }
  96.             @font-face {
  97.                 font-family: 'opensans';
  98.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-Bold.ttf');
  99.                 font-weight: 700;
  100.                 font-style: normal;
  101.             }
  102.             @font-face {
  103.                 font-family: 'opensans';
  104.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-Italic.ttf');
  105.                 font-weight: 400;
  106.                 font-style: italic;
  107.             }
  108.             @font-face {
  109.                 font-family: 'opensans';
  110.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-BoldItalic.ttf');
  111.                 font-weight: 700;
  112.                 font-style: italic;
  113.             }
  114.             /*** ITALIC ***/
  115.             @font-face {
  116.                 font-family: 'opensans_italic';
  117.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-Italic.ttf');
  118.                 font-weight: 400;
  119.                 font-style: normal;
  120.             }
  121.             @font-face {
  122.                 font-family: 'opensans_italic';
  123.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-BoldItalic.ttf');
  124.                 font-weight: 700;
  125.                 font-style: normal;
  126.             }
  127.             @font-face {
  128.                 font-family: 'opensans_italic';
  129.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-Italic.ttf');
  130.                 font-weight: 400;
  131.                 font-style: italic;
  132.             }
  133.             @font-face {
  134.                 font-family: 'opensans_italic';
  135.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-BoldItalic.ttf');
  136.                 font-weight: 700;
  137.                 font-style: italic;
  138.             }
  139.             /*** SEMIBOLD ***/
  140.             @font-face {
  141.                 font-family: "opensans_semibold";
  142.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-Regular.ttf');
  143.                 font-weight: 700;
  144.                 font-style: normal;
  145.             }
  146.             @font-face {
  147.                 font-family: "opensans_semibold";
  148.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-Bold.ttf');
  149.                 font-weight: 700;
  150.                 font-style: normal;
  151.             }
  152.             @font-face {
  153.                 font-family: "opensans_semibold";
  154.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-BoldItalic.ttf');
  155.                 font-weight: 400;
  156.                 font-style: italic;
  157.             }
  158.             @font-face {
  159.                 font-family: 'opensans_semibold';
  160.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OpenSans/OpenSans-BoldItalic.ttf');
  161.                 font-weight: 700;
  162.                 font-style: italic;
  163.             }
  164.             /******************** OPEN SANS ********************/
  165.             /******************** CAVIAR DREAMS ********************/
  166.             /*** REGULAR ***/
  167.             @font-face {
  168.                 font-family: 'caviar';
  169.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-Regular.ttf');
  170.                 font-weight: 400;
  171.                 font-style: normal;
  172.             }
  173.             @font-face {
  174.                 font-family: 'caviar';
  175.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-Bold.ttf');
  176.                 font-weight: 700;
  177.                 font-style: normal;
  178.             }
  179.             @font-face {
  180.                 font-family: 'caviar';
  181.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-Italic.ttf');
  182.                 font-weight: 400;
  183.                 font-style: italic;
  184.             }
  185.             @font-face {
  186.                 font-family: 'caviar';
  187.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-BoldItalic.ttf');
  188.                 font-weight: 700;
  189.                 font-style: italic;
  190.             }
  191.             /*** BOLD ***/
  192.             @font-face {
  193.                 font-family: 'caviar_bold';
  194.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-Bold.ttf');
  195.                 font-weight: 400;
  196.                 font-style: normal;
  197.             }
  198.             @font-face {
  199.                 font-family: 'caviar_bold';
  200.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-Bold.ttf');
  201.                 font-weight: 700;
  202.                 font-style: normal;
  203.             }
  204.             @font-face {
  205.                 font-family: 'caviar_bold';
  206.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-BoldItalic.ttf');
  207.                 font-weight: 400;
  208.                 font-style: italic;
  209.             }
  210.             @font-face {
  211.                 font-family: 'caviar_bold';
  212.                 src: url('https://cdn.eadplataforma.app/assets/fonts/CaviarDreams/CaviarDreams-BoldItalic.ttf');
  213.                 font-weight: 700;
  214.                 font-style: italic;
  215.             }
  216.             /******************** CAVIAR DREAMS ********************/
  217.             /******************** SKRANJI ********************/
  218.             @font-face {
  219.                 font-family: 'Skranji';
  220.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Skranji/Skranji-Regular.ttf');
  221.                 font-weight: 400;
  222.                 font-style: normal;
  223.             }
  224.             @font-face {
  225.                 font-family: 'Skranji';
  226.                 src: url('https://cdn.eadplataforma.app/assets/fonts/Skranji/Skranji-Bold.ttf');
  227.                 font-weight: 700;
  228.                 font-style: normal;
  229.             }
  230.             /******************** SKRANJI ********************/
  231.             /******************** DANCING SCRIPT ********************/
  232.             @font-face {
  233.                 font-family: 'dancingScript';
  234.                 src: url('https://cdn.eadplataforma.app/assets/fonts/DancingScript/DancingScript-Regular.ttf');
  235.                 font-weight: 400;
  236.                 font-style: normal;
  237.             }
  238.             @font-face {
  239.                 font-family: 'dancingScript';
  240.                 src: url('https://cdn.eadplataforma.app/assets/fonts/DancingScript/DancingScript-Bold.ttf');
  241.                 font-weight: 700;
  242.                 font-style: normal;
  243.             }
  244.             /******************** DANCING SCRIPT ********************/
  245.             /******************** OLD SCRIPT ********************/
  246.             @font-face {
  247.                 font-family: 'Old Script';
  248.                 src: url('https://cdn.eadplataforma.app/assets/fonts/OldScript/OldScript-Regular.ttf');
  249.                 font-weight: 400;
  250.                 font-style: normal;
  251.             }
  252.             /******************** OLD SCRIPT ********************/
  253.         </style>
  254.         <style type="text/css">
  255.             body, html, .certificate{ 
  256.                 padding:0; 
  257.                 margin: 0; 
  258.             }
  259.             .certificate{ 
  260.                 background-color: {{ frontColor }}
  261.             }
  262.             .first-page {
  263.                 margin: 0in;
  264.                 height: 813px !important;
  265.                 width: 1140px;
  266.                 position: absolute;
  267.             }
  268.         </style>
  269.     </head>
  270.     <body>
  271.         <div class="certificate first-page">
  272.             {% if frontImage %}
  273.                 <img src="{{ frontImage }}" style="width: 1140px !important;height: 813px !important;">
  274.             {% endif %}
  275.             {% for obj in frontObjects %}
  276.                 {% if obj.type == 'textbox' %}
  277.                     <p style="
  278.                         transform: scale({{ obj.flipX }}, {{ obj.flipY }});
  279.                         position: absolute;
  280.                         top: {{ obj.top }}px !important;
  281.                         left: {{ obj.left }}px !important;
  282.                         width: {{ obj.width }}px;
  283.                         height: {{ obj.height }}px;
  284.                         margin: 0;
  285.                         padding: 0;
  286.                         color: {{ obj.fill }};
  287.                         font-style: {{ obj.fontStyle }};
  288.                         font-weight: {{ obj.fontWeight }};
  289.                         font-family: {{ obj.fontFamily }};
  290.                         font-size: {{ obj.fontSize }}px;
  291.                         text-align: {{ obj.textAlign }};
  292.                         line-height: 0.8;">
  293.                         {{ obj.text|raw }}
  294.                     </p>
  295.                 {% elseif obj.type == 'image' %}
  296.                     <img src="{{ obj.src }}"
  297.                          style="
  298.                                 transform: scale({{ obj.flipX }}, {{ obj.flipY }});
  299.                                 position: absolute;
  300.                                 top: {{ obj.top }}px !important;
  301.                                 left: {{ obj.left }}px !important;
  302.                                 width: {{ obj.width }}px !important;
  303.                                 height: {{ obj.height }}px !important;
  304.                     ">
  305.                 {% endif %}
  306.             {% endfor %}
  307.         </div>
  308.         {% if backImage or backObjects|length > 0  %}
  309.             <div style="page-break-after:always;"></div>
  310.             <div class="first-page" {% if backColor %} style="background-color: {{ backColor }} !important;" {% endif %}>
  311.                 {% if backImage %}
  312.                     <img src="{{ backImage }}" style="width: 1140px !important;height: 813px !important;">
  313.                 {% endif %}
  314.                 {% for obj in backObjects %}
  315.                     {% if obj.type == 'textbox' %}
  316.                         <p style="
  317.                             transform: scale({{ obj.flipX }}, {{ obj.flipY }});
  318.                             position: absolute;
  319.                             top: {{ obj.top }}px !important;
  320.                             left: {{ obj.left }}px !important;
  321.                             width: {{ obj.width }}px;
  322.                             height: {{ obj.height }}px;
  323.                             margin: 0;
  324.                             padding: 0;
  325.                             color: {{ obj.fill }};
  326.                             font-style: {{ obj.fontStyle }};
  327.                             font-weight: {{ obj.fontWeight }};
  328.                             font-family: {{ obj.fontFamily }};
  329.                             font-size: {{ obj.fontSize }}px;
  330.                             text-align: {{ obj.textAlign }};
  331.                             line-height: 0.8;">
  332.                             {{ obj.text|raw }}
  333.                         </p>
  334.                     {% elseif obj.type == 'image' %}
  335.                         <img src="{{ obj.src }}"
  336.                              style="
  337.                                     transform: scale({{ obj.flipX }}, {{ obj.flipY }});
  338.                                     position: absolute;
  339.                                     top: {{ obj.top }}px !important;
  340.                                     left: {{ obj.left }}px !important;
  341.                                     width: {{ obj.width }}px !important;
  342.                                     height: {{ obj.height }}px !important;
  343.                         ">
  344.                     {% endif %}
  345.                 {% endfor %}
  346.             </div>
  347.         {% endif %}
  348.     </body>
  349. </html>