Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 4 additions & 56 deletions src/app/dashboard/[org]/[repo]/design/Design.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons";
import DesignSystemOverview from "./DesignSystemOverview";
import FigmaPluginContent from "./FigmaPluginContent";

interface DesignProps {
org: string;
Expand All @@ -18,62 +20,8 @@ const DesignComponent: React.FC<DesignProps> = ({ org, repo }) => {
</h2>
</div>
<div className="space-y-6 rounded-lg border border-gray-200 bg-white p-4 shadow-sm transition-colors dark:border-gray-700 dark:bg-gray-800 sm:p-6">
<div>
<h3 className="text-lg font-semibold text-gray-900 transition-colors dark:text-white sm:text-xl">
Transform Your Figma Designs into React Components
</h3>
<p className="mt-2 text-sm text-gray-600 transition-colors dark:text-gray-300">
Effortlessly convert your Figma designs into React components
with{" "}
<a
href="https://www.figma.com/community/plugin/1326684504185921461/jacob-ai-codegen-connector"
target="_blank"
rel="noopener noreferrer"
className="font-semibold text-aurora-500 underline transition-colors hover:text-aurora-600 dark:text-aurora-300 dark:hover:text-aurora-400"
>
JACoB: CodeGen Connector
</a>
.
</p>
</div>
<div className="space-y-4 rounded-md bg-gray-50 p-4 transition-colors dark:bg-gray-900/50">
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
1. Authenticate with GitHub and link your repositories
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
2. Select design elements in Figma
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
3. Provide additional instructions if needed
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
4. Click to initiate the automated code generation process
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
5. View JACoB&apos;s progress in the{" "}
<a
href={`/dashboard/${org}/${repo}/assigned-tasks`}
className="font-semibold text-aurora-500 underline transition-colors hover:text-aurora-600 dark:text-aurora-300 dark:hover:text-aurora-400"
>
Assigned Tasks
</a>{" "}
section of the dashboard
</p>
</div>
<div className="flex justify-end">
<a
href="https://www.figma.com/community/plugin/1326684504185921461/jacob-ai-codegen-connector"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center rounded-md bg-aurora-50 px-4 py-2 text-sm font-medium text-aurora-700 transition-colors hover:bg-aurora-100 dark:bg-aurora-900/30 dark:text-aurora-300 dark:hover:bg-aurora-800/50"
>
Install Plugin
<FontAwesomeIcon
icon={faExternalLinkAlt}
className="ml-2 h-3 w-3"
/>
</a>
</div>
<DesignSystemOverview />
<FigmaPluginContent org={org} repo={repo} />
</div>
</div>
</div>
Expand Down
19 changes: 19 additions & 0 deletions src/app/dashboard/[org]/[repo]/design/DesignSystemOverview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";

interface DesignSystemOverviewProps {}

const DesignSystemOverview: React.FC<DesignSystemOverviewProps> = () => {
return (
<div>
<h3 className="text-lg font-semibold text-gray-900 transition-colors dark:text-white sm:text-xl">
Design System Overview
</h3>
<p className="mt-2 text-sm text-gray-600 transition-colors dark:text-gray-300">
This section will provide a comprehensive overview of our application's
design system, including colors, typography, and common UI components.
</p>
</div>
);
};

export default DesignSystemOverview;
72 changes: 72 additions & 0 deletions src/app/dashboard/[org]/[repo]/design/FigmaPluginContent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons";

interface FigmaPluginContentProps {
org: string;
repo: string;
}

const FigmaPluginContent: React.FC<FigmaPluginContentProps> = ({
org,
repo,
}) => {
return (
<>
<div>
<h3 className="text-lg font-semibold text-gray-900 transition-colors dark:text-white sm:text-xl">
Transform Your Figma Designs into React Components
</h3>
<p className="mt-2 text-sm text-gray-600 transition-colors dark:text-gray-300">
Effortlessly convert your Figma designs into React components with{" "}
<a
href="https://www.figma.com/community/plugin/1326684504185921461/jacob-ai-codegen-connector"
target="_blank"
rel="noopener noreferrer"
className="font-semibold text-aurora-500 underline transition-colors hover:text-aurora-600 dark:text-aurora-300 dark:hover:text-aurora-400"
>
JACoB: CodeGen Connector
</a>
.
</p>
</div>
<div className="space-y-4 rounded-md bg-gray-50 p-4 transition-colors dark:bg-gray-900/50">
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
1. Authenticate with GitHub and link your repositories
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
2. Select design elements in Figma
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
3. Provide additional instructions if needed
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
4. Click to initiate the automated code generation process
</p>
<p className="text-sm text-gray-600 transition-colors dark:text-gray-300">
5. View JACoB&apos;s progress in the{" "}
<a
href={`/dashboard/${org}/${repo}/assigned-tasks`}
className="font-semibold text-aurora-500 underline transition-colors hover:text-aurora-600 dark:text-aurora-300 dark:hover:text-aurora-400"
>
Assigned Tasks
</a>{" "}
section of the dashboard
</p>
</div>
<div className="flex justify-end">
<a
href="https://www.figma.com/community/plugin/1326684504185921461/jacob-ai-codegen-connector"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center rounded-md bg-aurora-50 px-4 py-2 text-sm font-medium text-aurora-700 transition-colors hover:bg-aurora-100 dark:bg-aurora-900/30 dark:text-aurora-300 dark:hover:bg-aurora-800/50"
>
Install Plugin
<FontAwesomeIcon icon={faExternalLinkAlt} className="ml-2 h-3 w-3" />
</a>
</div>
</>
);
};

export default FigmaPluginContent;