Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projects details Page #249

Merged
merged 5 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@
],
"projects": [
{
"id": "1",
"projectTitle": "AI-Powered Chatbot Development",
"projectOverview": "This project aims to develop an AI-powered chatbot to enhance customer service efficiency and improve user experience on our platform.",
"projectStartDate": "2024-01-15",
Expand Down Expand Up @@ -485,6 +486,7 @@
"youtubeLink": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
},
{
"id": "2",
"projectTitle": "Website Redesign",
"projectOverview": "A complete overhaul of the company website to improve navigation, aesthetics, and functionality.",
"projectStartDate": "2024-02-01",
Expand Down Expand Up @@ -558,6 +560,7 @@
"youtubeLink": "https://www.youtube.com/watch?v=5aA7i_8v1h8"
},
{
"id": "3",
"projectTitle": "Mobile App Development for E-Commerce",
"projectOverview": "Development of a mobile application to enhance customer shopping experience and streamline order processes.",
"projectStartDate": "2024-03-10",
Expand Down
18 changes: 14 additions & 4 deletions src/app/(pages)/Projects/Card.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { FaGithub, FaYoutube } from 'react-icons/fa';
import Image from 'next/image';
import React from "react";
import { FaGithub, FaYoutube } from "react-icons/fa";
import Image from "next/image";
import Link from "next/link";

function Card(props) {
return (
Expand All @@ -17,7 +18,16 @@ function Card(props) {

{/* Content Section */}
<div className="px-6 py-4 flex-grow">
<div className="font-bold text-2xl text-gray-800 mb-3">{props.title}</div>
<Link
href={{
pathname: `/Projects/${props.title}`,
query: { id: props.id },
}}
>
<div className="font-bold text-2xl text-gray-800 mb-3">
{props.title}
</div>
</Link>
<p className="text-gray-700 text-sm leading-relaxed overflow-hidden h-full line-clamp-4">
{props.description}
</p>
Expand Down
Loading