-
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 #55 from marcoandre1/release
Release
- Loading branch information
Showing
28 changed files
with
461 additions
and
255 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,26 @@ | ||
import React from "react"; | ||
|
||
export default function BioCard({ | ||
id, | ||
firstTitle, | ||
firstContent, | ||
secondTite, | ||
secontContent, | ||
}) { | ||
return ( | ||
<div className="pt-6 md:p-8 text-center md:text-left space-y-4"> | ||
<div className="uppercase tracking-wide text-sm text-indigo-600 dark:text-gray-300 font-bold"> | ||
{firstTitle} | ||
</div> | ||
<p className="mt-2 mb-2 text-left text-gray-600 dark:text-gray-400"> | ||
{firstContent} | ||
</p> | ||
<div className="uppercase tracking-wide text-sm text-indigo-600 dark:text-gray-300 font-bold"> | ||
{secondTite} | ||
</div> | ||
<p className="mt-2 mb-2 text-left text-gray-600 dark:text-gray-400"> | ||
{secontContent} | ||
</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
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,16 @@ | ||
import React from "react"; | ||
import GitHubMark from "../images/GitHub-Mark-64px.png"; | ||
import GitHubMarkLight from "../images/GitHub-Mark-Light-64px.png"; | ||
|
||
export default function GitHubButton({ isDarkMode, repo }) { | ||
return ( | ||
<div className="w-7"> | ||
<a href={repo}> | ||
<img | ||
src={isDarkMode ? GitHubMarkLight : GitHubMark} | ||
alt="GitHub Mark" | ||
/> | ||
</a> | ||
</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
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,26 @@ | ||
import React from "react"; | ||
import { useLocation } from "react-router-dom"; | ||
|
||
export default function NoMatch() { | ||
let location = useLocation(); | ||
|
||
return ( | ||
<div className="flex justify-center"> | ||
<div class="h-screen -my-24 flex flex-wrap content-center"> | ||
<div className="max-w-sm rounded overflow-hidden shadow-lg"> | ||
<div className="px-6 py-4"> | ||
<h2 className="font-bold text-gray-900 dark:text-white mb-2 flex justify-center"> | ||
404 | This page could not be found. | ||
</h2> | ||
<h3 className="font-bold text-gray-600 dark:text-gray-300 flex justify-center"> | ||
No match for{" "} | ||
<code className="bg-gray-200 dark:bg-indigo-600"> | ||
{location.pathname} | ||
</code> | ||
</h3> | ||
</div> | ||
</div> | ||
</div> | ||
</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
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,32 @@ | ||
import React from "react"; | ||
import GitHubButton from "./GitHubButton"; | ||
import ProjectImage from "./ProjectImage"; | ||
|
||
export default function Project({ | ||
id, | ||
bio, | ||
name, | ||
image, | ||
url, | ||
repo, | ||
isDarkMode, | ||
language, | ||
}) { | ||
let description = bio.find((bio) => bio.language === language.id); | ||
return ( | ||
<div className="bg-gray-100 dark:bg-gray-800 rounded overflow-hidden shadow-2xl p-6"> | ||
<div className="grid grid-cols-4 mb-6"> | ||
<div className="text-black dark:text-white hover:text-blue-700 dark:hover:text-indigo-300 font-bold text-lg col-span-3"> | ||
<a href={url}>{`${name}`}</a> | ||
</div> | ||
<div className="flex justify-end"> | ||
<GitHubButton isDarkMode={isDarkMode} repo={repo} /> | ||
</div> | ||
</div> | ||
<div className="mb-6"> | ||
<ProjectImage id={image} /> | ||
</div> | ||
<div className="text-gray-600 dark:text-white">{description.text}</div> | ||
</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,14 @@ | ||
import React from "react"; | ||
import { SimpleImg } from "react-simple-img"; | ||
|
||
export default function ProjectImage({ id }) { | ||
return ( | ||
<SimpleImg | ||
src={id} | ||
animationDuration="1" | ||
width={200} | ||
height={130} | ||
applyAspectRatio="true" | ||
/> | ||
); | ||
} |
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,16 @@ | ||
import React from "react"; | ||
|
||
export default function ProjectSearchBar({ searchQuery, setSearchQuery }) { | ||
return ( | ||
<div className="mb-6"> | ||
<input | ||
className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
id="username" | ||
type="text" | ||
placeholder="Search by name" | ||
value={searchQuery} | ||
onChange={(e) => setSearchQuery(e.target.value)} | ||
/> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.