123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <template>
- <div class="home-fadein">
- <video
- class="bg-video"
- src="@/assets/videos/loading.mp4"
- autoplay
- playsinline
- muted
- />
- <div class="progress">
- <span>{{ progress }}</span><span>%</span>
- </div>
- <div class="organization">
- 上海工业博物馆
- </div>
- </div>
- </template>
- <script>
- export default {
- props: [
- 'progress',
- ],
- emits: ['loading-end'],
- data() {
- return {
- }
- },
- mounted() {
- },
- methods: {
- }
- }
- </script>
- <style lang="less" scoped>
- .home-fadein {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background-color: #000;
- >.bg-video {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- background-color: #000;
- }
- >.progress {
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- >span:nth-of-type(1) {
- font-size: 32px;
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- }
- >span:nth-of-type(2) {
- font-size: 16px;
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- }
- }
- >.organization {
- position: absolute;
- left: 50%;
- bottom: 38px;
- transform: translate(-50%, -50%);
- font-size: 24px;
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- }
- }
- .mobile {
- .home-fadein {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background-color: #000;
- >.bg-video {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- background-color: #000;
- }
- >.progress {
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- >span:nth-of-type(1) {
- font-size: calc(32 / 1080 * 100vh);
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- }
- >span:nth-of-type(2) {
- font-size: calc(16 / 1080 * 100vh);
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- }
- }
- >.organization {
- position: absolute;
- left: 50%;
- bottom: calc(38 / 1080 * 100vh);
- transform: translate(-50%, -50%);
- font-size: calc(24 / 1080 * 100vh);
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- }
- }
- }
- </style>
|