mirror of
https://git.aramjonghu.dev/AramJonghu/aramjonghu-site.git
synced 2026-09-12 01:13:31 +02:00
chore(projects): removal of projects section on home page
This commit is contained in:
@@ -1,33 +0,0 @@
|
|||||||
import { useState, type ReactElement } from "react";
|
|
||||||
import MdProcessor from "./MdProcessor";
|
|
||||||
import projects from "../content/projects.json";
|
|
||||||
|
|
||||||
export default function ProjectInfo(): ReactElement {
|
|
||||||
const [projIdx, setProjIdx] = useState<number>(0);
|
|
||||||
const prevProject = () =>
|
|
||||||
setProjIdx((i) => (i - 1 + projects.length) % projects.length);
|
|
||||||
const nextProject = () => setProjIdx((i) => (i + 1) % projects.length);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className="flex justify-between items-center gap-2 mx-4 md:mx-30 mb-6">
|
|
||||||
<button
|
|
||||||
onClick={prevProject}
|
|
||||||
className="shrink-0 px-3 py-1 rounded ui-btn text-ctp-text"
|
|
||||||
>
|
|
||||||
◀︎ Prev
|
|
||||||
</button>
|
|
||||||
<span className="self-center min-w-0 truncate mx-2 md:mx-6 text-ctp-mauve lg:text-xl text-l font-bold">
|
|
||||||
{projects[projIdx].name} ({projIdx + 1}/{projects.length})
|
|
||||||
</span>
|
|
||||||
<button
|
|
||||||
onClick={nextProject}
|
|
||||||
className="shrink-0 px-3 py-1 rounded ui-btn text-ctp-text"
|
|
||||||
>
|
|
||||||
Next ▶︎
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<MdProcessor repoUrl={projects[projIdx].url} />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -4,4 +4,4 @@ Currently learning Rust and Zig programming languages.
|
|||||||
|
|
||||||
### Projects
|
### Projects
|
||||||
|
|
||||||
MarAn is a webpage I am working on for a freelancer. Check the [projects](/) tab on the home page.
|
MarAn is a webpage I am working on for a freelancer.
|
||||||
|
|||||||
@@ -73,6 +73,11 @@
|
|||||||
{ "name": "Armenian", "proficiency": "Basic conversational" }
|
{ "name": "Armenian", "proficiency": "Basic conversational" }
|
||||||
],
|
],
|
||||||
"projects": [
|
"projects": [
|
||||||
|
{ "name": "HANflex kennisplatform",
|
||||||
|
"url": "https://github.com/AIM-kennisplatformen",
|
||||||
|
"description": "Repositories I contributed to. Mainly studio and database-builder-scepa.",
|
||||||
|
"tags": ["Python", "TypeDB"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "aramjonghu-site",
|
"name": "aramjonghu-site",
|
||||||
"url": "https://git.aramjonghu.dev/AramJonghu/aramjonghu-site",
|
"url": "https://git.aramjonghu.dev/AramJonghu/aramjonghu-site",
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"id": "site",
|
|
||||||
"name": "aramjonghu-site",
|
|
||||||
"url": "https://git.aramjonghu.dev/AramJonghu/aramjonghu-site/raw/branch/master/README.md"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "maran freelance portfolio",
|
|
||||||
"name": "maran-site",
|
|
||||||
"url": "https://git.aramjonghu.dev/AramJonghu/maran-site/src/branch/main/README.md"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "file-organizer",
|
|
||||||
"name": "file-organizer written in zig",
|
|
||||||
"url": "https://git.aramjonghu.dev/AramJonghu/file-organizer/src/branch/main/README.md"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "nvim",
|
|
||||||
"name": "Nvim Config",
|
|
||||||
"url": "https://git.aramjonghu.dev/AramJonghu/nvim/src/branch/main/README.md"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
import { useState, type ReactElement } from "react";
|
import { useState, type ReactElement } from "react";
|
||||||
import ProjectInfo from "../components/ProjectInfo";
|
|
||||||
import CurrentActivity from "../components/CurrentActivity";
|
import CurrentActivity from "../components/CurrentActivity";
|
||||||
import About from "../components/About";
|
import About from "../components/About";
|
||||||
|
|
||||||
@@ -22,11 +21,6 @@ export default function Home(): ReactElement {
|
|||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "projects",
|
|
||||||
title: "Projects",
|
|
||||||
content: <ProjectInfo />,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "current-activity",
|
id: "current-activity",
|
||||||
title: "Current-activity",
|
title: "Current-activity",
|
||||||
|
|||||||
Reference in New Issue
Block a user