|
@@ -6,35 +6,57 @@
|
|
fat: tallOrFat === 'fat',
|
|
fat: tallOrFat === 'fat',
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
- <h1 class="name">
|
|
|
|
- {{ name }}
|
|
|
|
- </h1>
|
|
|
|
<div
|
|
<div
|
|
- class="content-wrap"
|
|
|
|
|
|
+ class="inner-wrap"
|
|
:class="{
|
|
:class="{
|
|
tall: tallOrFat === 'tall',
|
|
tall: tallOrFat === 'tall',
|
|
fat: tallOrFat === 'fat',
|
|
fat: tallOrFat === 'fat',
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
|
|
+ <h1 class="name">
|
|
|
|
+ {{ name }}
|
|
|
|
+ </h1>
|
|
<img
|
|
<img
|
|
- v-if="img"
|
|
|
|
- class="portrait"
|
|
|
|
- :class="{
|
|
|
|
- tall: tallOrFat === 'tall',
|
|
|
|
- fat: tallOrFat === 'fat',
|
|
|
|
- }"
|
|
|
|
- :src="img"
|
|
|
|
|
|
+ v-if="tallOrFat === 'tall'"
|
|
|
|
+ src="@/assets/images/line_short.png"
|
|
alt=""
|
|
alt=""
|
|
|
|
+ class="splitter"
|
|
|
|
+ draggable="false"
|
|
|
|
+ >
|
|
|
|
+ <img
|
|
|
|
+ v-if="tallOrFat === 'fat'"
|
|
|
|
+ src="@/assets/images/line_long.png"
|
|
|
|
+ alt=""
|
|
|
|
+ class="splitter"
|
|
draggable="false"
|
|
draggable="false"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
- class="text"
|
|
|
|
|
|
+ class="content-wrap"
|
|
:class="{
|
|
:class="{
|
|
tall: tallOrFat === 'tall',
|
|
tall: tallOrFat === 'tall',
|
|
fat: tallOrFat === 'fat',
|
|
fat: tallOrFat === 'fat',
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
- {{ text }}
|
|
|
|
|
|
+ <img
|
|
|
|
+ v-if="img"
|
|
|
|
+ class="portrait"
|
|
|
|
+ :class="{
|
|
|
|
+ tall: tallOrFat === 'tall',
|
|
|
|
+ fat: tallOrFat === 'fat',
|
|
|
|
+ }"
|
|
|
|
+ :src="img"
|
|
|
|
+ alt=""
|
|
|
|
+ draggable="false"
|
|
|
|
+ >
|
|
|
|
+ <div
|
|
|
|
+ class="text"
|
|
|
|
+ :class="{
|
|
|
|
+ tall: tallOrFat === 'tall',
|
|
|
|
+ fat: tallOrFat === 'fat',
|
|
|
|
+ }"
|
|
|
|
+ >
|
|
|
|
+ {{ text }}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -56,81 +78,101 @@ export default {
|
|
background-size: contain;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
background-position: center center;
|
|
- padding: 5px;
|
|
|
|
|
|
+ padding: 8px;
|
|
backdrop-filter: blur(5px);
|
|
backdrop-filter: blur(5px);
|
|
|
|
+ background-color: rgba(6, 11, 26, 0.20);
|
|
|
|
+ box-shadow: inset 0px 1px 1px 0px rgba(255,255,255,0.3);
|
|
&.tall{
|
|
&.tall{
|
|
text-align: center;
|
|
text-align: center;
|
|
- background-image: url(@/assets/images/bg-person-card-tall.png);
|
|
|
|
width: 354px;
|
|
width: 354px;
|
|
- height: 559px;
|
|
|
|
|
|
+ height: 509px;
|
|
}
|
|
}
|
|
&.fat{
|
|
&.fat{
|
|
- background-image: url(@/assets/images/bg-person-card-fat.png);
|
|
|
|
- width: 431px;
|
|
|
|
- height: 297px;
|
|
|
|
- }
|
|
|
|
- >h1.name{
|
|
|
|
- height: 70px;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- align-items: center;
|
|
|
|
- font-size: 24px;
|
|
|
|
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
|
|
|
- font-weight: bold;
|
|
|
|
- color: #ECDCA6;
|
|
|
|
- line-height: 28px;
|
|
|
|
|
|
+ width: 389px;
|
|
|
|
+ height: 268px;
|
|
}
|
|
}
|
|
- >.content-wrap {
|
|
|
|
|
|
+ >.inner-wrap{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ text-align: center;
|
|
&.tall{
|
|
&.tall{
|
|
- display: flex;
|
|
|
|
- flex-direction: column;
|
|
|
|
- align-items: center;
|
|
|
|
- height: 440px;
|
|
|
|
|
|
+ background-image: url(@/assets/images/bg-person-card-tall.png);
|
|
}
|
|
}
|
|
&.fat{
|
|
&.fat{
|
|
|
|
+ background-image: url(@/assets/images/bg-person-card-fat.png);
|
|
|
|
+ }
|
|
|
|
+ >h1.name{
|
|
|
|
+ padding-top: 20px;
|
|
|
|
+ height: 70px;
|
|
display: flex;
|
|
display: flex;
|
|
- margin-top: 20px;
|
|
|
|
- margin-left: 20px;
|
|
|
|
- margin-right: 20px;
|
|
|
|
- display: flex;
|
|
|
|
- height: 170px;
|
|
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-size: 24px;
|
|
|
|
+ font-family: Source Han Sans CN-Bold, Source Han Sans CN;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #ECDCA6;
|
|
|
|
+ line-height: 28px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ white-space: pre;
|
|
|
|
+ text-overflow: ellipsis;
|
|
}
|
|
}
|
|
- >img.portrait{
|
|
|
|
- flex: 0 0 auto;
|
|
|
|
- object-fit: cover;
|
|
|
|
- &.tall{
|
|
|
|
- margin-top: 20px;
|
|
|
|
- width: 210px;
|
|
|
|
- height: 220px;
|
|
|
|
- }
|
|
|
|
- &.fat {
|
|
|
|
- width: 121px;
|
|
|
|
- height: 166px;
|
|
|
|
- }
|
|
|
|
|
|
+ >img.splitter{
|
|
|
|
+ height: 10px;
|
|
}
|
|
}
|
|
- >.text{
|
|
|
|
- text-align: initial;
|
|
|
|
- flex: 1 0 1px;
|
|
|
|
- padding-right: 4px;
|
|
|
|
- font-size: 16px;
|
|
|
|
- font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
|
|
- font-weight: 400;
|
|
|
|
- color: #FFFFFF;
|
|
|
|
- line-height: 1.5;
|
|
|
|
- opacity: 0.7;
|
|
|
|
- overflow: auto;
|
|
|
|
- &::-webkit-scrollbar { background: transparent; width: 4px; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
|
|
|
|
- &::-webkit-scrollbar-thumb {
|
|
|
|
- background: rgba(220, 231, 240, 0.2);
|
|
|
|
- border-radius: 2px;
|
|
|
|
- }
|
|
|
|
|
|
+ >.content-wrap {
|
|
&.tall{
|
|
&.tall{
|
|
- margin-top: 20px;
|
|
|
|
- margin-left: 39px;
|
|
|
|
- margin-right: 35px;
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: center;
|
|
|
|
+ height: 390px;
|
|
}
|
|
}
|
|
&.fat{
|
|
&.fat{
|
|
|
|
+ display: flex;
|
|
|
|
+ margin-top: 10px;
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ display: flex;
|
|
|
|
+ height: 170px;
|
|
|
|
+ }
|
|
|
|
+ >img.portrait{
|
|
|
|
+ flex: 0 0 auto;
|
|
|
|
+ object-fit: cover;
|
|
|
|
+ &.tall{
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ width: 210px;
|
|
|
|
+ height: 220px;
|
|
|
|
+ }
|
|
|
|
+ &.fat {
|
|
|
|
+ width: 101px;
|
|
|
|
+ height: 139px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ >.text{
|
|
|
|
+ text-align: initial;
|
|
|
|
+ flex: 1 0 1px;
|
|
|
|
+ padding-right: 4px;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ line-height: 1.5;
|
|
|
|
+ opacity: 0.7;
|
|
|
|
+ overflow: auto;
|
|
|
|
+ text-indent: 2em;
|
|
|
|
+ &::-webkit-scrollbar { background: transparent; width: 4px; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
|
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
|
+ background: rgba(220, 231, 240, 0.2);
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+ }
|
|
|
|
+ &.tall{
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ margin-left: 39px;
|
|
|
|
+ margin-right: 35px;
|
|
|
|
+ }
|
|
|
|
+ &.fat{
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ margin-bottom: 30px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|