|
@@ -1,20 +1,26 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="About">
|
|
|
- <div class="banWrapper"
|
|
|
+ <div
|
|
|
+ class="banWrapper"
|
|
|
data-aria-viewport-area
|
|
|
tabindex="0"
|
|
|
aria-label
|
|
|
aria-description="You've reached the banner area of the About page; this page has one image; please use the tab key to go through the content."
|
|
|
>
|
|
|
- <div class="ban aria-theme-independent"
|
|
|
+ <div
|
|
|
+ class="ban aria-theme-independent"
|
|
|
tabindex="0"
|
|
|
aria-label="Image"
|
|
|
aria-description="About"
|
|
|
></div>
|
|
|
</div>
|
|
|
- <div class="pos" data-aria-viewport-area tabindex="0"
|
|
|
- aria-label aria-description="You've reached the path area; this area has two URLs; please use the tab key to go through the content."
|
|
|
+ <div
|
|
|
+ class="pos"
|
|
|
+ data-aria-viewport-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-label
|
|
|
+ aria-description="You've reached the path area; this area has two URLs; please use the tab key to go through the content."
|
|
|
>
|
|
|
<span class="pos1" tabindex="0">Your Position: </span>
|
|
|
<Router-link
|
|
@@ -34,13 +40,26 @@
|
|
|
About>
|
|
|
</Router-link>
|
|
|
</div>
|
|
|
- <div class="director" data-aria-viewport-area tabindex="0"
|
|
|
- aria-label aria-description="You've reached the From the Director section, please use the tab key to navigate through the content."
|
|
|
+ <div
|
|
|
+ class="director"
|
|
|
+ data-aria-viewport-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-label
|
|
|
+ aria-description="You've reached the From the Director section, please use the tab key to navigate through the content."
|
|
|
>
|
|
|
- <div v-if="themeIdx === 0" class="director-title-for-focus" tabindex="0" aria-description="From the Director"></div>
|
|
|
- <div v-if="themeIdx !== 0" class="director-title-visible" tabindex="0">From the Director</div>
|
|
|
+ <div
|
|
|
+ v-if="themeIdx === 0"
|
|
|
+ class="director-title-for-focus"
|
|
|
+ tabindex="0"
|
|
|
+ aria-description="From the Director"
|
|
|
+ ></div>
|
|
|
+ <div v-if="themeIdx !== 0" class="director-title-visible" tabindex="0">
|
|
|
+ From the Director
|
|
|
+ </div>
|
|
|
<div class="text-wrapper">
|
|
|
- <p tabindex="0">Welcome to the website of the Capital Museum of China.</p>
|
|
|
+ <p tabindex="0">
|
|
|
+ Welcome to the website of the Capital Museum of China.
|
|
|
+ </p>
|
|
|
<p tabindex="0">
|
|
|
We are looking forward to your visit. The Capital Museum is a palace
|
|
|
of Beijing culture. Its collections relate to the long development of
|
|
@@ -69,60 +88,61 @@
|
|
|
Read More
|
|
|
</p>
|
|
|
</div>
|
|
|
- <div class="history" data-aria-viewport-area tabindex="0"
|
|
|
- aria-label aria-description="You've reached the History section, please use the tab key to go through the content."
|
|
|
+ <div
|
|
|
+ class="history"
|
|
|
+ data-aria-viewport-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-label
|
|
|
+ aria-description="You've reached the History section, please use the tab key to go through the content."
|
|
|
>
|
|
|
- <div v-if="themeIdx === 0" class="history-title-for-focus" tabindex="0" aria-description="History"></div>
|
|
|
- <div v-if="themeIdx !== 0" class="history-title-visible" tabindex="0">History</div>
|
|
|
- <div class="text-wrapper" >
|
|
|
- <p tabindex="0">
|
|
|
- <span
|
|
|
- style="font-family: arial, helvetica, sans-serif; font-size: 14px"
|
|
|
- >
|
|
|
- The Capital Museum, located in the Confucius Temple, was prepared
|
|
|
- in 1953 and formally opened in 1981.
|
|
|
- </span>
|
|
|
- </p>
|
|
|
- <p><br /></p>
|
|
|
- <p tabindex="0">
|
|
|
- <span
|
|
|
- style="font-family: arial, helvetica, sans-serif; font-size: 14px"
|
|
|
- >
|
|
|
- As a major cultural construction project in Beijing in the "10th
|
|
|
- Five-Year Plan", the new complex of the Capital Museum, approved by
|
|
|
- the Beijing Municipal Government in 1999, further approved by the
|
|
|
- State Council after being submitted by the National Development and
|
|
|
- Reform Commission in 2001, commenced its construction in December
|
|
|
- 2001.
|
|
|
- </span>
|
|
|
- </p>
|
|
|
- <p><br /></p>
|
|
|
- <p tabindex="0">
|
|
|
- <span
|
|
|
- style="font-family: arial, helvetica, sans-serif; font-size: 14px"
|
|
|
- >
|
|
|
- The new Capital Museum had the trial operation in December 2005 and
|
|
|
- was officially opened on May 18, 2006. With its magnificent
|
|
|
- architecture, abundant exhibitions, advanced technology and complete
|
|
|
- functions, the Capital Museum contributes to Beijing's standing as a
|
|
|
- famous historical and cultural city, a cultural centre and an
|
|
|
- international metropolis and ranks among the first class museums
|
|
|
- both at home and abroad and is regarded as one of the first "State
|
|
|
- First-class Museums" in 2008.
|
|
|
- </span>
|
|
|
- </p>
|
|
|
+ <div class="hisMain">
|
|
|
+ <div class="hisTitle">History</div>
|
|
|
+ <div class="hisRowBox">
|
|
|
+ <div class="hisRow" v-for="item in hisData" :key="item.id">
|
|
|
+ <img :src="`/data/About/his/${item.id}.png`" alt="" />
|
|
|
+ <div class="hisHover" @click="hisInfo = item">
|
|
|
+ <div class="hisHoverTitle" v-html="item.title"></div>
|
|
|
+ <div class="hisHoverBtn">Enter</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 点击出来的详情文字 -->
|
|
|
+ <div class="hisTxt" v-if="hisInfo.id">
|
|
|
+ <div class="hisTxtMain">
|
|
|
+ <div class="hisTxt1" v-html="hisInfo.title"></div>
|
|
|
+ <div class="hisTxt2" v-html="hisInfo.txt"></div>
|
|
|
+ </div>
|
|
|
+ <!-- 返回按钮 -->
|
|
|
+ <div class="hisBack" @click="hisInfo = {}"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="partner" data-aria-viewport-area tabindex="0"
|
|
|
- aria-label aria-description="You've reached the Patrners & Connections section, please use the tab key to go through the information."
|
|
|
+ <div
|
|
|
+ class="partner"
|
|
|
+ data-aria-viewport-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-label
|
|
|
+ aria-description="You've reached the Patrners & Connections section, please use the tab key to go through the information."
|
|
|
>
|
|
|
- <div v-if="themeIdx === 0" class="partners-title-for-focus" tabindex="0" aria-description="Partners & Connections"></div>
|
|
|
- <div v-if="themeIdx !== 0" class="partners-title-visible" tabindex="0">Partners & Connections</div>
|
|
|
- <ul >
|
|
|
- <li v-for="(item, index) in link" :key="index"
|
|
|
+ <div
|
|
|
+ v-if="themeIdx === 0"
|
|
|
+ class="partners-title-for-focus"
|
|
|
+ tabindex="0"
|
|
|
+ aria-description="Partners & Connections"
|
|
|
+ ></div>
|
|
|
+ <div v-if="themeIdx !== 0" class="partners-title-visible" tabindex="0">
|
|
|
+ Partners & Connections
|
|
|
+ </div>
|
|
|
+ <ul>
|
|
|
+ <li
|
|
|
+ v-for="(item, index) in link"
|
|
|
+ :key="index"
|
|
|
class="aria-theme-independent"
|
|
|
>
|
|
|
- <a :href="item.name" target="_blank" :title="item.pop"
|
|
|
+ <a
|
|
|
+ :href="item.name"
|
|
|
+ target="_blank"
|
|
|
+ :title="item.pop"
|
|
|
tabindex="0"
|
|
|
aria-label="Image link"
|
|
|
:aria-description="item.pop"
|
|
@@ -147,26 +167,44 @@
|
|
|
aria-description="See More"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="contact" data-aria-viewport-area tabindex="0"
|
|
|
- aria-label aria-description="You've reached the Contact section, please use the tab key to go through the information."
|
|
|
+ <div
|
|
|
+ class="contact"
|
|
|
+ data-aria-viewport-area
|
|
|
+ tabindex="0"
|
|
|
+ aria-label
|
|
|
+ aria-description="You've reached the Contact section, please use the tab key to go through the information."
|
|
|
>
|
|
|
- <div v-if="themeIdx === 0" class="contact-title-for-focus" tabindex="0" aria-description="Contact"></div>
|
|
|
- <div v-if="themeIdx !== 0" class="contact-title-visible" tabindex="0">Contact</div>
|
|
|
- <p tabindex="0">Official website of Capital Museum: <a :href="$homePageUrl" tabindex="0">{{$homePageUrl}}</a></p>
|
|
|
+ <div
|
|
|
+ v-if="themeIdx === 0"
|
|
|
+ class="contact-title-for-focus"
|
|
|
+ tabindex="0"
|
|
|
+ aria-description="Contact"
|
|
|
+ ></div>
|
|
|
+ <div v-if="themeIdx !== 0" class="contact-title-visible" tabindex="0">
|
|
|
+ Contact
|
|
|
+ </div>
|
|
|
+ <p tabindex="0">
|
|
|
+ Official website of Capital Museum:
|
|
|
+ <a :href="$homePageUrl" tabindex="0">{{ $homePageUrl }}</a>
|
|
|
+ </p>
|
|
|
<p tabindex="0">
|
|
|
Telephone reservation (individual visitors):
|
|
|
<span tabindex="0">+86 (10) 63393339</span>
|
|
|
</p>
|
|
|
<p tabindex="0">
|
|
|
- Telephone reservation (group visitors): <span tabindex="0">+86 (10) 63370458</span>
|
|
|
+ Telephone reservation (group visitors):
|
|
|
+ <span tabindex="0">+86 (10) 63370458</span>
|
|
|
+ </p>
|
|
|
+ <p tabindex="0">
|
|
|
+ Inquiry Hotline: <span tabindex="0">+86 (10) 63370491</span>
|
|
|
</p>
|
|
|
- <p tabindex="0">Inquiry Hotline: <span tabindex="0">+86 (10) 63370491</span></p>
|
|
|
- <p >
|
|
|
- <a href="mailto:ICD@capitalmuseum.org.cn"
|
|
|
+ <p>
|
|
|
+ <a
|
|
|
+ href="mailto:ICD@capitalmuseum.org.cn"
|
|
|
tabindex="0"
|
|
|
aria-description="Email Us"
|
|
|
>
|
|
|
- <img src="/data/About/youxiang.jpg"/>
|
|
|
+ <img src="/data/About/youxiang.jpg" />
|
|
|
</a>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -174,7 +212,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import accessibilityMixin from "/src/views/accessibilityMixin.js"
|
|
|
+import accessibilityMixin from "/src/views/accessibilityMixin.js";
|
|
|
+
|
|
|
+import { hisData } from "./data";
|
|
|
|
|
|
export default {
|
|
|
name: "About",
|
|
@@ -183,13 +223,24 @@ export default {
|
|
|
data() {
|
|
|
//这里存放数据
|
|
|
return {
|
|
|
+ hisData,
|
|
|
+ hisInfo: {},
|
|
|
link: [
|
|
|
- {name:"http://www.edo-tokyo-museum.or.jp/en/",pop:'Edo-Tokyo Museum'},
|
|
|
- {name:"https://en.shm.ru/",pop:'Russian State Historical Museum'},
|
|
|
- {name:"https://www.rom.on.ca/en",pop:'Royal Ontario Museum'},
|
|
|
- {name:"https://museum.seoul.go.kr/eng/index.do",pop:'Seoul Museum of History'},
|
|
|
- {name:"https://museumsvictoria.com.au/",pop:'Museums Victoria'},
|
|
|
- {name:"https://www.vmfa.museum/",pop:'Virginia Museum of Fine Arts'},
|
|
|
+ {
|
|
|
+ name: "http://www.edo-tokyo-museum.or.jp/en/",
|
|
|
+ pop: "Edo-Tokyo Museum",
|
|
|
+ },
|
|
|
+ { name: "https://en.shm.ru/", pop: "Russian State Historical Museum" },
|
|
|
+ { name: "https://www.rom.on.ca/en", pop: "Royal Ontario Museum" },
|
|
|
+ {
|
|
|
+ name: "https://museum.seoul.go.kr/eng/index.do",
|
|
|
+ pop: "Seoul Museum of History",
|
|
|
+ },
|
|
|
+ { name: "https://museumsvictoria.com.au/", pop: "Museums Victoria" },
|
|
|
+ {
|
|
|
+ name: "https://www.vmfa.museum/",
|
|
|
+ pop: "Virginia Museum of Fine Arts",
|
|
|
+ },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
@@ -203,7 +254,10 @@ export default {
|
|
|
created() {},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
- this.$eventBus.$emit('request-read', `You've reached the About page. This page contains one navigation section, eight window sections, and one interactive section. To choose an area, please hit the shortcut key.`)
|
|
|
+ this.$eventBus.$emit(
|
|
|
+ "request-read",
|
|
|
+ `You've reached the About page. This page contains one navigation section, eight window sections, and one interactive section. To choose an area, please hit the shortcut key.`
|
|
|
+ );
|
|
|
},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
@@ -290,33 +344,146 @@ export default {
|
|
|
clear: both;
|
|
|
width: 100%;
|
|
|
height: 501px;
|
|
|
- background-image: url("/data/About/au3.gif");
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-position: center top;
|
|
|
- > .history-title-for-focus {
|
|
|
- position: absolute;
|
|
|
- width: 150px;
|
|
|
- height: 40px;
|
|
|
- left: calc(50% - 509px);
|
|
|
- transform: translateX(-50%);
|
|
|
- top: 85px;
|
|
|
- }
|
|
|
- > .history-title-visible {
|
|
|
- position: absolute;
|
|
|
- left: calc(50% - 509px);
|
|
|
- transform: translateX(-50%);
|
|
|
- top: 95px;
|
|
|
- font-size: 24px;
|
|
|
- line-height: 1;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- & > .text-wrapper {
|
|
|
- width: 1120px;
|
|
|
+ background-image: url("/data/About/au3.png");
|
|
|
+ background-size: 100% 100%;
|
|
|
+ .hisMain {
|
|
|
+ text-align: center;
|
|
|
+ width: 1190px;
|
|
|
margin: 0 auto;
|
|
|
- padding-top: 165px;
|
|
|
- font-size: 16px;
|
|
|
- color: #656565;
|
|
|
- line-height: 20px;
|
|
|
+ padding-top: 40px;
|
|
|
+ .hisTitle {
|
|
|
+ color: #0e0e0e;
|
|
|
+ font-size: 30px;
|
|
|
+ font-weight: 700;
|
|
|
+ margin-bottom: 30px;
|
|
|
+ }
|
|
|
+ .hisRowBox {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+ justify-content: space-between;
|
|
|
+ position: relative;
|
|
|
+ .hisRow {
|
|
|
+ width: 280px;
|
|
|
+ height: 360px;
|
|
|
+ position: relative;
|
|
|
+ border-radius: 8px;
|
|
|
+ overflow: hidden;
|
|
|
+ transition: all 0.1s;
|
|
|
+ & > img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .hisHover {
|
|
|
+ cursor: pointer;
|
|
|
+ opacity: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ transition: all 0.1s;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background-color: #cb0707;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ padding: 10px 10px 70px;
|
|
|
+ .hisHoverTitle {
|
|
|
+ color: #fff;
|
|
|
+ font-size: 18px;
|
|
|
+ line-height: 26px;
|
|
|
+ }
|
|
|
+ .hisHoverBtn {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 40px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ width: 130px;
|
|
|
+ height: 42px;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 20px;
|
|
|
+ border: 1px solid #fff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &:hover {
|
|
|
+ transform: scale(1.1);
|
|
|
+ .hisHover {
|
|
|
+ opacity: 1;
|
|
|
+ pointer-events: auto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .hisTxt {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ z-index: 99;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 4px;
|
|
|
+ box-shadow: 0 0 8px 4px #ccc;
|
|
|
+ padding: 20px 20px 40px;
|
|
|
+ .hisTxtMain {
|
|
|
+ overflow-y: auto;
|
|
|
+ padding: 0 20px;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ .hisTxt1 {
|
|
|
+ color: #cb0707;
|
|
|
+ line-height: 26px;
|
|
|
+ font-size: 22px;
|
|
|
+ font-weight: 700;
|
|
|
+ margin-bottom: 15px;
|
|
|
+ }
|
|
|
+ .hisTxt2 {
|
|
|
+ text-align: left;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #444444;
|
|
|
+ line-height: 20px;
|
|
|
+ /deep/p {
|
|
|
+ margin-bottom: 15px;
|
|
|
+ }
|
|
|
+ /deep/b {
|
|
|
+ display: block;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ /*滚动条整体样式*/
|
|
|
+ width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
|
|
|
+ height: 1px;
|
|
|
+ }
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ /*滚动条里面小方块*/
|
|
|
+ border-radius: 10px;
|
|
|
+ -webkit-box-shadow: inset 0 0 5px transparent;
|
|
|
+ background: #d9d9d9;
|
|
|
+ }
|
|
|
+ &::-webkit-scrollbar-track {
|
|
|
+ /*滚动条里面轨道*/
|
|
|
+ -webkit-box-shadow: inset 0 0 5px transparent;
|
|
|
+ border-radius: 10px;
|
|
|
+ background: transparent;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .hisBack {
|
|
|
+ position: absolute;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ bottom: -20px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ z-index: 99;
|
|
|
+ cursor: pointer;
|
|
|
+ background-image: url("/data/About/his/back.png");
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.partner {
|
|
@@ -433,7 +600,8 @@ export default {
|
|
|
& > p {
|
|
|
padding: 10px 0;
|
|
|
font-size: 14px;
|
|
|
- & > span, a {
|
|
|
+ & > span,
|
|
|
+ a {
|
|
|
color: rgb(255, 0, 0);
|
|
|
}
|
|
|
}
|