-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
110 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"use client"; | ||
import { Project } from "@shared/models"; | ||
|
||
interface ProjectDetailsProps { | ||
project: Project; | ||
} | ||
|
||
export function ProjectDetails({ | ||
project: { title, description }, | ||
}: ProjectDetailsProps): ReturnType<React.FC> { | ||
return ( | ||
<section className="mt-12 sm:mt-6"> | ||
<h1 className="text-3xl text-primary">{title}</h1> | ||
<div className="mt-4 text-secondary">{description}</div> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Project } from "@shared/models"; | ||
import light from "@images/projects/chat-gpt-rtl.svg"; | ||
import dark from "@images/projects/chat-gpt-rtl-dark.svg"; | ||
|
||
export const projects: Project[] = [ | ||
{ | ||
id: "chat-gpt-rtl", | ||
title: "ChatGPT RTL", | ||
url: "https://chrome.google.com/webstore/detail/chatgpt-rtl/nabcbpmmefiigmjpopfciegmlgihkofd ", | ||
category: "Chrome Extension", | ||
repo: "https://github.com/gilhanan/chat-gpt-rtl", | ||
images: { | ||
light, | ||
dark, | ||
}, | ||
description: ( | ||
<div className="flex flex-col gap-4"> | ||
<p className="text-md"> | ||
ChatGPT auto right-to-left alignments for Arabic, Persian, Hebrew, and | ||
more. | ||
</p> | ||
<p className="text-md"> | ||
An open-source plugin that automatically identifies right-to-left | ||
paragraphs and adjusts and arranges the text in real-time. | ||
</p> | ||
<div> | ||
<h2 className="text-lg">⭐️ Features ⭐️</h2> | ||
<ul> | ||
<li> | ||
📝 Automatically identifies RTL paragraphs and adjusts the | ||
direction in real-time. | ||
</li> | ||
<li> | ||
⚙️ User-friendly settings popup for configuring the enabling | ||
functionality. | ||
</li> | ||
<li> | ||
🌍 Supports the following RTL languages: Arabic, Persian, Hebrew, | ||
and more. | ||
</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<h2 className="text-lg">💡 How to use 💡</h2> | ||
<ol className="list-decimal list-inside"> | ||
<li>Install this extension.</li> | ||
<li>Open ChatGPT discussion.</li> | ||
<li>Enjoy chatting with RTL support!</li> | ||
</ol> | ||
</div> | ||
<p>Enjoy! 🙏</p> | ||
</div> | ||
), | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import type { Metadata } from "next"; | ||
import { notFound } from "next/navigation"; | ||
import { projects } from "@data/projects"; | ||
import { ProjectDetails } from "@components/ProjectDetails"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Project", | ||
}; | ||
|
||
export default function ProjectPage({ | ||
params: { id }, | ||
}: { | ||
params: { id: string }; | ||
}) { | ||
const project = projects.find((project) => project.id === id); | ||
|
||
if (!project) { | ||
return notFound(); | ||
} | ||
|
||
return <ProjectDetails project={project} />; | ||
} | ||
|
||
export function generateStaticParams() { | ||
return projects.map(({ id }) => ({ id })); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters