changes i dont like ft. black banner
This commit is contained in:
@@ -34,6 +34,27 @@
|
|||||||
border-bottom: 1px solid var(--line);
|
border-bottom: 1px solid var(--line);
|
||||||
background: #faf9f5;
|
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 {
|
.site-header__inner {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -260,6 +281,14 @@
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
.contact-strip {
|
||||||
|
padding-block: 8px;
|
||||||
|
}
|
||||||
|
.contact-strip__details {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
.site-header__toggle {
|
.site-header__toggle {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { Link, NavLink, Outlet, useLocation } from "react-router-dom";
|
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 { Arrow, WhatsAppAction } from "./Primitives";
|
||||||
import "./Layout.css";
|
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">
|
<div className="site-header__inner">
|
||||||
<Brand />
|
<Brand />
|
||||||
<button
|
<button
|
||||||
|
|||||||
+4
-1
@@ -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."),
|
page.getByText("The starting point for a world of possibilities."),
|
||||||
).toHaveCount(0);
|
).toHaveCount(0);
|
||||||
await expect(page.locator(".contact-banner")).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.locator(".site-nav__contact")).toHaveCount(0);
|
||||||
await expect(
|
await expect(
|
||||||
page.getByRole("link", { name: "Manufacturing", exact: true }),
|
page.getByRole("link", { name: "Manufacturing", exact: true }),
|
||||||
|
|||||||
Reference in New Issue
Block a user