Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(web): center landing footer slogan across desktop widths

Gus1bfb9eb6a0ab
diff --git a/src/web/src/components/home/landing-page.module.css b/src/web/src/components/home/landing-page.module.css
index 9f8017313..ef42d1dc0 100644
--- a/src/web/src/components/home/landing-page.module.css
+++ b/src/web/src/components/home/landing-page.module.css
@@ -1233,7 +1233,7 @@
.footerPrimary {
display: grid;
- grid-template-columns: 1fr auto 1fr;
+ grid-template-columns: minmax(164px, 1fr) minmax(0, auto) minmax(164px, 1fr);
align-items: center;
gap: 32px;
}
@@ -1300,7 +1300,6 @@
@media (min-width: 640px) and (max-width: 1099px) {
.footerPrimary {
- grid-template-columns: auto minmax(0, 1fr) auto;
gap: 24px;
}
diff --git a/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts b/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts
index 2aa0c8caa..a990da056 100644
--- a/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts
+++ b/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts
@@ -21,7 +21,13 @@ test("homepage header, body, and footer share responsive content edges", async (
await page.goto("/")
for (const viewport of [
+ { width: 1920, height: 900, stacked: false },
{ width: 1440, height: 900, stacked: false },
+ { width: 1100, height: 900, stacked: false },
+ { width: 1099, height: 900, stacked: false },
+ { width: 1024, height: 900, stacked: false },
+ { width: 883, height: 900, stacked: false },
+ { width: 640, height: 900, stacked: false },
{ width: 768, height: 900, stacked: false },
{ width: 390, height: 844, stacked: true },
]) {
@@ -74,6 +80,8 @@ test("homepage header, body, and footer share responsive content edges", async (
const footerCenter = (geometry.footer.left + geometry.footer.right) / 2
const navigationCenter = (geometry.navigation.left + geometry.navigation.right) / 2
expect(Math.abs(navigationCenter - footerCenter)).toBeLessThanOrEqual(1)
+ const sloganCenter = (geometry.slogan.left + geometry.slogan.right) / 2
+ expect(Math.abs(sloganCenter - footerCenter)).toBeLessThanOrEqual(1)
if (viewport.stacked) {
expect(geometry.brand.bottom).toBeLessThanOrEqual(geometry.slogan.top)