Download Portfolio/src/components/Projects/ProjectCards.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/components/Projects/ProjectCards.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/components/Projects/ProjectCards.js
-
curl -L -o ProjectCards.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/components/Projects/ProjectCards.js
1.2 kB
| import React from "react"; | |
| import Card from "react-bootstrap/Card"; | |
| import Button from "react-bootstrap/Button"; | |
| import { CgWebsite } from "react-icons/cg"; | |
| import { BsGithub } from "react-icons/bs"; | |
| function ProjectCards(props) { | |
| return ( | |
| <Card className="project-card-view"> | |
| <Card.Img variant="top" src={props.imgPath} alt="card-img" /> | |
| <Card.Body> | |
| <Card.Title>{props.title}</Card.Title> | |
| <Card.Text style={{ textAlign: "justify" }}> | |
| {props.description} | |
| </Card.Text> | |
| <Button variant="primary" href={props.ghLink} target="_blank"> | |
| <BsGithub /> | |
| {props.isBlog ? "Blog" : "GitHub"} | |
| </Button> | |
| {"\n"} | |
| {"\n"} | |
| {/* If the component contains Demo link and if it's not a Blog then, it will render the below component */} | |
| {!props.isBlog && props.demoLink && ( | |
| <Button | |
| variant="primary" | |
| href={props.demoLink} | |
| target="_blank" | |
| style={{ marginLeft: "10px" }} | |
| > | |
| <CgWebsite /> | |
| {"Demo"} | |
| </Button> | |
| )} | |
| </Card.Body> | |
| </Card> | |
| ); | |
| } | |
| export default ProjectCards; | |