Teenager.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <script setup>
  2. import { ref, reactive } from "vue";
  3. import { useI18n } from "vue-i18n";
  4. const { t } = useI18n();
  5. const breadcrumbs = reactive([
  6. {
  7. title: "home.title",
  8. disabled: false,
  9. href: "/",
  10. },
  11. {
  12. title: "navbar.craft_groups",
  13. disabled: true,
  14. },
  15. {
  16. title: "青年工藝",
  17. disabled: true,
  18. },
  19. ]);
  20. const testData = [
  21. {
  22. title:
  23. "臺灣工藝學習平台獎助博碩士生研撰臺灣工藝相關研究論文作業要點",
  24. date: "2023.08.26",
  25. category: "工藝政策",
  26. introduction:
  27. "臺灣工藝學習平台為提升臺灣工藝文化之主體性及營造工藝學領域發展環境,鼓勵國內大學校院培養工藝研究人才,發表研究成果,促使工藝升級、文化深耕,並建構相關資源支持體系,特訂定本要點,獎助內容如下:",
  28. },
  29. {
  30. title: "博碩士生研撰臺灣工藝相關研究論文獎助申請,申請至6月30日止",
  31. date: "2023.06.07",
  32. category: "獎助申請",
  33. introduction:
  34. "國立臺灣工藝硏究發展中心溈提升臺灣工藝文化之主體性及營造工藝學領域發展環境,鼓勵國內大學校院培養工藝研究人才,發表研究成果,促使工藝升級、文化深耕,並建構相關資源支持體系,獎助國內各大學院校撰寫有闕工藝相關硏究學位論文之在學博士班、碩士班學生,最高#新臺幣12萬元",
  35. },
  36. {
  37. title:
  38. "2024學年度「傅爾布萊特一臺灣文化部藝文專業人才獎助計畫」即日開始徵件",
  39. date: "2023.08.31",
  40. category: "獎助申請",
  41. introduction:
  42. "2024學年度「傅爾布萊特一臺灣文化部藝文專業人才獎助計畫」即日起開始徵件,甄選對象含藝文行政、管理、技術、策展、評論人員,薦送名額為3人,申請截止日期為2023年10月31日,有志前往美國機構交流的藝文工作者,請務必把握機會申請.",
  43. },
  44. {
  45. title: "2023臺北設計獎",
  46. date: "2023.08.31",
  47. category: "競賽資訊",
  48. introduction:
  49. "2023臺北設計獎(Taipei Design Awardy總獎金高達423萬元,其中「工業設計類小、「視覺傳達設計類」、「公共空間設計類」三大類別已於5月20日開始徵件。今年特別新增全新獎項「臺北城市設計",
  50. },
  51. ];
  52. const categoryList = reactive([
  53. {
  54. title: "總覽",
  55. },
  56. {
  57. title: "工藝政策",
  58. },
  59. {
  60. title: "競賽資訊",
  61. },
  62. {
  63. title: "校園扎根",
  64. },
  65. {
  66. title: "策展補助",
  67. },
  68. {
  69. title: "獎助申請",
  70. },
  71. {
  72. title: "重要訊息",
  73. },
  74. ]);
  75. </script>
  76. <template>
  77. <v-breadcrumbs :items="breadcrumbs" divider="/" class="mt-10 p-0">
  78. <template v-slot:title="{ item }">
  79. {{ t(item.title) }}
  80. </template>
  81. </v-breadcrumbs>
  82. <div class="d-flex flex-column flex-sm-row align-center justify-end title">
  83. <div class="search">
  84. <span>
  85. <input
  86. v-model="searchInput"
  87. type="text"
  88. @keyup.enter="search()"
  89. :placeholder="t('keyword_search')"
  90. />
  91. <button @click="search()">
  92. <img
  93. src="@/assets/img/news/news-search-icon.png"
  94. alt="臺灣工藝學習平台"
  95. />
  96. </button>
  97. </span>
  98. <div
  99. v-if="searchError"
  100. class="d-flex justify-center align-center error me-4"
  101. >
  102. <v-icon color="primary" icon="mdi-alert" class="me-2"></v-icon>
  103. {{ t("no_found") }}
  104. </div>
  105. </div>
  106. </div>
  107. <v-row>
  108. <v-col sm="2" cols="12" class="px-0">
  109. <ul class="btn-list">
  110. <li v-for="(item, index) in categoryList" :key="index" class="mx-3">
  111. <v-btn class="mb-5" variant="outlined">
  112. {{ item.title }}
  113. </v-btn>
  114. </li>
  115. </ul>
  116. </v-col>
  117. <v-col sm="10" cols="12">
  118. <!-- <ul class="article-list">
  119. <li
  120. v-for="(item, index) in testData"
  121. :key="index"
  122. class="post-item pa-5"
  123. rounded="xl"
  124. >
  125. <section class="d-flex">
  126. <p class="category mb-5">
  127. <span></span>
  128. {{ item.category }}
  129. </p>
  130. <p class="ms-5">
  131. {{ moment(`${item.date}`).format("YYYY-MM-DD") }}
  132. </p>
  133. </section>
  134. <v-card
  135. variant="outlined"
  136. class="d-flex flex-md-row flex-column align-center pa-3 pa-md-5"
  137. >
  138. <v-row class="align-center">
  139. <v-col cols="12">
  140. <h3>{{ item.title }}</h3>
  141. <ul>
  142. <li class="d-flex align-center mt-3">
  143. <p class="mb-0 ms-3">
  144. {{ item.introduction }}
  145. </p>
  146. </li>
  147. </ul>
  148. </v-col>
  149. </v-row>
  150. </v-card>
  151. </li>
  152. </ul> -->
  153. </v-col>
  154. </v-row>
  155. </template>
  156. <style lang="scss" scoped>
  157. .btn-list {
  158. display: grid;
  159. grid-template-columns: repeat(auto-fit, minmax(6.875em, max-content));
  160. justify-content: center;
  161. padding: initial;
  162. li {
  163. list-style-type: none;
  164. }
  165. .v-btn {
  166. width: 6.25em;
  167. @media (max-width: 600px) {
  168. width: 9.375em;
  169. }
  170. }
  171. }
  172. .post-item {
  173. margin-bottom: 1.875em;
  174. }
  175. </style>