|
@@ -0,0 +1,102 @@
|
|
|
+<template>
|
|
|
+ <div class="search-page container">
|
|
|
+ <Breadcrumb :parents="[]" :cur-route="{ name: 'Search' }" />
|
|
|
+
|
|
|
+ <div class="search-page-title">Search<span>378 results</span></div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="search-page-search"
|
|
|
+ data-aria-interaction-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-description="You've reached the Search interactive section, please use the tab key to go through the content."
|
|
|
+ >
|
|
|
+ <input />
|
|
|
+ <div class="search-page-search__btn">Search</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <ul
|
|
|
+ class="search-page-tabbar"
|
|
|
+ data-aria-viewport-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-description="You've reached the content area of the Search results page, please use the tab key to navigate through the content."
|
|
|
+ >
|
|
|
+ <li
|
|
|
+ v-for="(item, idx) in TABBAR.slice(0, showMore ? 7 : TABBAR.length)"
|
|
|
+ :key="item.id"
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="Link"
|
|
|
+ :aria-description="item.name"
|
|
|
+ :class="{ active: idx === activeTabbar }"
|
|
|
+ >
|
|
|
+ <p>{{ item.name }}</p>
|
|
|
+ <p>(33)</p>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <li
|
|
|
+ v-if="showMore"
|
|
|
+ class="search-page-tabbar__more"
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="Button"
|
|
|
+ aria-description="More"
|
|
|
+ >
|
|
|
+ <p @click="showMore = false">
|
|
|
+ More<SvgIcon
|
|
|
+ name="more"
|
|
|
+ color="var(--gray2-text-color)"
|
|
|
+ style="width: 10px; height: 10px"
|
|
|
+ />
|
|
|
+ </p>
|
|
|
+ <p />
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <ul class="search-page-list">
|
|
|
+ <li class="search-page-item">
|
|
|
+ <ElImage
|
|
|
+ src="https://en.capitalmuseum.org.cn/data/Exhibitions/Current/2.jpg"
|
|
|
+ />
|
|
|
+ <div class="search-page-item__inner">
|
|
|
+ <h3>Splendid Central Axis of Beijing</h3>
|
|
|
+ <p>
|
|
|
+ Starting from the planning and construction of the Central Axis of
|
|
|
+ the Capital Dadu of the Yuan Dynasty and with the ongoing
|
|
|
+ inheritance and carrying forward of past achievements over the later
|
|
|
+ dynasties, the Central Axis of Beijing has finally been made such a
|
|
|
+ magnificent presence as it stands now, with originality and
|
|
|
+ creativeness to be found everywhere along the Axis.
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <div class="search-page__pagination">
|
|
|
+ <Pagination :total="100" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+import Breadcrumb from "@/components/Breadcrumb/index.vue";
|
|
|
+import Pagination from "@/components/Pagination/index.vue";
|
|
|
+import { ref } from "vue";
|
|
|
+
|
|
|
+const TABBAR = [
|
|
|
+ { id: 1, name: "All Results", cut: "All" },
|
|
|
+ { id: 2, name: "Visit", cut: "Visit" },
|
|
|
+ { id: 3, name: "Exhibitions", cut: "Exhibitions" },
|
|
|
+ { id: 4, name: "Collections", cut: "Collections" },
|
|
|
+ { id: 5, name: "Learn & Engage", cut: "Learn" },
|
|
|
+ { id: 6, name: "Research & Publications", cut: "Research" },
|
|
|
+ { id: 7, name: "Join & Support", cut: "Join" },
|
|
|
+ { id: 8, name: "About", cut: "About" },
|
|
|
+ { id: 9, name: "Events", cut: "Events" },
|
|
|
+ { id: 10, name: "Terms of Use", cut: "Terms" },
|
|
|
+ { id: 11, name: "Employment", cut: "Employment" },
|
|
|
+];
|
|
|
+const showMore = ref(true);
|
|
|
+const activeTabbar = ref(0);
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+@import "./index.scss";
|
|
|
+</style>
|