generated from Pratham82/nextjs-ts-tailwind-starter
-
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.
Merge pull request #9 from Pratham82/feat/integrate-projects
Feat/integrate projects
- Loading branch information
Showing
19 changed files
with
950 additions
and
20 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import Link from "next/link"; | ||
import { GithubLogo, LinkSimple } from "phosphor-react"; | ||
|
||
import { IProject } from "../interface/projects.interface"; | ||
|
||
const ProjectCard = (props: IProject) => { | ||
const { title, subTitle, techStackUsed, githubURL, liveURL } = props; | ||
return ( | ||
<div className="border dark:border-slate-100 border-slate-300 p-3 rounded-xl shadow-lg dark:shadow-lg dark:shadow-slate-500"> | ||
<h3 className="text-lg font-semibold">{title}</h3> | ||
<h4 className="font-thin">{subTitle}</h4> | ||
<div className="flex my-2"> | ||
{liveURL?.link && ( | ||
<Link | ||
href={liveURL?.link} | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
className="flex border p-1 mr-2 cursor-pointer rounded-xl px-2 text-sm border-slate-300" | ||
> | ||
<LinkSimple size={20} /> | ||
<span className="pl-1">Live</span> | ||
</Link> | ||
)} | ||
{githubURL?.link && ( | ||
<Link | ||
href={githubURL?.link} | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
className="flex border p-1 mr-2 cursor-pointer rounded-xl px-2 text-sm" | ||
> | ||
<GithubLogo size={20} /> | ||
<span className="pl-1">Github</span> | ||
</Link> | ||
)} | ||
</div> | ||
<div className="flex gap-1 flex-wrap mt-2"> | ||
{techStackUsed?.map((techStack) => ( | ||
<h5 | ||
className="text-sm dark:bg-slate-100 bg-slate-900 text-slate-100 dark:text-slate-900 font-normal py-1 px-1.5 rounded-md" | ||
key={techStack} | ||
> | ||
{techStack} | ||
</h5> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProjectCard; |
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
File renamed without changes.
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,23 @@ | ||
export interface IAllProject { | ||
__typename: string; | ||
projectName: string; | ||
project: IProject; | ||
} | ||
export interface IProject { | ||
__typename: string; | ||
title: string; | ||
mark: string; | ||
subTitle: string; | ||
techStackUsed?: string[] | null; | ||
projectCategory: string; | ||
githubURL: IUrl; | ||
liveURL: IUrl; | ||
} | ||
export interface IUrl { | ||
__typename: string; | ||
linkText: string; | ||
link: string; | ||
} | ||
export interface IProjectsPage { | ||
allProject?: IAllProject[] | null; | ||
} |
Oops, something went wrong.