Last active
August 25, 2021 01:06
-
-
Save cvega21/7f727fafc11deb35a225688f2ede76c2 to your computer and use it in GitHub Desktop.
Projects page
This file contains hidden or 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
interface ProjectType { | |
[key: string]: string; | |
} | |
interface ProjectData { | |
projects: ProjectType; | |
projectsMetadata: ProjectType; | |
} | |
interface ProjectsProps { | |
projectsData: ProjectData; | |
} | |
const Projects = (props: ProjectsProps) => { | |
return ( | |
<div className="GenericContainer"> | |
{ | |
props.projectsData | |
? | |
<div className="ProjectsGrid"> | |
<Project | |
title="POMODORO TIMER" | |
description='a simple time management tool built on React.' | |
gif={[timer, timerStatic]} | |
link='https://github.com/cvega21/pomodoro-timer' | |
stack={['react', 'bootstrap']} | |
time={props.projectsData.projects['Pomodoro Timer Project']} | |
/> | |
</div> | |
: | |
<FontAwesomeIcon icon={faCircleNotch} className='loadingIcon'/> | |
} | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment