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. 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> </p>
<Button <Button
href="https://calendly.com/vojtechmares/30min" href="mailto:iam@vojtechmares.com"
color="white" color="white"
size="large" size="large"
className="mt-10" className="mt-10"
> >
Domluvme si schůzku Napište mi
</Button> </Button>
</div> </div>
</Container> </Container>

View file

@ -45,15 +45,11 @@ export function Hero() {
dluhu a připravíme Vaší IT infrastrukturu na rapidní škálování. dluhu a připravíme Vaší IT infrastrukturu na rapidní škálování.
</p> </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"> <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 <Button
href="mailto:iam@vojtechmares.com" href="mailto:iam@vojtechmares.com"
variant="outline"
size="large" size="large"
> >
Napište mi email Napište mi
</Button> </Button>
</div> </div>
<div className="mt-10 "> {/* mt-36 lg:mt-44 */} <div className="mt-10 "> {/* mt-36 lg:mt-44 */}

View file

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

View file

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

View file

@ -12,12 +12,25 @@ test("home", () => {
}) })
).toBeDefined(); ).toBeDefined();
const meets = screen.getAllByText(/Domluvme si schůzku/i); const writeMe = screen.getAllByText(/Napište mi/i);
meets.map((m) =>
expect(m.getAttribute("href")).toBe( writeMe.map((element) => {
"https://calendly.com/vojtechmares/30min" // 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 footer = within(screen.getByRole('contentinfo'))
// const link = within(footer.getByRole('link')) // const link = within(footer.getByRole('link'))