diff --git a/README.md b/README.md index 3a6bb57..4f72ee2 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # uwhLife / 芜忧皖江 -> 本项目使用 vibe coding 方式编写,并在人工审查、测试和发布流程中持续整理。 +> 本项目使用 vibe coding 方式编写。 + +本项目灵感来自 ![自在东湖](https://chilleast.soilzhu.su/) uwhLife / 芜忧皖江 是一个面向芜湖学院校园生活场景的 Flutter 移动端应用。项目当前聚焦常用校园入口和移动端体验:统一门户、校园应用列表、付款码、开门、热水/洗浴、智慧课堂、消息与个人页等。 -当前仓库名建议使用 `uwhLife`,Flutter/Dart 包名已改为 `uwhlife`,以符合 Dart 包命名约束。
diff --git a/web/assets/app-icon.png b/web/assets/app-icon.png new file mode 100644 index 0000000..02b6536 Binary files /dev/null and b/web/assets/app-icon.png differ diff --git a/web/img/applist.jpeg b/web/img/applist.jpeg new file mode 100644 index 0000000..b97761c Binary files /dev/null and b/web/img/applist.jpeg differ diff --git a/web/img/applist_dark.jpeg b/web/img/applist_dark.jpeg new file mode 100644 index 0000000..3acae65 Binary files /dev/null and b/web/img/applist_dark.jpeg differ diff --git a/web/img/homepage.jpeg b/web/img/homepage.jpeg new file mode 100644 index 0000000..1003543 Binary files /dev/null and b/web/img/homepage.jpeg differ diff --git a/web/img/homepage_dark.jpeg b/web/img/homepage_dark.jpeg new file mode 100644 index 0000000..cff8fee Binary files /dev/null and b/web/img/homepage_dark.jpeg differ diff --git a/web/img/message.jpeg b/web/img/message.jpeg new file mode 100644 index 0000000..06736e7 Binary files /dev/null and b/web/img/message.jpeg differ diff --git a/web/img/message_dark.jpeg b/web/img/message_dark.jpeg new file mode 100644 index 0000000..2bb590f Binary files /dev/null and b/web/img/message_dark.jpeg differ diff --git a/web/img/qrcard.jpeg b/web/img/qrcard.jpeg new file mode 100644 index 0000000..d3b61a9 Binary files /dev/null and b/web/img/qrcard.jpeg differ diff --git a/web/img/qrcard_dark.jpeg b/web/img/qrcard_dark.jpeg new file mode 100644 index 0000000..818df19 Binary files /dev/null and b/web/img/qrcard_dark.jpeg differ diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..75e0506 --- /dev/null +++ b/web/index.html @@ -0,0 +1,125 @@ + + + + + + + + 芜忧皖江 + + + + + + + + + + +
+
+
+
+

芜忧皖江

+

更易用的芜湖学院客户端

+ +

+ 更多版本 + + IPA 下载 +

+
+ +
+
+
+ 芜忧皖江应用截图 +
+
+
+
+
+ +
+
+

功能

+

校园生活,掌上就有。

+
+
+
+
+

生活

+ +
+
+
+
+ 便捷生活功能截图 +
+
+
+
+
+
+

通知

+ +
+
+
+
+ 校园通知功能截图 +
+
+
+
+
+
+

支付

