Skip to content

Commit 939aacc

Browse files
committed
change TextBlock component to TextUtils.TextBlock and add TextUtils.Paragraph
1 parent cb81618 commit 939aacc

File tree

6 files changed

+35
-30
lines changed

6 files changed

+35
-30
lines changed

app/about/ContactEmail.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client"
22

33
import { useEffect, useState } from "react"
4-
import { motion } from "framer-motion";
54

65
export default function ContactEmail() {
76
const [isShown, setIsShown] = useState<boolean>(false);
@@ -11,17 +10,11 @@ export default function ContactEmail() {
1110
setEmail(isShown ? "newclients@devsh.eu" : "");
1211
}, [isShown])
1312

14-
function toggleVisibility(visible: boolean) {
15-
if (visible) {
16-
setIsShown(true);
17-
}
18-
}
19-
2013
return (
21-
<div
14+
<span
2215
onClick={() => setIsShown(true)}
2316
className={`inline-block px-2 border ${isShown ? "border-teal-900" : "border-[#181818]"} rounded-md hover:border-teal-900 transition-colors duration-300`}>
2417
{isShown ? email : "Click to show"}
25-
</div>
18+
</span>
2619
)
2720
}

app/about/page.tsx

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
import Link from "next/link"
2-
import TextBlock from "../components/TextBlock"
2+
import { TextBlock, Paragraph } from "../components/TextUtils"
33
import ContactEmail from "./ContactEmail"
44

55
export default function Page() {
66
return (
77
<div className="container mx-auto max-sm:px-8 flex flex-col gap-4 sm:gap-8 sm:items-center h-full justify-center">
88
<h1>About Us</h1>
99
<TextBlock>
10-
DevSH Graphics Programming (DevSH) sp. z o.o. ( devsh.eu ) is a company specializing in High
11-
Performance Computing with a particular focus on Computer Graphics and GPU Programming.
12-
Currently boasting a team of 10 Consultants and 3 separate concurrent projects.
13-
We offer consulting and co-development to Third Parties with their own products, as well as con-
14-
duct our own Research and Development, developing Open-Source Middleware and Libraries.
15-
The primary mission for all of our self-funded developments is to advance open source ecosys-
16-
tems with innovative tooling, with a particular focus on Vulkan and SPIR-V.
17-
We maintain a single source HLSL202x/C++20 Standard Template Header Only Library and our
18-
Utility and Rapid Prototyping Framework <Link href="https://github.com/Devsh-Graphics-Programming/Nabla" target="_blank" rel="noopener noreferer" className="no-underline text-teal-600 devsh-link">Nabla</Link> designed {/*this prevents visual bug, "designed must stay here"*/}
19-
to give a CUDA-like programming experience in the Vulkan ecosystem.
20-
We’ve honed the culture of remote work, since the company’s inception before 2019. Subject to
21-
availability of consultants and specific expertise required their regular working hours overlap the
22-
normal working hours from San Francisco to Sydney.
10+
<Paragraph>
11+
DevSH Graphics Programming (DevSH) sp. z o.o. ( devsh.eu ) is a company specializing in High
12+
Performance Computing with a particular focus on Computer Graphics and GPU Programming.
13+
Currently boasting a team of 10 Consultants and 3 separate concurrent projects.
14+
We offer consulting and co-development to Third Parties with their own products, as well as con-
15+
duct our own Research and Development, developing Open-Source Middleware and Libraries.
16+
</Paragraph>
17+
18+
<Paragraph>
19+
The primary mission for all of our self-funded developments is to advance open source ecosys-
20+
tems with innovative tooling, with a particular focus on Vulkan and SPIR-V.
21+
We maintain a single source HLSL202x/C++20 Standard Template Header Only Library and our
22+
Utility and Rapid Prototyping Framework <Link href="https://github.com/Devsh-Graphics-Programming/Nabla" target="_blank" rel="noopener noreferer" className="no-underline text-teal-600 devsh-link">Nabla</Link> designed {/*this prevents visual bug, "designed must stay here"*/}
23+
to give a CUDA-like programming experience in the Vulkan ecosystem.
24+
</Paragraph>
25+
26+
<Paragraph>
27+
We’ve honed the culture of remote work, since the company’s inception before 2019. Subject to
28+
availability of consultants and specific expertise required their regular working hours overlap the
29+
normal working hours from San Francisco to Sydney.
30+
</Paragraph>
2331
</TextBlock>
2432
<h1>Contact</h1>
2533
<TextBlock>

app/components/TextBlock.tsx

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

app/components/TextUtils.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { ReactNode } from "react";
2+
3+
export function Paragraph({children}: {children?: ReactNode}) {
4+
return <p className="block prose sm:prose-sm md:prose-md lg:prose-lg xl:prose-xl 2xl:prose-2xl prose-invert font-thin">{children}</p>
5+
}
6+
7+
export function TextBlock({children}: {children?: ReactNode}) {
8+
return <div className="block prose sm:prose-sm md:prose-md lg:prose-lg xl:prose-xl 2xl:prose-2xl prose-invert font-thin">{children}</div>
9+
}

app/nabla/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import nablaScreenshot1 from "@/public/nabla_screenshot1.jpg"
33

44
import Image from "next/image"
55
import Slide from "./slide"
6-
import TextBlock from "../components/TextBlock"
6+
import { TextBlock } from "../components/TextUtils"
77
import Link from "next/link"
88
import fs from 'node:fs/promises'
99
import { join } from 'node:path'

app/services/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Link from "next/link"
2-
import TextBlock from "../components/TextBlock"
2+
import { TextBlock } from "../components/TextUtils"
33

44
type PastProjectProps =
55
{

0 commit comments

Comments
 (0)