diploma.blade.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. </head>
  6. <style>
  7. * {
  8. box-sizing: border-box;
  9. margin: 0;
  10. padding: 0;
  11. }
  12. body {
  13. font-family: DejaVu Sans, sans-serif;
  14. position: relative;
  15. /*height: 100vh;*/
  16. }
  17. .certificate {
  18. position: relative;
  19. /*border: 40px solid #383bff;*/
  20. height: 92.85%;
  21. }
  22. .title {
  23. text-align: center;
  24. font-size: 40px;
  25. margin-top: 400px;
  26. text-transform: uppercase;
  27. color: #4d61a7;
  28. }
  29. .image-top {
  30. position: absolute;
  31. display: block;
  32. transform: scale(0.3);
  33. top: -350px;
  34. left: -350px;
  35. }
  36. .image-bottom-right {
  37. position: absolute;
  38. transform: scale(0.5);
  39. bottom: 730px;
  40. right: 1430px;
  41. }
  42. .event {
  43. margin: 0 auto;
  44. text-align: center;
  45. width: 50%;
  46. font-size: 14px;
  47. margin-top: 20px;
  48. color: #4d61a7;
  49. }
  50. .sub-title {
  51. margin-top: 30px;
  52. text-align: center;
  53. color: #4d61a7;
  54. }
  55. .name {
  56. text-align: center;
  57. color: #4d61a7;
  58. margin-top: 20px;
  59. }
  60. .competition {
  61. color: #4d61a7;
  62. text-align: center;
  63. margin-top: 20px;
  64. font-size: 14px;
  65. }
  66. .footer {
  67. display: flex;
  68. text-transform: uppercase;
  69. font-size: 12px;
  70. }
  71. .city {
  72. /*padding-top: 350px;*/
  73. padding-top: 70%;
  74. color: #4d61a7;
  75. margin-left: 100px;
  76. }
  77. .date {
  78. padding-top: 70%;
  79. color: #4d61a7;
  80. margin-left: 400px;
  81. }
  82. .logo {
  83. position: absolute;
  84. transform: scale(0.3);
  85. top: -130px;
  86. right: 550px;
  87. }
  88. </style>
  89. <body>
  90. <div class="certificate">
  91. @switch($certificate->position)
  92. @case(1)
  93. <img src="assets/img/gold.png" class="image-top" alt="">
  94. @break
  95. @case(2)
  96. <img src="assets/img/silver.png" class="image-top" alt="">
  97. @break
  98. @case(3)
  99. <img src="assets/img/bronze.png" class="image-top" alt="">
  100. @break
  101. @endswitch
  102. <img src="assets/img/logo.png" class="logo" alt="">
  103. <h2 class="title">
  104. Диплом
  105. </h2>
  106. <p class="event">
  107. {{ $certificate->title }}
  108. </p>
  109. <h4 class="sub-title">Конкурсант</h4>
  110. <h3 class="name">{{ $certificate->name }}</h3>
  111. <p class="competition">Компетенция: {{ $certificate->competence }}</p>
  112. <div class="footer">
  113. <p class="city">г. {{ $certificate->city }}</p>
  114. <p class="date">{{ $certificate->before_date }} - {{ $certificate->after_date }} {{ $certificate->month }} {{ $certificate->year }} год</p>
  115. </div>
  116. <img src="assets/img/footer.png" class="image-bottom-right" alt="">
  117. </div>
  118. </body>
  119. </html>