+ +
+
+
+
+ 支付功能截图 +
+
+
+
+
+
+
+ + + + diff --git a/web/script.js b/web/script.js new file mode 100644 index 0000000..513ad14 --- /dev/null +++ b/web/script.js @@ -0,0 +1,24 @@ +const screenshotImages = document.querySelectorAll('[data-dark-src][data-light-src]'); +const colorScheme = window.matchMedia('(prefers-color-scheme: dark)'); + +function applyScreenshotTheme(theme) { + screenshotImages.forEach((image) => { + image.dataset.displayedTheme = theme; + image.src = image.dataset[`${theme}Src`]; + }); +} + +screenshotImages.forEach((image) => { + image.addEventListener('error', () => { + if (image.dataset.displayedTheme === 'light') { + image.dataset.displayedTheme = 'dark'; + image.src = image.dataset.darkSrc; + } + }); +}); + +applyScreenshotTheme(colorScheme.matches ? 'dark' : 'light'); + +colorScheme.addEventListener('change', (event) => { + applyScreenshotTheme(event.matches ? 'dark' : 'light'); +}); diff --git a/web/styles/base.css b/web/styles/base.css new file mode 100644 index 0000000..d9248cf --- /dev/null +++ b/web/styles/base.css @@ -0,0 +1,45 @@ +:root { + color-scheme: light dark; + --brand: #22c55e; + --mint: #a2efc1; + --teal: #43c99a; + --ink: #111827; + --muted: #6b7280; + --surface: #ffffff; + --page: #f9fafb; + --line: #e5e7eb; + --phone: #111827; +} + +* { box-sizing: border-box; } +html { scroll-behavior: smooth; } +body { min-width: 320px; margin: 0; color: var(--ink); background: var(--page); font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; } +button, a { font: inherit; } +button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand), white 25%); outline-offset: 3px; } +h1, h2, h3, p { margin-top: 0; } + +.site-header { position: sticky; top: 0; z-index: 10; padding: 13px 24px; background: color-mix(in srgb, var(--page), transparent 20%); border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 42%); backdrop-filter: blur(16px); } +.nav-shell { width: min(1120px, 100%); height: 46px; margin: auto; display: flex; justify-content: space-between; align-items: center; } +.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; } +.brand img { border-radius: 9px; box-shadow: 0 4px 12px rgb(34 197 94 / 22%); } +.nav-links { display: flex; align-items: center; gap: 6px; } +.nav-link { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; } +.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--brand), transparent 92%); } +.nav-link i { font-size: 15px; } + +.site-footer { padding: 34px 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; text-align: center; } +.site-footer a { color: inherit; text-decoration: none; } +.site-footer a:hover { color: var(--ink); } +.footer-note { margin: 8px 0 0; font-size: 12px; } + +@media (max-width: 760px) { + .site-header { padding-inline: 16px; } + .nav-links { gap: 0; } + .nav-link { padding-inline: 8px; font-size: 13px; } +} + +@media (prefers-color-scheme: dark) { + :root { --ink: #f3f4f6; --muted: #9ca3af; --surface: #273244; --page: #1f2937; --line: #374151; --phone: #111827; } +} + +@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } } diff --git a/web/styles/features.css b/web/styles/features.css new file mode 100644 index 0000000..80f1c91 --- /dev/null +++ b/web/styles/features.css @@ -0,0 +1,41 @@ +.features { width: min(100% - 48px, 1120px); min-height: calc(100svh - 73px); height: calc(100svh - 73px); margin: 0 auto; padding: 58px 0 54px; display: flex; flex-direction: column; border-top: 1px solid var(--line); } +.features-heading p { margin-bottom: 12px; color: var(--brand); font-size: 14px; font-weight: 700; } +.features-heading h2 { max-width: 600px; margin-bottom: 34px; font-size: 42px; font-weight: 700; line-height: 1.2; letter-spacing: 0; } +.feature-bento { min-height: 0; flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); grid-auto-rows: minmax(0, 1fr); align-items: stretch; gap: 18px; } +.feature-card { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; } +.feature-copy { padding: 52px 52px 0; } +.feature-copy h3 { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.16; letter-spacing: 0; } +.feature-shot { width: min(70%, 250px); min-height: 250px; max-height: 333px; margin: 24px auto 0; flex: 1 1 auto; overflow: hidden; background: transparent; } +.feature-phone { width: 100%; height: auto; padding: 6px; background: var(--phone); border: 1px solid color-mix(in srgb, var(--phone), white 18%); border-radius: 28px; box-shadow: 0 18px 34px rgb(17 24 39 / 20%); } +.feature-phone-screen { width: 100%; aspect-ratio: 9 / 19.5; height: auto; overflow: hidden; background: var(--page); border-radius: 21px; } +.feature-phone-screen img:not([hidden]) { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; } + +@media (max-width: 760px) { + .features { width: min(100% - 32px, 1120px); min-height: auto; height: auto; padding: 82px 0; display: block; } + .features-heading h2 { margin-bottom: 40px; font-size: 34px; } + .feature-bento { display: grid; grid-template-columns: 1fr; gap: 14px; } + .feature-card, .feature-card--notice { grid-row: auto; min-height: 440px; } + .feature-copy { padding: 34px 34px 0; } + .feature-copy h3 { font-size: 33px; } + .feature-shot { width: min(74%, 250px); margin-top: 20px; } +} + +@media (max-width: 989px) and (min-width: 761px) { + .features { min-height: auto; height: auto; display: block; } + .feature-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 302px); grid-auto-rows: auto; align-items: stretch; } + .feature-card--notice { grid-area: 1 / 1; } + .feature-card--life { grid-area: 1 / 2 / 3 / 3; } + .feature-card--payment { grid-area: 2 / 1; } + .feature-card--life, .feature-card--notice, .feature-card--payment { justify-content: space-between; } + .feature-card--notice, .feature-card--payment { justify-content: flex-start; } + .feature-card--notice .feature-copy, .feature-card--payment .feature-copy { padding: 28px 32px 0; } + .feature-card--notice .feature-copy h3, .feature-card--payment .feature-copy h3 { font-size: 32px; } + .feature-card--notice .feature-shot, .feature-card--payment .feature-shot { width: min(56%, 211px); min-height: 211px; max-height: 211px; margin: 24px auto 0; flex: 0 0 211px; } + .feature-card--life .feature-copy { padding: 36px 40px 0; } + .feature-card--life .feature-copy h3 { font-size: 36px; } + .feature-card--life .feature-shot { width: min(66%, 235px); min-height: 493px; max-height: none; margin: 0 auto; flex: 0 0 493px; } +} + +@media (min-width: 990px) { + .feature-card--life, .feature-card--notice, .feature-card--payment { height: 500px; min-height: 500px; } +} diff --git a/web/styles/hero.css b/web/styles/hero.css new file mode 100644 index 0000000..2be2f4d --- /dev/null +++ b/web/styles/hero.css @@ -0,0 +1,51 @@ +.hero { min-height: calc(100svh - 73px); display: grid; place-items: center; padding: 52px clamp(40px, 5vw, 80px); } +.hero-layout { width: min(100%, 1030px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: clamp(56px, 11vw, 150px); } +.hero-copy { padding-block: 42px; } +h1 { margin-bottom: 0; font-size: 78px; font-weight: 700; line-height: 1.08; letter-spacing: 0; } +h1 span { display: block; background: linear-gradient(105deg, var(--brand), var(--mint) 53%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; } +.hero-tagline { margin: 24px 0 28px; color: #6b7280; font-size: 18px; line-height: 1.5; } + +.download-actions { width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; gap: 20px; } +.download-button { min-height: 52px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; } +.download-button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand), var(--line) 60%); transform: translateY(-1px); } +.download-button > i { font-size: 20px; } +.download-button span { font-size: 15px; font-weight: 600; } +.download-button--android { color: white; border-color: transparent; background: linear-gradient(108deg, var(--brand), var(--teal)); box-shadow: 0 15px 30px rgb(34 197 94 / 18%); } +.download-button--android:hover { color: white; border-color: transparent; } +.download-meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; } +.download-meta a { color: inherit; text-decoration: none; } +.download-meta a:hover { color: var(--ink); } + +.hero-device { display: grid; place-items: center; } +.phone-shell { position: relative; width: clamp(230px, calc(46.15svh - 92px), 300px); padding: 10px; background: var(--phone); border: 1px solid color-mix(in srgb, var(--phone), white 17%); border-radius: 42px; box-shadow: 0 28px 60px rgb(17 24 39 / 28%); } +.phone-screen { width: 100%; aspect-ratio: 9 / 19.5; height: auto; overflow: hidden; border-radius: 34px; background: var(--surface); } +.phone-screenshot:not([hidden]) { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; } + +@media (max-width: 880px) { + .hero { padding: 72px 24px 68px; } + .hero-layout { grid-template-columns: 1fr; gap: 46px; justify-items: center; text-align: center; } + .hero-copy { padding: 0; display: flex; flex-direction: column; align-items: center; } + .hero-device { order: 2; } + .phone-shell { width: min(260px, 74vw); } +} + +@media (max-width: 760px) { + h1 { font-size: 62px; } +} + +@media (max-width: 989px) and (min-width: 761px) { + h1 { font-size: 64px; } +} + +@media (max-height: 700px) and (min-width: 881px) { + .hero { padding-block: 20px; } + h1 { font-size: 56px; } + .hero-copy { padding-block: 0; } + .download-actions { gap: 14px; } + .download-button { min-height: 46px; } +} + +@media (prefers-color-scheme: dark) { + .phone-screen { background: #1f2937; } + .hero-tagline { color: #aeb6c4; } +} diff --git a/web/tests/site.test.mjs b/web/tests/site.test.mjs new file mode 100644 index 0000000..b917329 --- /dev/null +++ b/web/tests/site.test.mjs @@ -0,0 +1,114 @@ +import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; +import test from 'node:test'; + +const root = new URL('../', import.meta.url); + +test('landing page uses a split app hero and focuses on product features', async () => { + const [html, baseCss, heroCss, featuresCss, script] = await Promise.all([ + readFile(new URL('index.html', root), 'utf8'), + readFile(new URL('styles/base.css', root), 'utf8'), + readFile(new URL('styles/hero.css', root), 'utf8'), + readFile(new URL('styles/features.css', root), 'utf8'), + readFile(new URL('script.js', root), 'utf8'), + ]); + const css = [baseCss, heroCss, featuresCss].join('\n'); + + assert.match(html, /芜忧皖江/); + assert.match(html, /<link rel="stylesheet" href="styles\/base\.css" \/>/); + assert.match(html, /<link rel="stylesheet" href="styles\/hero\.css" \/>/); + assert.match(html, /<link rel="stylesheet" href="styles\/features\.css" \/>/); + assert.doesNotMatch(html, /href="styles\.css"/); + assert.match(html, /<script src="script\.js\?v=theme-screenshots-2" defer><\/script>/); + assert.match(html, /bootstrap-icons/); + assert.match(html, /<p class="hero-tagline">更易用的芜湖学院客户端<\/p>/); + assert.match(html, /class="hero-layout"/); + assert.match(html, /class="phone-shell"/); + assert.match(html, /<img class="phone-screenshot" src="img\/homepage_dark\.jpeg" data-dark-src="img\/homepage_dark\.jpeg" data-light-src="img\/homepage\.jpeg" width="1080" height="2340" alt="芜忧皖江应用截图" \/>/); + assert.doesNotMatch(html, /phone-speaker/); + assert.match(html, /href="https:\/\/github\.com\/Coldin04\/uwhLife"/); + assert.match(html, /href="https:\/\/gitee\.com\/coldin04\/uwhlife_source\/releases"/); + assert.match(html, /href="https:\/\/gitee\.com\/coldin04\/uwhlife_source\/releases\/download\/latest\/UWHLife_android_arm64-v8a\.apk"/); + assert.match(html, /href="https:\/\/stikstore\.app\/altdirect\/\?url=https:\/\/raw\.giteeusercontent\.com\/coldin04\/uwhlife_source\/raw\/master\/source\.json"/); + assert.match(html, /href="https:\/\/gitee\.com\/coldin04\/uwhlife_source\/releases\/download\/latest\/UWHLife_unsigned\.ipa"/); + assert.match(html, /class="download-button download-button--android"/); + assert.match(html, /class="download-button download-button--ios"/); + assert.match(html, /更多版本/); + assert.match(html, /IPA 下载/); + assert.match(html, /Android APK/); + assert.match(html, /AltStore/); + assert.match(html, /便捷生活/); + assert.match(html, /校园通知/); + assert.match(html, /支付/); + assert.doesNotMatch(html, /缴费/); + assert.match(html, /class="feature-bento"/); + assert.match(html, /class="feature-card feature-card--life"/); + assert.match(html, /class="feature-card feature-card--notice"/); + assert.match(html, /class="feature-card feature-card--payment"/); + assert.match(html, /© 2026 uwhLife contributors · MIT License/); + assert.match(html, /仅供学习使用。/); + assert.match(html, /href="https:\/\/cold04\.com"/); + assert.equal((html.match(/class="feature-phone"/g) ?? []).length, 3); + assert.match(html, /class="feature-card feature-card--life"[\s\S]*?<img class="feature-screenshot" src="img\/applist_dark\.jpeg" data-dark-src="img\/applist_dark\.jpeg" data-light-src="img\/applist\.jpeg" width="1080" height="2340" alt="便捷生活功能截图" \/>/); + assert.match(html, /class="feature-card feature-card--notice"[\s\S]*?<img class="feature-screenshot" src="img\/message_dark\.jpeg" data-dark-src="img\/message_dark\.jpeg" data-light-src="img\/message\.jpeg" width="1080" height="2340" alt="校园通知功能截图" \/>/); + assert.match(html, /class="feature-card feature-card--payment"[\s\S]*?<img class="feature-screenshot" src="img\/qrcard_dark\.jpeg" data-dark-src="img\/qrcard_dark\.jpeg" data-light-src="img\/qrcard\.jpeg" width="1080" height="2340" alt="支付功能截图" \/>/); + assert.match(script, /const screenshotImages = document\.querySelectorAll\('\[data-dark-src\]\[data-light-src\]'\);/); + assert.match(script, /function applyScreenshotTheme\(theme\)/); + assert.match(script, /image\.src = image\.dataset\[`\$\{theme\}Src`\];/); + assert.match(script, /image\.dataset\.displayedTheme === 'light'/); + assert.doesNotMatch(html, /data-screenshot-src="assets\/feature-/); + assert.match(html, /<h2 id="features-title">校园生活,掌上就有。<\/h2>/); + assert.doesNotMatch(html, /theme-toggle/); + assert.doesNotMatch(html, /aria-disabled="true"/); + assert.doesNotMatch(html, /更多下载/); + assert.match(script, /const colorScheme = window\.matchMedia\('\(prefers-color-scheme: dark\)'\);/); + assert.match(script, /colorScheme\.addEventListener\('change'/); + assert.doesNotMatch(script, /localStorage|themeToggle|root\.dataset/); + assert.match(css, /prefers-color-scheme: dark/); + assert.match(css, /prefers-reduced-motion: reduce/); + assert.match(css, /#22c55e/i); + assert.match(css, /\.nav-links \{[^}]*display:\s*flex;[^}]*align-items:\s*center;/s); + assert.match(css, /\.download-actions \{[^}]*width:\s*fit-content;[^}]*display:\s*flex;[^}]*flex-wrap:\s*wrap;[^}]*gap:\s*20px;/s); + assert.match(css, /\.download-button \{[^}]*min-height:\s*52px;[^}]*border-radius:\s*999px;/s); + assert.match(css, /\.hero-tagline \{[^}]*margin:\s*24px\s+0\s+28px;[^}]*color:\s*#6b7280;/s); + assert.match(css, /@media \(prefers-color-scheme: dark\) \{[\s\S]*\.hero-tagline \{[^}]*color:\s*#aeb6c4;/); + assert.doesNotMatch(css, /\.theme-toggle|:root\[data-theme=/); + assert.match(css, /\.hero \{[^}]*place-items:\s*center;[^}]*padding:\s*52px\s+clamp\(40px,\s*5vw,\s*80px\);/s); + assert.match(css, /\.phone-shell \{[^}]*width:\s*clamp\(230px,\s*calc\(46\.15svh\s*-\s*92px\),\s*300px\);/s); + assert.match(css, /@media \(max-width:\s*880px\) \{[\s\S]*\.hero \{[^}]*padding:\s*72px\s+24px\s+68px;/); + assert.match(css, /@media \(max-width:\s*880px\) \{[\s\S]*\.hero-layout \{[^}]*grid-template-columns:\s*1fr;[^}]*justify-items:\s*center;[^}]*text-align:\s*center;/); + assert.match(css, /@media \(max-width:\s*880px\) \{[\s\S]*\.hero-copy \{[^}]*display:\s*flex;[^}]*align-items:\s*center;/); + assert.match(css, /@media \(max-width:\s*880px\) \{[\s\S]*\.hero-device \{[^}]*order:\s*2;/); + assert.match(css, /@media \(max-height:\s*700px\) and \(min-width:\s*881px\) \{[\s\S]*\.hero \{[^}]*padding-block:\s*20px;/); + assert.match(css, /@media \(max-height:\s*700px\) and \(min-width:\s*881px\) \{[\s\S]*\.download-button \{[^}]*min-height:\s*46px;/); + assert.match(css, /\.feature-card \{[^}]*color:\s*var\(--ink\);/s); + assert.match(css, /\.feature-phone-screen img:not\(\[hidden\]\)/); + assert.match(css, /\.phone-screenshot:not\(\[hidden\]\)/); + assert.match(css, /\.phone-screenshot:not\(\[hidden\]\) \{[^}]*object-fit:\s*contain;[^}]*object-position:\s*center top;/s); + assert.match(css, /\.phone-screen \{[^}]*aspect-ratio:\s*9\s*\/\s*19\.5;[^}]*height:\s*auto;/s); + assert.match(css, /\.feature-phone \{[^}]*border:/s); + assert.match(css, /\.feature-shot \{[^}]*width:\s*min\(70%,\s*250px\);[^}]*min-height:\s*250px;[^}]*max-height:\s*333px;[^}]*flex:\s*1\s+1\s+auto;[^}]*overflow:\s*hidden;/s); + assert.match(css, /\.feature-phone-screen \{[^}]*aspect-ratio:\s*9\s*\/\s*19\.5;[^}]*height:\s*auto;/s); + assert.match(css, /\.feature-phone-screen img:not\(\[hidden\]\) \{[^}]*object-fit:\s*contain;[^}]*object-position:\s*center top;/s); + assert.doesNotMatch(css, /\.feature-shot--left \{|\.feature-shot--right \{|\.feature-shot--bottom \{/); + assert.match(css, /--page:\s*#f9fafb/); + assert.match(css, /--page:\s*#1f2937/); + assert.match(css, /\.feature-bento \{[^}]*grid-template-columns:\s*repeat\(auto-fit,/s); + assert.match(css, /\.feature-bento \{[^}]*align-items:\s*stretch;/s); + assert.match(css, /\.feature-card \{[^}]*justify-content:\s*space-between;/s); + assert.match(css, /\.features \{[^}]*min-height:\s*calc\(100svh - 73px\)/s); + assert.match(css, /\.features \{[^}]*;\s*height:\s*calc\(100svh - 73px\)/s); + assert.match(css, /\.feature-card \{[^}]*background:\s*var\(--surface\)/s); + assert.match(css, /\.site-footer a \{[^}]*color:\s*inherit;[^}]*text-decoration:\s*none;/s); + assert.doesNotMatch(css, /#e2edff|#fff6dc|#e2f4e8/); + assert.match(css, /@media \(max-width: 989px\) and \(min-width: 761px\) \{[\s\S]*\.feature-bento \{[^}]*grid-template-rows:\s*repeat\(2,\s*302px\);[^}]*align-items:\s*stretch;/); + assert.match(css, /@media \(max-width: 989px\) and \(min-width: 761px\) \{[\s\S]*\.feature-card--notice \{[^}]*grid-area:\s*1\s*\/\s*1;/); + assert.match(css, /\.feature-card--life \{[^}]*grid-area:\s*1\s*\/\s*2\s*\/\s*3\s*\/\s*3;/); + assert.match(css, /\.feature-card--payment \{[^}]*grid-area:\s*2\s*\/\s*1;/); + assert.match(css, /\.feature-card--notice, \.feature-card--payment \{[^}]*justify-content:\s*flex-start;/s); + assert.match(css, /\.feature-card--notice \.feature-shot, \.feature-card--payment \.feature-shot \{[^}]*width:\s*min\(56%,\s*211px\);[^}]*min-height:\s*211px;[^}]*max-height:\s*211px;[^}]*margin:\s*24px\s+auto\s+0;[^}]*flex:\s*0\s+0\s+211px;/s); + assert.match(css, /\.feature-card--life \.feature-shot \{[^}]*width:\s*min\(66%,\s*235px\);[^}]*min-height:\s*493px;[^}]*max-height:\s*none;[^}]*flex:\s*0\s+0\s+493px;/s); + assert.match(css, /@media \(max-width: 989px\) and \(min-width: 761px\) \{[\s\S]*h1 \{[^}]*font-size:\s*64px;/); + assert.doesNotMatch(css, /\.feature-card--life \.feature-shot \{[^}]*aspect-ratio:\s*5\s*\/\s*9;/s); + assert.match(css, /@media \(min-width:\s*990px\) \{[\s\S]*\.feature-card--life, \.feature-card--notice, \.feature-card--payment \{[^}]*height:\s*500px;[^}]*min-height:\s*500px;/); +});