changes i dont like ft. black banner

This commit is contained in:
2026-10-08 18:45:06 -04:00
parent 65471497c0
commit b5c6e1866b
3 changed files with 41 additions and 2 deletions
+29
View File
@@ -34,6 +34,27 @@
border-bottom: 1px solid var(--line);
background: #faf9f5;
}
.contact-strip {
display: flex;
justify-content: center;
padding: 9px var(--page-gutter);
background: #111;
color: #fff;
font-size: 10px;
letter-spacing: 0.04em;
}
.contact-strip__details {
display: flex;
gap: 12px;
}
.contact-strip a {
color: inherit;
text-decoration: none;
}
.contact-strip a:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.site-header__inner {
display: flex;
justify-content: space-between;
@@ -260,6 +281,14 @@
padding-left: 10px;
font-size: 11px;
}
.contact-strip {
padding-block: 8px;
}
.contact-strip__details {
width: 100%;
justify-content: center;
gap: 8px;
}
.site-header__toggle {
display: flex;
justify-content: space-between;
+8 -1
View File
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { Link, NavLink, Outlet, useLocation } from "react-router-dom";
import { company, navigation } from "../data";
import { company, navigation, phoneHref } from "../data";
import { Arrow, WhatsAppAction } from "./Primitives";
import "./Layout.css";
@@ -32,6 +32,13 @@ function Header() {
}
}}
>
<div className="contact-strip">
<div className="contact-strip__details">
<a href={`mailto:${company.email}`}>{company.email}</a>
<span aria-hidden="true">·</span>
<a href={phoneHref(company.phone)}>{company.phone}</a>
</div>
</div>
<div className="site-header__inner">
<Brand />
<button
+4 -1
View File
@@ -207,7 +207,10 @@ test("homepage shows the four stat facts and nothing else", async ({
page.getByText("The starting point for a world of possibilities."),
).toHaveCount(0);
await expect(page.locator(".contact-banner")).toHaveCount(0);
await expect(page.locator(".contact-strip")).toHaveCount(0);
await expect(page.locator(".contact-strip")).toContainText(
"radheradhesynthetics@gmail.com",
);
await expect(page.locator(".contact-strip")).not.toContainText("Contact RRS");
await expect(page.locator(".site-nav__contact")).toHaveCount(0);
await expect(
page.getByRole("link", { name: "Manufacturing", exact: true }),