eventCard.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. @import "../../styles/variables";
  2. .event-card {
  3. &-cap {
  4. position: relative;
  5. overflow: hidden;
  6. }
  7. &-img {
  8. position: absolute;
  9. top: 0;
  10. bottom: 0;
  11. left: 0;
  12. right: 0;
  13. z-index: -2;
  14. img {
  15. position: absolute;
  16. top: 50%;
  17. left: 50%;
  18. bottom: 0;
  19. right: 0;
  20. transform: translate(-50%,-50%);
  21. width: 100%;
  22. @media (max-width: $xsmall) {
  23. width: auto;
  24. }
  25. }
  26. }
  27. &-title {
  28. position: relative;
  29. padding: 15rem 0 12rem;
  30. color: $color-white;
  31. .bg-black {
  32. z-index: -1;
  33. }
  34. h2 {
  35. font-size: 3rem;
  36. font-weight: $bold;
  37. }
  38. .country {
  39. font-size: 2rem;
  40. font-weight: $light;
  41. }
  42. .event-type {
  43. font-size: 2rem;
  44. margin-bottom: 1rem;
  45. }
  46. .date {
  47. text-align: right;
  48. p {
  49. display: inline-block;
  50. font-weight: $bold;
  51. font-size: 2rem;
  52. padding: 0 1rem;
  53. background: rgba($color-white, 0.7);
  54. color: $color-black;
  55. }
  56. span {
  57. &:first-child {
  58. font-weight: $normal;
  59. }
  60. &:last-child {
  61. font-size: 1.4rem;
  62. font-weight: $normal;
  63. }
  64. }
  65. }
  66. }
  67. &-info {
  68. display: flex;
  69. padding: 5rem 0;
  70. margin: 0 -1rem;
  71. .info-content {
  72. width: 50%;
  73. padding: 0 1rem;
  74. .overview {
  75. margin: 3rem 0;
  76. padding: 2rem 0;
  77. border-bottom: 1px solid $color-grey-light;
  78. border-top: 1px solid $color-grey-light;
  79. p {
  80. font-weight: $normal;
  81. font-size: 1.6rem;
  82. margin-top: 2rem;
  83. }
  84. img {
  85. width: 100%;
  86. }
  87. .event-video {
  88. video {
  89. width: 100%;
  90. height: auto;
  91. }
  92. }
  93. }
  94. p {
  95. font-size: 1.4rem;
  96. margin-bottom: 1.5rem;
  97. font-weight: $bold;
  98. text-align: justify;
  99. span {
  100. font-weight: $normal;
  101. font-size: 1.6rem;
  102. }
  103. }
  104. h3 {
  105. font-size: 2.4rem;
  106. font-weight: $bold;
  107. }
  108. .map-wrap {
  109. img {
  110. width: 100%;
  111. }
  112. }
  113. }
  114. .reg-form {
  115. width: 50%;
  116. padding: 0 1rem;
  117. .reg-form-event {
  118. .form {
  119. max-width: 25rem;
  120. margin: 5rem auto 0;
  121. border: 1px solid $color-mint;
  122. padding: 1.5rem;
  123. border-radius: 4px;
  124. }
  125. .form-block__select,
  126. .input-box,
  127. .reg-radio {
  128. width: 100%;
  129. margin-bottom: 2rem;
  130. }
  131. }
  132. }
  133. }
  134. @media (max-width: $medium) {
  135. &-title {
  136. padding: 10rem 0 8rem;
  137. }
  138. }
  139. @media (max-width: $small) {
  140. &-title {
  141. padding-bottom: 4rem;
  142. }
  143. &-info {
  144. flex-direction: column;
  145. }
  146. .info-content{
  147. margin-bottom: 5rem;
  148. }
  149. .info-content,
  150. .reg-form {
  151. width: 100%;
  152. }
  153. }
  154. }
  155. .price {
  156. margin: 3rem 0;
  157. max-width: 25rem;
  158. background: $color-grey-light;
  159. margin: 0 auto;
  160. text-align: center;
  161. padding: 1.5rem;
  162. border-radius: 4px;
  163. h3 {
  164. font-size: 2.4rem;
  165. font-weight: $bold;
  166. margin-bottom: 2rem;
  167. }
  168. .cost {
  169. display: flex;
  170. justify-content: space-between;
  171. align-items: center;
  172. h6 {
  173. font-weight: 400;
  174. font-size: 1.6rem;
  175. }
  176. span {
  177. color: $color-blue;
  178. font-size: 2.4rem;
  179. font-weight: $bold;
  180. }
  181. }
  182. }