1
0
Fork 0

refactor: replace meet link with write me an email link

I was using Calendly for the meetings, but none ever come through at this time, so I canceled Calendly subscription and switched to email only communications
This commit is contained in:
Vojtěch Mareš 2023-06-06 14:32:59 +02:00
parent 48863a160b
commit 4bb6275001
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
5 changed files with 25 additions and 16 deletions

View file

@ -16,12 +16,12 @@ export function CallToAction() {
Je na čase pozvednout Vaši infrastrukturu na dnešní standardy. Infrastruktura ukázat Vaši aplikaci světu, ne ji držet při zemi.
</p>
<Button
href="https://calendly.com/vojtechmares/30min"
href="mailto:iam@vojtechmares.com"
color="white"
size="large"
className="mt-10"
>
Domluvme si schůzku
Napište mi
</Button>
</div>
</Container>

View file

@ -45,15 +45,11 @@ export function Hero() {
dluhu a připravíme Vaší IT infrastrukturu na rapidní škálování.
</p>
<div className="mt-10 flex flex-col gap-y-6 md:gap-y-0 sm:flex-row sm:justify-start sm:gap-x-6">
<Button href="https://calendly.com/vojtechmares/30min" size="large">
Domluvme si schůzku
</Button>
<Button
href="mailto:iam@vojtechmares.com"
variant="outline"
size="large"
>
Napište mi email
Napište mi
</Button>
</div>
<div className="mt-10 "> {/* mt-36 lg:mt-44 */}

View file

@ -112,8 +112,8 @@ export function Pricing() {
name="Implementace"
price="Cena dohodou"
description="Analyzujeme Vaši situaci, projdeme možnosti, vybereme nejlepší řešení a společně jej nasadíme."
href="https://calendly.com/vojtechmares/30min"
buttonText="Domluvme si schůzku"
href="mailto:iam@vojtechmares.com"
buttonText="Napište mi"
/>
</div>
</Container>

View file

@ -98,10 +98,10 @@ export function Footer() {
Nebojte se zeptat a společně vymyslíme, jak vám mohu pomoci.
</p>
<Button
href="https://calendly.com/vojtechmares/30min"
href="mailto:iam@vojtechmares.com"
className="mt-5"
>
Domluvme si schůzku
Napište mi
</Button>
</div>
</div>

View file

@ -12,12 +12,25 @@ test("home", () => {
})
).toBeDefined();
const meets = screen.getAllByText(/Domluvme si schůzku/i);
meets.map((m) =>
expect(m.getAttribute("href")).toBe(
"https://calendly.com/vojtechmares/30min"
const writeMe = screen.getAllByText(/Napište mi/i);
writeMe.map((element) => {
// First button (in navbar) is <a><span>...</span></a>, therefore we look for parent (closest) anchor element
if (element instanceof HTMLSpanElement) {
const parent = element.closest("a");
expect(parent?.getAttribute("href")).toBe(
"mailto:iam@vojtechmares.com"
)
);
return;
}
expect(element.getAttribute("href")).toBe(
"mailto:iam@vojtechmares.com"
)
});
expect(writeMe).toHaveLength(6);
// const footer = within(screen.getByRole('contentinfo'))
// const link = within(footer.getByRole('link'))