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:
parent
3309972c77
commit
d9bf8a09e9
8 changed files with 15 additions and 15 deletions
|
|
@ -16,7 +16,7 @@ export function CallToAction() {
|
|||
Je na čase pozvednout Vaši infrastrukturu na dnešní standardy. Infrastruktura má ukázat Vaši aplikaci světu, ne ji držet při zemi.
|
||||
</p>
|
||||
<Button
|
||||
href="mailto:iam@vojtechmares.com"
|
||||
href="mailto:jsem@vojtechmares.com"
|
||||
color="white"
|
||||
size="large"
|
||||
className="mt-10"
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export function Hero() {
|
|||
</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="mailto:iam@vojtechmares.com"
|
||||
href="mailto:jsem@vojtechmares.com"
|
||||
size="large"
|
||||
>
|
||||
Napište mi
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ export function Services() {
|
|||
name="Konzultace"
|
||||
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í."
|
||||
href="mailto:iam@vojtechmares.com"
|
||||
href="mailto:jsem@vojtechmares.com"
|
||||
/>
|
||||
<Service
|
||||
featured
|
||||
|
|
@ -112,7 +112,7 @@ export function Services() {
|
|||
name="Implementace"
|
||||
price="Cena dohodou"
|
||||
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"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export function Footer() {
|
|||
</li>
|
||||
<li>
|
||||
<Link
|
||||
href="mailto:iam@vojtechmares.com"
|
||||
href="mailto:jsem@vojtechmares.com"
|
||||
className="underline"
|
||||
>
|
||||
iam@vojtechmares.com
|
||||
|
|
@ -98,7 +98,7 @@ export function Footer() {
|
|||
Nebojte se zeptat a společně vymyslíme, jak vám mohu pomoci.
|
||||
</p>
|
||||
<Button
|
||||
href="mailto:iam@vojtechmares.com"
|
||||
href="mailto:jsem@vojtechmares.com"
|
||||
className="mt-5"
|
||||
>
|
||||
Napište mi
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export function Header() {
|
|||
</div>
|
||||
</div>
|
||||
<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">
|
||||
Napište mi{" "}
|
||||
<span className="hidden lg:inline">ještě dnes</span>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export function Navigation() {
|
|||
</div>
|
||||
</div>
|
||||
<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">
|
||||
Napište mi{" "}
|
||||
<span className="hidden lg:inline">ještě dnes</span>
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ export default function TrainingLayout({ content, meta }: Props) {
|
|||
variant="solid"
|
||||
color="amber"
|
||||
className="w-full text-lg font-medium"
|
||||
href="mailto:iam@vojtechmares.com"
|
||||
href="mailto:jsem@vojtechmares.com"
|
||||
>
|
||||
Nezávazně poptat
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { expect, test } from "vitest";
|
||||
import { render, screen, within } from "@testing-library/react";
|
||||
import Home from "../pages";
|
||||
import Page from "../app/page";
|
||||
|
||||
test("home", () => {
|
||||
render(<Home />);
|
||||
test("homepage", () => {
|
||||
render(<Page />);
|
||||
const main = within(screen.getByRole("main"));
|
||||
expect(
|
||||
main.getByRole("heading", {
|
||||
|
|
@ -19,18 +19,18 @@ test("home", () => {
|
|||
if (element instanceof HTMLSpanElement) {
|
||||
const parent = element.closest("a");
|
||||
expect(parent?.getAttribute("href")).toBe(
|
||||
"mailto:iam@vojtechmares.com"
|
||||
"mailto:jsem@vojtechmares.com"
|
||||
)
|
||||
return;
|
||||
}
|
||||
|
||||
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 link = within(footer.getByRole('link'))
|
||||
Reference in a new issue