fix: rebuild A01 as responsive page
This commit is contained in:
+252
-59
@@ -1,19 +1,60 @@
|
||||
<template>
|
||||
<view class="entry-page">
|
||||
<image class="guide-art" :src="entryGuideVisual" mode="widthFix" />
|
||||
<view class="auth-page entry-page">
|
||||
<image class="paper-background" src="/static/assets/backgrounds/auth-rice-paper-v1.jpg" mode="aspectFill" />
|
||||
<image class="scenery-background" src="/static/assets/backgrounds/auth-ink-scenery-v1.png" mode="aspectFill" />
|
||||
|
||||
<view class="entry-hit entry-login-hit" @click="openLogin" />
|
||||
<view class="entry-hit entry-wechat-hit" @click="prepareWechatLogin" />
|
||||
<view class="entry-hit entry-register-hit" @click="prepareRegister" />
|
||||
<view class="entry-hit entry-agreement-hit" @click="toggleAgreement" />
|
||||
<view class="entry-hit entry-agreement-copy-hit" @click.stop="prepareAgreement" />
|
||||
<view v-if="agreed" class="agreement-confirmed">✓</view>
|
||||
<view class="auth-content">
|
||||
<view class="auth-header">
|
||||
<image class="header-background" src="/static/assets/backgrounds/auth-ancestral-header-v1.png" mode="aspectFill" />
|
||||
<image class="header-seal" src="/static/assets/icons/brand/jiapu-seal-logo-header.png" mode="aspectFit" />
|
||||
</view>
|
||||
|
||||
<view class="brand-intro">
|
||||
<view class="title-decoration">
|
||||
<view class="cloud cloud-left" />
|
||||
<text class="brand-title">家谱</text>
|
||||
<view class="cloud cloud-right" />
|
||||
</view>
|
||||
<view class="gold-divider"><view class="divider-knot">⌘</view></view>
|
||||
<text class="brand-subtitle">为家族留存可传承的记忆</text>
|
||||
<view class="gold-divider"><view class="divider-knot">⌘</view></view>
|
||||
</view>
|
||||
|
||||
<view class="entry-actions">
|
||||
<view class="auth-button primary-button" hover-class="button-hover" @click="openLogin">
|
||||
<image class="button-icon" src="/static/assets/icons/auth/login-outline-v1.png" mode="aspectFit" />
|
||||
<text>登录</text>
|
||||
</view>
|
||||
|
||||
<view class="auth-button secondary-button" hover-class="button-hover" @click="prepareWechatLogin">
|
||||
<image class="button-icon wechat-icon" src="/static/assets/icons/auth/wechat-licensed-v1.png" mode="aspectFit" />
|
||||
<text>微信登录</text>
|
||||
</view>
|
||||
|
||||
<view class="register-link" hover-class="link-hover" @click="prepareRegister">
|
||||
<view class="link-line" />
|
||||
<text>还没有账号?<text class="register-emphasis">注册账号</text></text>
|
||||
<view class="link-line" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="agreement-row" @click="toggleAgreement">
|
||||
<view class="agreement-check" :class="{ checked: agreed }">
|
||||
<text v-if="agreed">✓</text>
|
||||
</view>
|
||||
<view class="agreement-copy">
|
||||
<text>我已阅读并同意</text>
|
||||
<text class="agreement-link" @click.stop="prepareAgreement">《用户协议》</text>
|
||||
<text>与</text>
|
||||
<text class="agreement-link" @click.stop="prepareAgreement">《隐私政策》</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import entryGuideVisual from '@/docs/design/screens/A01-启动登录引导-效果稿-v3-文字注册入口.png'
|
||||
|
||||
const agreed = ref(false)
|
||||
|
||||
@@ -48,67 +89,219 @@ const prepareAgreement = () => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.entry-page {
|
||||
.auth-page {
|
||||
position: relative;
|
||||
width: 750rpx;
|
||||
min-height: 1625rpx;
|
||||
background: #f9f5ed;
|
||||
min-height: 100vh;
|
||||
background: #f7f1e6;
|
||||
}
|
||||
|
||||
.guide-art {
|
||||
display: block;
|
||||
width: 750rpx;
|
||||
height: 1625rpx;
|
||||
}
|
||||
|
||||
.entry-hit {
|
||||
.paper-background,
|
||||
.scenery-background {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.paper-background { opacity: 0.96; }
|
||||
.scenery-background { opacity: 0.82; }
|
||||
|
||||
.auth-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
min-height: 100vh;
|
||||
padding-bottom: calc(44rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.entry-login-hit {
|
||||
top: 799rpx;
|
||||
left: 99rpx;
|
||||
width: 552rpx;
|
||||
height: 126rpx;
|
||||
.auth-header {
|
||||
position: relative;
|
||||
height: 244rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.entry-wechat-hit {
|
||||
top: 960rpx;
|
||||
left: 99rpx;
|
||||
width: 552rpx;
|
||||
height: 126rpx;
|
||||
.header-background {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.entry-register-hit {
|
||||
top: 1155rpx;
|
||||
left: 200rpx;
|
||||
width: 350rpx;
|
||||
height: 72rpx;
|
||||
}
|
||||
|
||||
.entry-agreement-hit {
|
||||
top: 1362rpx;
|
||||
left: 126rpx;
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.entry-agreement-copy-hit {
|
||||
top: 1362rpx;
|
||||
left: 190rpx;
|
||||
width: 450rpx;
|
||||
height: 60rpx;
|
||||
}
|
||||
|
||||
.agreement-confirmed {
|
||||
.header-seal {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
top: 1365rpx;
|
||||
left: 134rpx;
|
||||
color: #b7170d;
|
||||
font-size: 38rpx;
|
||||
font-weight: 700;
|
||||
line-height: 52rpx;
|
||||
top: 44rpx;
|
||||
left: 50%;
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.brand-intro {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 196rpx 56rpx 0;
|
||||
color: #3f2c1d;
|
||||
}
|
||||
|
||||
.title-decoration {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
margin: 0 24rpx;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 112rpx;
|
||||
font-weight: 700;
|
||||
letter-spacing: 12rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.cloud {
|
||||
position: relative;
|
||||
width: 54rpx;
|
||||
height: 24rpx;
|
||||
border: 3rpx solid #dca34d;
|
||||
border-top: 0;
|
||||
border-radius: 0 0 26rpx 26rpx;
|
||||
}
|
||||
|
||||
.cloud::before,
|
||||
.cloud::after {
|
||||
position: absolute;
|
||||
bottom: -3rpx;
|
||||
width: 22rpx;
|
||||
height: 22rpx;
|
||||
border: 3rpx solid #dca34d;
|
||||
border-bottom: 0;
|
||||
border-radius: 50% 50% 0 0;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.cloud::before { left: 5rpx; }
|
||||
.cloud::after { right: 5rpx; }
|
||||
.cloud-right { transform: scaleX(-1); }
|
||||
|
||||
.gold-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 430rpx;
|
||||
height: 1rpx;
|
||||
margin: 30rpx 0;
|
||||
background: #d5a34f;
|
||||
}
|
||||
|
||||
.divider-knot {
|
||||
padding: 0 14rpx;
|
||||
color: #d5a34f;
|
||||
background: #f8f2e9;
|
||||
font-size: 32rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.brand-subtitle {
|
||||
color: #624631;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 36rpx;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
.entry-actions {
|
||||
margin: 130rpx 100rpx 0;
|
||||
}
|
||||
|
||||
.auth-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 124rpx;
|
||||
border: 2rpx solid #d8ad63;
|
||||
border-radius: 8rpx;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 42rpx;
|
||||
letter-spacing: 5rpx;
|
||||
}
|
||||
|
||||
.primary-button {
|
||||
border-color: #9e170e;
|
||||
background: #b7170d;
|
||||
box-shadow: inset 0 0 0 4rpx #d69b5f;
|
||||
color: #fffaf0;
|
||||
}
|
||||
|
||||
.secondary-button {
|
||||
margin-top: 32rpx;
|
||||
background: rgba(255, 252, 245, 0.82);
|
||||
box-shadow: inset 0 0 0 3rpx rgba(229, 190, 133, 0.45);
|
||||
color: #60442f;
|
||||
}
|
||||
|
||||
.button-icon {
|
||||
width: 52rpx;
|
||||
height: 52rpx;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
|
||||
.wechat-icon { width: 56rpx; }
|
||||
.button-hover { opacity: 0.84; }
|
||||
|
||||
.register-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 70rpx;
|
||||
color: #60442f;
|
||||
font-family: STKaiti, KaiTi, serif;
|
||||
font-size: 30rpx;
|
||||
letter-spacing: 2rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.register-emphasis { color: #b7170d; }
|
||||
|
||||
.link-line {
|
||||
width: 58rpx;
|
||||
height: 1rpx;
|
||||
margin: 0 18rpx;
|
||||
background: #d5a34f;
|
||||
}
|
||||
|
||||
.link-hover { opacity: 0.65; }
|
||||
|
||||
.agreement-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
margin-top: 160rpx;
|
||||
padding: 0 44rpx calc(32rpx + env(safe-area-inset-bottom));
|
||||
color: #6b5a4a;
|
||||
font-size: 24rpx;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.agreement-check {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin: 7rpx 12rpx 0 0;
|
||||
border: 2rpx solid #b88d4b;
|
||||
border-radius: 50%;
|
||||
color: #fffaf0;
|
||||
font-size: 20rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.agreement-check.checked { background: #b7170d; border-color: #b7170d; }
|
||||
.agreement-copy { text-align: center; }
|
||||
.agreement-link { color: #b7170d; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user