Skip to content

Commit a57f304

Browse files
committed
🎨 Basics of open source section
1 parent 4b855b1 commit a57f304

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

next/src/components/PrimaryButton.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ import clsx from "clsx";
33
type PrimaryButtonProps = {
44
children: string;
55
onClick?: () => void;
6+
outline?: boolean;
67
};
7-
export default function PrimaryButton({ children, onClick }: PrimaryButtonProps) {
8+
export default function PrimaryButton({ children, onClick, outline }: PrimaryButtonProps) {
89
return (
910
<button
1011
type="button"
1112
className={clsx(
12-
"text-md rounded-lg bg-[#BF7DFF] px-4 py-2.5 text-white shadow-sm ",
13-
"transition-colors duration-300 hover:border-blue-200 hover:bg-[#9124ff] hover:text-zinc-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
13+
"text-md rounded-lg px-4 py-2.5 shadow-sm ",
14+
"transition-colors duration-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",
15+
outline
16+
? "text-[#BF7DFF]/90 ring-1 ring-[#BF7DFF] hover:bg-[#BF7DFF]/20"
17+
: "bg-[#BF7DFF] text-white hover:border-blue-200 hover:bg-[#9124ff] hover:text-zinc-200 "
1418
)}
1519
onClick={onClick}
1620
>

next/src/components/landing/OpenSource.tsx

+12-7
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const OpenSource = () => {
1414
return (
1515
<div className="min-h-[50vh] w-full">
1616
<div className="flex flex-row">
17-
<div className="relative w-full">
17+
<div className="relative hidden w-full md:flex">
1818
<Terminal className="absolute" title="index.ts">
19-
<pre className="overflow-hidden">
19+
<pre className="overflow-x-hidden">
2020
{"" +
2121
"<!DOCTYPE html>\n" +
2222
"<html>\n" +
@@ -42,7 +42,7 @@ const OpenSource = () => {
4242
</pre>
4343
</Terminal>
4444
<Terminal className="absolute left-16 top-20 z-10" title="agent_service.py">
45-
<pre>
45+
<pre className="overflow-x-hidden">
4646
{"import requests\n" +
4747
"\n" +
4848
"# Define the API endpoint\n" +
@@ -74,9 +74,14 @@ const OpenSource = () => {
7474
community. This is why we are proudly open source. We'd love to hear your feedback at
7575
every step of the journey.
7676
</p>
77-
<a href="https://github.com/reworkd" target="_blank" className="mt-16">
78-
<PrimaryButton>View on Github</PrimaryButton>
79-
</a>
77+
<div className="mt-6 flex flex-row gap-4">
78+
<a href="https://github.com/reworkd" target="_blank">
79+
<PrimaryButton>View on Github</PrimaryButton>
80+
</a>
81+
<a href="https://github.com/orgs/reworkd/projects/3" target="_blank">
82+
<PrimaryButton outline>Public Roadmap</PrimaryButton>
83+
</a>
84+
</div>
8085
</div>
8186
</div>
8287
</div>
@@ -86,7 +91,7 @@ const OpenSource = () => {
8691
const Terminal = (props: TerminalProps) => {
8792
return (
8893
<div
89-
className={clsx("w-full max-w-md rounded-xl bg-neutral-800 drop-shadow-2xl", props.className)}
94+
className={clsx("w-3/4 max-w-md rounded-xl bg-neutral-800 drop-shadow-2xl", props.className)}
9095
>
9196
<MacWindowInternal>{props.title}</MacWindowInternal>
9297
<div className="h-72 overflow-hidden rounded-b-xl bg-neutral-900 p-4 text-[8pt] text-gray-400">

0 commit comments

Comments
 (0)