fix: calibrate A01 entry visual layout
This commit is contained in:
@@ -51,6 +51,7 @@ $wechatLogin = ConvertFrom-Utf8Base64 '5b6u5L+h55m75b2V'
|
||||
$registerPrompt = ConvertFrom-Utf8Base64 '6L+Y5rKh5pyJ6LSm5Y+377yf'
|
||||
$registerEntry = ConvertFrom-Utf8Base64 '5rOo5YaM6LSm5Y+3'
|
||||
$loginEntry = ConvertFrom-Utf8Base64 '55m75b2V'
|
||||
$dividerGlyph = ConvertFrom-Utf8Base64 '4oyY'
|
||||
$agreementRequired = ConvertFrom-Utf8Base64 '6K+35YWI6ZiF6K+75bm25ZCM5oSP55u45YWz5Y2P6K6u'
|
||||
$wechatPending = ConvertFrom-Utf8Base64 '5b6u5L+h55m75b2V5Yqf6IO95YeG5aSH5Lit'
|
||||
$registerPending = ConvertFrom-Utf8Base64 '5rOo5YaM6aG16Z2i5YeG5aSH5Lit'
|
||||
@@ -73,9 +74,31 @@ Assert-Contains -Content $entry -Expected "<text>$loginEntry</text>" -Message 'A
|
||||
foreach ($requiredClass in @('auth-header', 'brand-intro', 'entry-actions', 'agreement-row')) {
|
||||
Assert-Contains -Content $entry -Expected $requiredClass -Message "Missing A-01 page structure: $requiredClass"
|
||||
}
|
||||
foreach ($requiredVisualAnchor in @(
|
||||
'brand-divider--top',
|
||||
'brand-divider--bottom',
|
||||
'entry-button--primary',
|
||||
'entry-button--secondary',
|
||||
'height: 253rpx',
|
||||
'padding: 150rpx 56rpx 0',
|
||||
'width: 426rpx',
|
||||
'margin: 95rpx 110rpx 0',
|
||||
'height: 118rpx',
|
||||
'margin-top: 51rpx',
|
||||
'margin-top: 98rpx',
|
||||
'margin-top: 128rpx'
|
||||
)) {
|
||||
Assert-Contains -Content $entry -Expected $requiredVisualAnchor -Message "Missing A-01 calibrated visual anchor: $requiredVisualAnchor"
|
||||
}
|
||||
foreach ($rejectedVisualConstruction in @('link-line', 'button-corner', 'class="auth-button primary-button"')) {
|
||||
Assert-NotContains -Content $entry -Unexpected $rejectedVisualConstruction -Message "A-01 retains rejected visual construction: $rejectedVisualConstruction"
|
||||
}
|
||||
foreach ($forbiddenClass in @('entryGuideVisual', 'guide-art', 'entry-hit', 'width: 750rpx', 'min-height: 1625rpx')) {
|
||||
Assert-NotContains -Content $entry -Unexpected $forbiddenClass -Message "A-01 must not render the whole design image with $forbiddenClass"
|
||||
}
|
||||
Assert-Contains -Content $entry -Expected '/static/assets/icons/action/create-cloud-v2.png' -Message 'A-01 title and divider must use the local auspicious-cloud asset'
|
||||
Assert-Contains -Content $entry -Expected 'filter: brightness(0) invert(1)' -Message 'A-01 primary login icon must render in white'
|
||||
Assert-NotContains -Content $entry -Unexpected $dividerGlyph -Message 'A-01 divider must not use a text glyph as ornament'
|
||||
if ($entry -match '(?s)\.auth-page\s*\{[^}]*overflow\s*:\s*hidden') {
|
||||
throw 'A-01 must allow vertical scrolling on small screens'
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ function ConvertFrom-Utf8Base64 {
|
||||
}
|
||||
|
||||
$recordPath = ConvertFrom-Utf8Base64 'ZG9jcy9kZXNpZ24vQTAxX+WQr+WKqOeZu+W9leW8leWvvF/orr7orqHorrDlvZUubWQ='
|
||||
$effect = ConvertFrom-Utf8Base64 'ZG9jcy9kZXNpZ24vc2NyZWVucy9BMDEt5ZCv5Yqo55m75b2V5byV5a+8LeaViOaenOeovy12My3mloflrZfms6jlhozlhaXlj6MucG5n'
|
||||
$effect = Join-Path (Join-Path (Split-Path -Parent $recordPath) 'screens') (ConvertFrom-Utf8Base64 'QTAxLeWQr+WKqOeZu+W9leW8leWvvC3moIXmoLzpqozmlLYtNDEyeDkxNS5wbmc=')
|
||||
$record = Get-Content -LiteralPath $recordPath -Raw -Encoding utf8
|
||||
$rules = @(
|
||||
(ConvertFrom-Utf8Base64 '55m75b2V'),
|
||||
@@ -24,12 +24,16 @@ foreach ($rule in $rules) {
|
||||
|
||||
$layoutRules = @(
|
||||
(ConvertFrom-Utf8Base64 '6aG16Z2i5qC55a655Zmo5a695bqm5b+F6aG75Li6IDEwMCU='),
|
||||
(ConvertFrom-Utf8Base64 '5pyx56CC5a6256Wg5aS05Zu+6auYIDI0NHJweA=='),
|
||||
(ConvertFrom-Utf8Base64 '5pON5L2c5Yy65bem5Y+z5YaF6L656LedIDEwMHJweA=='),
|
||||
(ConvertFrom-Utf8Base64 '5Li75oyJ6ZKu6auY5bqmIDEyNHJweA=='),
|
||||
(ConvertFrom-Utf8Base64 '5Y2P6K6u6KGM5Zyo5rOo5YaM5YWl5Y+j5LiL5pa5IDE2MHJweA=='),
|
||||
(ConvertFrom-Utf8Base64 'NDEyIMOXIDkxNSDov5DooYzml7bmoKHlh4booag='),
|
||||
(ConvertFrom-Utf8Base64 '5pyx56CC5a6256Wg5aS05Zu+IHwg6auYIDEzOXB4IHwg6auYIDI1M3JweA=='),
|
||||
(ConvertFrom-Utf8Base64 'bWFyZ2luOiA5NXJweCAxMTBycHggMA=='),
|
||||
(ConvertFrom-Utf8Base64 '6auYIDExOHJweA=='),
|
||||
(ConvertFrom-Utf8Base64 'bWFyZ2luLXRvcDogNTFycHg='),
|
||||
(ConvertFrom-Utf8Base64 '5peg5bem5Y+z55+t57q/'),
|
||||
(ConvertFrom-Utf8Base64 'bWFyZ2luLXRvcDogOThycHg='),
|
||||
(ConvertFrom-Utf8Base64 'bWFyZ2luLXRvcDogMTI4cnB4'),
|
||||
(ConvertFrom-Utf8Base64 'ZW52KHNhZmUtYXJlYS1pbnNldC1ib3R0b20p'),
|
||||
(ConvertFrom-Utf8Base64 '5pWI5p6c56i/IHYzIOS7heS9nOinhuinieavlOWvueS+neaNrg==')
|
||||
(ConvertFrom-Utf8Base64 '5b2T5YmN6L+Q6KGM5pe26KeG6KeJ5Z+65YeG')
|
||||
)
|
||||
|
||||
foreach ($rule in $layoutRules) {
|
||||
|
||||
Reference in New Issue
Block a user