refactor(footer): remove o convite de contato duplicado (fica a secao Contato acima) e mantem o e-mail direto
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
2a428ec7a2
commit
35a950a9b1
2 files changed
+5
-21
No files matched your search
@@ -2,12 +2,13 @@ import { render, screen } from "@testing-library/react";
|
|||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
|
|
||||||
describe("Footer contact and navigation", () => {
|
describe("Footer contact and navigation", () => {
|
||||||
it("offers project contact and a direct mailto link", () => {
|
it("offers a direct mailto link without repeating the contact call to action", () => {
|
||||||
render(<Footer />);
|
render(<Footer />);
|
||||||
|
|
||||||
|
// o convite principal fica na secao Contato, logo acima do rodape
|
||||||
expect(
|
expect(
|
||||||
screen.getByRole("link", { name: "Conversar sobre meu projeto" }),
|
screen.queryByRole("link", { name: "Conversar sobre meu projeto" }),
|
||||||
).toHaveAttribute("href", "/#contact");
|
).not.toBeInTheDocument();
|
||||||
|
|
||||||
const emailLink = screen.getByRole("link", {
|
const emailLink = screen.getByRole("link", {
|
||||||
name: "[email protected]",
|
name: "[email protected]",
|
||||||
|
|||||||
@@ -52,24 +52,7 @@ export default function Footer() {
|
|||||||
<div>
|
<div>
|
||||||
<div className="ds-kicker">Contato</div>
|
<div className="ds-kicker">Contato</div>
|
||||||
<span className="ds-draw-line" />
|
<span className="ds-draw-line" />
|
||||||
<h3 className="ds-card-title">
|
<div className="mt-sp-5">
|
||||||
Vamos conversar sobre o software que seu negócio precisa?
|
|
||||||
</h3>
|
|
||||||
<p className="ds-copy max-w-[48ch]">
|
|
||||||
Conte o que você quer construir, integrar ou melhorar. Podemos
|
|
||||||
discutir o contexto, as prioridades e o escopo antes de definir
|
|
||||||
os próximos passos.
|
|
||||||
</p>
|
|
||||||
<MagneticButton
|
|
||||||
as="a"
|
|
||||||
href="/#contact"
|
|
||||||
className="ds-link ds-link-accent mt-sp-6 inline-flex min-h-11 items-center px-sp-4 font-semibold"
|
|
||||||
strength={0.2}
|
|
||||||
>
|
|
||||||
Conversar sobre meu projeto
|
|
||||||
</MagneticButton>
|
|
||||||
|
|
||||||
<div className="mt-sp-6">
|
|
||||||
<p className="mb-2 text-[12px] tracking-[0.02em] text-[var(--meta)]">
|
<p className="mb-2 text-[12px] tracking-[0.02em] text-[var(--meta)]">
|
||||||
E-mail direto
|
E-mail direto
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in new issue
Block a user