|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
|
<div class="exception">
|
|
|
- <img :src="model.src" class="exception-img" />
|
|
|
+ <div class="exception-img-block">
|
|
|
+ <div
|
|
|
+ class="img"
|
|
|
+ :style="{
|
|
|
+ 'background-image': `url(${model.src})`
|
|
|
+ }"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
|
|
|
<div class="exception-content">
|
|
|
<h1>{{ model.title }}</h1>
|
|
@@ -29,19 +36,30 @@ export default {
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
.exception {
|
|
|
- height: 80%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ height: 80%;
|
|
|
+ min-height: 500px;
|
|
|
+
|
|
|
+ &-img-block {
|
|
|
+ flex: 0 0 62.5%;
|
|
|
+ width: 62.5%;
|
|
|
+ padding-right: 100px;
|
|
|
|
|
|
- &-img {
|
|
|
- width: 100%;
|
|
|
- max-width: 430px;
|
|
|
- height: 360px;
|
|
|
- margin: 0 130px 0 60px;
|
|
|
+ .img {
|
|
|
+ float: right;
|
|
|
+ width: 100%;
|
|
|
+ max-width: 430px;
|
|
|
+ height: 360px;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: 50% 50%;
|
|
|
+ background-size: contain;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
&-content {
|
|
|
h1 {
|
|
|
+ line-height: 72px;
|
|
|
margin-bottom: 24px;
|
|
|
font-size: 72px;
|
|
|
color: #434e59;
|
|
@@ -55,4 +73,25 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+@media screen and (max-width: 576px) {
|
|
|
+ .exception {
|
|
|
+ display: block;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ &-img-block {
|
|
|
+ overflow: hidden;
|
|
|
+ margin: 0 auto 24px;
|
|
|
+ padding-right: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@media screen and (max-width: 480px) {
|
|
|
+ .exception {
|
|
|
+ &-img-block {
|
|
|
+ margin-bottom: -24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|