737 lines
15 KiB
SCSS
737 lines
15 KiB
SCSS
@use "~@/scss/images.scss" as img;
|
|
|
|
.container {
|
|
width: 100%;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
|
|
.title {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
}
|
|
|
|
.content {
|
|
width: 100%;
|
|
height: 300px;
|
|
background-color: #f9f9f9;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.image {
|
|
/* width: 200px; */
|
|
/* height: 200px; */
|
|
/* object-fit: cover; */
|
|
}
|
|
|
|
.description {
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
font-size: 16px;
|
|
color: #666;
|
|
}
|
|
}
|
|
.button {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 200px;
|
|
height: 50px;
|
|
background-color: #007bff;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
line-height: 50px;
|
|
transition: background-color 0.3s ease;
|
|
|
|
&:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
}
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 44px;
|
|
padding: 46px 42px 0 10px;
|
|
|
|
.closeIcon {
|
|
width: 32px;
|
|
height: 32px;
|
|
margin-right: auto;
|
|
|
|
.closeImg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.title {
|
|
flex: 1;
|
|
margin: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@mixin commonAvatarStyle($multiple: 1) {
|
|
.avatar {
|
|
flex: 0 0 auto;
|
|
width: calc(100px * $multiple);
|
|
height: calc(100px * $multiple);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #fff;
|
|
border-radius: 50%;
|
|
border: 1px solid #efefef;
|
|
overflow: hidden;
|
|
box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.2), 0 8px 20px 0 rgba(0, 0, 0, 0.12);
|
|
|
|
.avatarUrl {
|
|
width: calc(90px * $multiple);
|
|
height: calc(90px * $multiple);
|
|
border-radius: 50%;
|
|
border: 1px solid #efefef;
|
|
}
|
|
}
|
|
|
|
.addonImage {
|
|
flex: 0 0 auto;
|
|
width: calc(88px * $multiple);
|
|
height: calc(88px * $multiple);
|
|
transform: rotate(8deg);
|
|
flex-shrink: 0;
|
|
aspect-ratio: 1/1;
|
|
border-radius: calc(20px * $multiple);
|
|
border: 4px solid #fff;
|
|
background: linear-gradient(
|
|
0deg,
|
|
rgba(89, 255, 214, 0.2) 0%,
|
|
rgba(89, 255, 214, 0.2) 100%
|
|
),
|
|
#fff;
|
|
box-shadow: 0 4px 36px 0 rgba(0, 0, 0, 0.12);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
margin-left: calc(-1 * 20px * $multiple);
|
|
|
|
.docImage {
|
|
width: calc(48px * $multiple);
|
|
height: calc(48px * $multiple);
|
|
transform: rotate(-7deg);
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.introContainer {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%),
|
|
#fafafa;
|
|
|
|
.result {
|
|
.avatarWrap {
|
|
width: 200px;
|
|
height: 100px;
|
|
padding: 30px 0 0 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
@include commonAvatarStyle(1);
|
|
}
|
|
|
|
.tip {
|
|
padding: 0 30px;
|
|
|
|
.tipImage {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.lastResult {
|
|
margin: 40px 22px;
|
|
display: flex;
|
|
padding: 16px 20px 20px 20px;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
background: #fff;
|
|
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
.tipAndTime {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
color: rgba(0, 0, 0, 0.65);
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "Noto Sans SC";
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.levelWrap {
|
|
color: #000;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
text-overflow: ellipsis;
|
|
font-family: "Noto Sans SC";
|
|
font-size: 32px;
|
|
font-style: normal;
|
|
font-weight: 900;
|
|
line-height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
|
|
.level {
|
|
color: #00e5ad;
|
|
}
|
|
}
|
|
|
|
.slogan {
|
|
color: #000;
|
|
font-family: "Noto Sans SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
line-height: 22px;
|
|
}
|
|
}
|
|
|
|
.actions {
|
|
margin: 0 22px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
|
|
.buttonWrap {
|
|
width: 100%;
|
|
height: 52px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
&.customBtn {
|
|
.button {
|
|
opacity: 0;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.customBtnCover {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
}
|
|
}
|
|
|
|
.button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
|
|
&.primary {
|
|
color: #fff;
|
|
background: #000;
|
|
|
|
.arrowImage {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.guide {
|
|
.tip {
|
|
padding: 0 30px;
|
|
|
|
.tipImage {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.radar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
.radarImage {
|
|
width: 320px;
|
|
transform: scale(1.8);
|
|
}
|
|
}
|
|
|
|
.desc {
|
|
padding: 0 30px;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
font-family: "PingFang SC";
|
|
font-size: 14px;
|
|
font-style: normal;
|
|
font-weight: 300;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.actions {
|
|
margin: 52px 22px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
|
|
.buttonWrap {
|
|
width: 100%;
|
|
height: 52px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
overflow: hidden;
|
|
|
|
.button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
|
|
&.primary {
|
|
color: #fff;
|
|
background: #000;
|
|
|
|
.arrowImage {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.testContainer {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%),
|
|
#fafafa;
|
|
|
|
.bar {
|
|
margin: 12px 20px 36px;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
background: rgba(0, 0, 0, 0.06);
|
|
position: relative;
|
|
|
|
.progressBar {
|
|
height: 8px;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
border-radius: 999px;
|
|
background-color: #000;
|
|
}
|
|
}
|
|
|
|
.notice {
|
|
padding: 0 20px 20px;
|
|
color: #000;
|
|
font-family: "PingFang SC";
|
|
font-size: 18px;
|
|
font-style: normal;
|
|
font-weight: 300;
|
|
line-height: normal;
|
|
}
|
|
|
|
.question {
|
|
padding: 0 20px 48px;
|
|
box-sizing: border-box;
|
|
height: 502px;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
|
|
.content {
|
|
color: #000;
|
|
font-family: "PingFang SC";
|
|
font-size: 36px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
}
|
|
|
|
.options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
width: 100%;
|
|
|
|
.optionItem {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
display: flex;
|
|
padding: 14px 20px;
|
|
align-items: center;
|
|
gap: 12px;
|
|
border-radius: 16px;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.12);
|
|
background: #fff;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
.optionText {
|
|
color: #000;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 14px;
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.optionIcon {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 22px;
|
|
gap: 24px;
|
|
|
|
.next {
|
|
width: 100%;
|
|
height: 52px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
background: rgba(0, 0, 0, 0.2);
|
|
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
|
|
.nextBtn {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #000;
|
|
color: #fff;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
}
|
|
|
|
&.disabled {
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
background: rgba(0, 0, 0, 0.2);
|
|
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
.nextBtn {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
color: #fff;
|
|
border-radius: 16px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.prev {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
color: #000;
|
|
font-family: "PingFang SC";
|
|
font-size: 14px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
|
|
.backIcon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.resultContainer {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%),
|
|
#fafafa;
|
|
|
|
.card {
|
|
margin: 10px 20px 0;
|
|
|
|
padding: 24px 28px 0;
|
|
position: relative;
|
|
display: flex;
|
|
// height: px;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
align-self: stretch;
|
|
border-radius: 26px;
|
|
border: 4px solid #fff;
|
|
// background: linear-gradient(180deg, #bfffef 0%, #f2fffc 100%), #fff;
|
|
background-size: contain;
|
|
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.1);
|
|
|
|
.avatarWrap {
|
|
padding-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
@include commonAvatarStyle(0.5);
|
|
}
|
|
|
|
.desc {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
|
|
.tip {
|
|
color: #000;
|
|
font-family: "PingFang SC";
|
|
font-size: 14px;
|
|
font-style: normal;
|
|
font-weight: 300;
|
|
line-height: normal;
|
|
}
|
|
|
|
.levelWrap {
|
|
color: #000;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
text-overflow: ellipsis;
|
|
font-family: "Noto Sans SC";
|
|
font-size: 36px;
|
|
font-style: normal;
|
|
font-weight: 900;
|
|
line-height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
|
|
.level {
|
|
color: #00e5ad;
|
|
}
|
|
}
|
|
|
|
.slogan {
|
|
color: #000;
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
}
|
|
}
|
|
|
|
.retest {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 12px;
|
|
display: flex;
|
|
padding: 6px 10px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 6px;
|
|
border-radius: 12px;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.12);
|
|
background: #fff;
|
|
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.1);
|
|
color: rgba(0, 0, 0, 0.85);
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
|
|
.re_actIcon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.updateTip {
|
|
color: #000;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
line-height: 24px;
|
|
|
|
text-align: center;
|
|
padding: 24px 0;
|
|
|
|
.grayTip {
|
|
color: rgba(60, 60, 67, 0.6);
|
|
}
|
|
}
|
|
|
|
.actions {
|
|
padding: 0 28px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
|
|
.viewGame {
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
width: 100%;
|
|
overflow: hidden;
|
|
|
|
.viewGameBtn {
|
|
width: 100%;
|
|
height: 50px;
|
|
background: #000;
|
|
color: #fff;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
.otherActions {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
|
|
.share,
|
|
.saveImage {
|
|
width: 50%;
|
|
height: 50px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
.shareBtn,
|
|
.saveImageBtn {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
}
|
|
|
|
.shareBtnCover,
|
|
.saveImageBtnCover {
|
|
background: #fff;
|
|
width: 100%;
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
color: #000;
|
|
font-feature-settings: "liga" off, "clig" off;
|
|
font-family: "PingFang SC";
|
|
font-size: 16px;
|
|
font-style: normal;
|
|
font-weight: 600;
|
|
line-height: normal;
|
|
border-radius: 16px;
|
|
|
|
.downloadIcon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.wechatIcon {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|