You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
4.0 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <v-row class="mx-0">
  3. <v-col cols="12" class="px-0 tw-pb-0 tw-mb-0">
  4. <h1
  5. :class="
  6. $vuetify.breakpoint.smAndUp
  7. ? 'neutrals--text text--darken-5 text-size-25'
  8. : 'neutrals--text text--darken-5 text-size-18'
  9. "
  10. >
  11. {{ $t("Intro") }}
  12. </h1>
  13. </v-col>
  14. <v-col
  15. v-if="
  16. (exhibition.frequency != null) ||
  17. exhibition.intVisitors ||
  18. exhibition.visitors ||
  19. exhibition.exhibitors ||
  20. exhibition.area
  21. "
  22. cols="12"
  23. class="px-0"
  24. >
  25. <hr
  26. v-if="$vuetify.breakpoint.mdAndUp"
  27. class="mt-0 tw-mb-[40px]"
  28. style="border: 1px solid #e5e5e5"
  29. />
  30. <v-row class="mx-0">
  31. <v-col cols="12" class="px-0">
  32. <div class="frequency">
  33. <div
  34. class="my-1 frequencyName neutrals--text text--darken-5"
  35. v-if="exhibition.frequency != null"
  36. >
  37. {{ $t("Frequency") }} : {{ exhibition.frequency }}
  38. </div>
  39. <div
  40. v-if="exhibition.intVisitors"
  41. class="my-1 internalExhibitors neutrals--text text--darken-5"
  42. >
  43. {{ $t("International Visitor Number :") }}
  44. {{ numberFormat(exhibition.intVisitors) }}
  45. </div>
  46. <div
  47. v-if="exhibition.visitors"
  48. class="my-1 frequencyVisitors neutrals--text text--darken-5"
  49. >
  50. {{ $t("Visitor Number :") }}
  51. {{ numberFormat(exhibition.visitors) }}
  52. </div>
  53. <div
  54. v-if="exhibition.exhibitors"
  55. class="my-1 frequencyExhibitors neutrals--text text--darken-5"
  56. >
  57. {{ $t("Exhibitor Number :") }}
  58. {{ numberFormat(exhibition.exhibitors) }}
  59. </div>
  60. <div
  61. v-if="exhibition.area"
  62. class="my-1 frequencyArea neutrals--text text--darken-5"
  63. >
  64. {{ $t("Event Space :") }} {{ exhibition.area.toFixed(2) }}
  65. </div>
  66. </div>
  67. </v-col>
  68. </v-row>
  69. <hr
  70. v-if="$vuetify.breakpoint.mdAndUp"
  71. class="tw-mt-[40px]"
  72. style="border: 1px solid #e5e5e5"
  73. />
  74. </v-col>
  75. <v-col cols="12" class="px-0 tw-mt-[18px]">
  76. <div
  77. class="neutrals--text text--darken-5"
  78. v-html="exhibition.about"
  79. style="text-align: justify"
  80. ></div>
  81. <br />
  82. <div
  83. v-if="exhibition.organizers"
  84. class="organizer neutrals--text text--darken-5"
  85. >
  86. <div style="font-weight: bold">{{ $t("Organizer Name :") }}</div>
  87. <div v-for="item in exhibition.organizers" :key="item.OrganizerID">
  88. {{ item.OrganizerName }}
  89. </div>
  90. </div>
  91. </v-col>
  92. </v-row>
  93. </template>
  94. <script>
  95. export default {
  96. name: "ExhibitionIntro",
  97. props: {
  98. exhibition: {
  99. type: Object,
  100. default: () => ({
  101. frequency: {},
  102. internalExhibitors: "",
  103. visitors: "",
  104. exhibitors: "",
  105. area: "",
  106. about: "",
  107. organizers: [],
  108. }),
  109. },
  110. },
  111. methods: {
  112. numberFormat: function (number) {
  113. return number; //.toLocaleString("en-US");
  114. },
  115. },
  116. };
  117. </script>
  118. <style lang="scss">
  119. @media screen and (min-width: 900px) {
  120. .frequency {
  121. display: grid;
  122. grid-template-areas:
  123. "frequencyName internalExhibitors"
  124. "frequencyVisitors frequencyExhibitors"
  125. "frequencyArea frequencyArea";
  126. }
  127. }
  128. @media only screen and (min-width: 0px) and (max-width: 899px) {
  129. .frequency {
  130. display: grid;
  131. background: #f8f8f8;
  132. border-radius: 15px;
  133. padding: 15px;
  134. grid-template-areas:
  135. "frequencyName"
  136. "internalExhibitors"
  137. "frequencyVisitors"
  138. "frequencyExhibitors"
  139. "frequencyArea";
  140. }
  141. .organizer {
  142. background: #f8f8f8;
  143. border-radius: 15px;
  144. padding: 15px;
  145. }
  146. }
  147. </style>