1
0
Fork 0

refactor(vojtechmares.com): fix homepage test and change email iam@vojtechmares.com to jsem@...

Signed-off-by: Vojtech Mares <iam@vojtechmares.com>
This commit is contained in:
Vojtěch Mareš 2024-01-01 13:15:14 +01:00
parent 3309972c77
commit d9bf8a09e9
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
8 changed files with 15 additions and 15 deletions

View file

@ -16,7 +16,7 @@ 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="mailto:iam@vojtechmares.com" href="mailto:jsem@vojtechmares.com"
color="white" color="white"
size="large" size="large"
className="mt-10" className="mt-10"

View file

@ -44,7 +44,7 @@ export function Hero() {
</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 <Button
href="mailto:iam@vojtechmares.com" href="mailto:jsem@vojtechmares.com"
size="large" size="large"
> >
Napište mi Napište mi

View file

@ -98,7 +98,7 @@ export function Services() {
name="Konzultace" name="Konzultace"
price="2 000 CZK za hodinu" price="2 000 CZK za hodinu"
description="Chcete se poradit nebo si nevíte rady? Projdeme Váš současný stav a najdeme kde je problém a navrhneme řešení." description="Chcete se poradit nebo si nevíte rady? Projdeme Váš současný stav a najdeme kde je problém a navrhneme řešení."
href="mailto:iam@vojtechmares.com" href="mailto:jsem@vojtechmares.com"
/> />
<Service <Service
featured featured
@ -112,7 +112,7 @@ export function Services() {
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="mailto:iam@vojtechmares.com" href="mailto:jsem@vojtechmares.com"
buttonText="Napište mi" buttonText="Napište mi"
/> />
</div> </div>

View file

@ -20,7 +20,7 @@ export function Footer() {
</li> </li>
<li> <li>
<Link <Link
href="mailto:iam@vojtechmares.com" href="mailto:jsem@vojtechmares.com"
className="underline" className="underline"
> >
iam@vojtechmares.com iam@vojtechmares.com
@ -98,7 +98,7 @@ 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="mailto:iam@vojtechmares.com" href="mailto:jsem@vojtechmares.com"
className="mt-5" className="mt-5"
> >
Napište mi Napište mi

View file

@ -30,7 +30,7 @@ export function Header() {
</div> </div>
</div> </div>
<div className="flex items-center gap-x-5 md:gap-x-8"> <div className="flex items-center gap-x-5 md:gap-x-8">
<Button href="mailto:iam@vojtechmares.com" color="amber"> <Button href="mailto:jsem@vojtechmares.com" color="amber">
<span className="text-lg"> <span className="text-lg">
Napište mi{" "} Napište mi{" "}
<span className="hidden lg:inline">ještě dnes</span> <span className="hidden lg:inline">ještě dnes</span>

View file

@ -30,7 +30,7 @@ export function Navigation() {
</div> </div>
</div> </div>
<div className="flex items-center gap-x-5 md:gap-x-8"> <div className="flex items-center gap-x-5 md:gap-x-8">
<Button href="mailto:iam@vojtechmares.com" color="amber"> <Button href="mailto:jsem@vojtechmares.com" color="amber">
<span className="text-lg"> <span className="text-lg">
Napište mi{" "} Napište mi{" "}
<span className="hidden lg:inline">ještě dnes</span> <span className="hidden lg:inline">ještě dnes</span>

View file

@ -124,7 +124,7 @@ export default function TrainingLayout({ content, meta }: Props) {
variant="solid" variant="solid"
color="amber" color="amber"
className="w-full text-lg font-medium" className="w-full text-lg font-medium"
href="mailto:iam@vojtechmares.com" href="mailto:jsem@vojtechmares.com"
> >
Nezávazně poptat Nezávazně poptat
</Button> </Button>

View file

@ -1,9 +1,9 @@
import { expect, test } from "vitest"; import { expect, test } from "vitest";
import { render, screen, within } from "@testing-library/react"; import { render, screen, within } from "@testing-library/react";
import Home from "../pages"; import Page from "../app/page";
test("home", () => { test("homepage", () => {
render(<Home />); render(<Page />);
const main = within(screen.getByRole("main")); const main = within(screen.getByRole("main"));
expect( expect(
main.getByRole("heading", { main.getByRole("heading", {
@ -19,18 +19,18 @@ test("home", () => {
if (element instanceof HTMLSpanElement) { if (element instanceof HTMLSpanElement) {
const parent = element.closest("a"); const parent = element.closest("a");
expect(parent?.getAttribute("href")).toBe( expect(parent?.getAttribute("href")).toBe(
"mailto:iam@vojtechmares.com" "mailto:jsem@vojtechmares.com"
) )
return; return;
} }
expect(element.getAttribute("href")).toBe( expect(element.getAttribute("href")).toBe(
"mailto:iam@vojtechmares.com" "mailto:jsem@vojtechmares.com"
) )
}); });
expect(writeMe).toHaveLength(6); expect(writeMe).toHaveLength(4);
// const footer = within(screen.getByRole('contentinfo')) // const footer = within(screen.getByRole('contentinfo'))
// const link = within(footer.getByRole('link')) // const link = within(footer.getByRole('link'))