Skip to content

Commit a994558

Browse files
committed
merge contact and about pages, add anti email scraper component
1 parent 79fe27a commit a994558

File tree

5 files changed

+31
-12
lines changed

5 files changed

+31
-12
lines changed

app/about/ContactEmail.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"use client"
2+
3+
import { useEffect, useState } from "react"
4+
import { motion } from "framer-motion";
5+
6+
export default function ContactEmail() {
7+
const [isShown, setIsShown] = useState<boolean>(false);
8+
const [email, setEmail] = useState<string>()
9+
10+
useEffect(() => {
11+
setEmail(isShown ? "newclients@devsh.eu" : "");
12+
}, [isShown])
13+
14+
return (
15+
<motion.div
16+
onHoverStart={() => setIsShown(true)}
17+
onHoverEnd={() => setIsShown(false)}
18+
className="bg-neutral-950 px-4 py-2">
19+
{isShown ? email : "Hover on this text to show"}
20+
</motion.div>
21+
)
22+
}

app/about/page.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import Link from "next/link"
2+
import TextBlock from "../components/TextBlock"
3+
import ContactEmail from "./ContactEmail"
24

35
export default function Page() {
46
return (
57
<div className="container mx-auto p-4 flex flex-col gap-4 sm:gap-8 sm:items-center h-full justify-center">
68
<h1>About Us</h1>
7-
<div className="prose sm:prose-sm md:prose-md lg:prose-lg xl:prose-xl 2xl:prose-2xl prose-invert font-thin">
9+
<TextBlock>
810
DevSH Graphics Programming (DevSH) sp. z o.o. ( devsh.eu ) is a company specializing in High
911
Performance Computing with a particular focus on Computer Graphics and GPU Programming.
1012
Currently boasting a team of 10 Consultants and 3 separate concurrent projects.
@@ -18,7 +20,11 @@ export default function Page() {
1820
We’ve honed the culture of remote work, since the company’s inception before 2019. Subject to
1921
availability of consultants and specific expertise required their regular working hours overlap the
2022
normal working hours from San Francisco to Sydney.
21-
</div>
23+
</TextBlock>
24+
<h1>Contact</h1>
25+
<TextBlock>
26+
You can contact us at e-mail address <ContactEmail/>
27+
</TextBlock>
2228
</div>
2329
)
2430
}

app/components/Navbar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const links: Link[] = [
1616
{ name: "About", url: "/about" },
1717
{ name: "Nabla", url: "/nabla" },
1818
{ name: "Services", url: "/services" },
19-
{ name: "Contact", url: "/contact" },
2019
{ name: "Blog", url: "/blog" },
2120
]
2221

app/contact/page.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/services/page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Link from "next/link"
2+
import TextBlock from "../components/TextBlock"
23

34
type PastProjectProps =
45
{
@@ -23,10 +24,6 @@ function PastProject({company, companyWebsite, projects}: PastProjectProps) {
2324
)
2425
}
2526

26-
function TextBlock({children}: { children?: React.ReactNode }) {
27-
return <div className="prose sm:prose-sm md:prose-md lg:prose-lg xl:prose-xl 2xl:prose-2xl prose-invert font-thin px-2">{children}</div>
28-
}
29-
3027
function Chapter({title, children}: {title: string, children?: React.ReactNode}) {
3128
return (
3229
<div className="flex flex-col gap-4">

0 commit comments

Comments
 (0)