Skip to content

Commit d50c1ea

Browse files
Palash PatelPalash Patel
Palash Patel
authored and
Palash Patel
committed
styling after the video upload
1 parent 23c65ff commit d50c1ea

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

src/components/ProjectsShowcase.tsx

+12-4
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ function ProjectsShowcase() {
5252
____________________
5353
</h1>
5454
<Container className="py-4">
55-
<Row gap={4}>
55+
<Row gap={40}>
5656
{/* Left Column: Project Card */}
5757
<Col xs={12} md={8} lg={6}>
5858
<div
5959
style={cardHoverStyle}
6060
onMouseEnter={cardHoverEffect}
6161
onMouseLeave={cardHoverEffectOut}
6262
>
63+
6364
<ProjectsShowcaseCard
6465
imageSrc={"/cs-2340-team-website/moviesstore.png"}
6566
imageAlt={"Screenshot of moviesstore project."}
@@ -69,9 +70,9 @@ function ProjectsShowcase() {
6970
}
7071
projectLink={"https://github.com/thatrobotdev/moviesstore"}
7172
processLink={"https://thatrobotdev.pythonanywhere.com/"}
73+
videoLink={"https://drive.google.com/file/d/1icCEcxxs61XWzocsz1eZnpGsZGa1Yd-f/preview"}
7274
/>
7375
</div>
74-
7576
<div
7677
style={{
7778
border: "solid 2px #aaa",
@@ -81,8 +82,15 @@ function ProjectsShowcase() {
8182
onMouseEnter={cardHoverEffect}
8283
onMouseLeave={cardHoverEffectOut}
8384
>
84-
<h2>Demo</h2>
85-
<iframe src="https://drive.google.com/file/d/1icCEcxxs61XWzocsz1eZnpGsZGa1Yd-f/preview"></iframe>
85+
86+
<u
87+
style={{ fontSize: "30px", paddingBottom: "30px"}}
88+
className="colored-underline fw-bold"
89+
>
90+
<h3 className="black-text">DEMO</h3>
91+
</u>
92+
<div style={{padding: "10px"}}></div>
93+
<iframe style={{width:"100%", height: "400px"}} src="https://drive.google.com/file/d/1icCEcxxs61XWzocsz1eZnpGsZGa1Yd-f/preview"></iframe>
8694
</div>
8795
</Col>
8896

src/components/ProjectsShowcaseCard.tsx

+15-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ interface ProjectsShowcaseCardProps {
77
description?: string;
88
projectLink?: string;
99
processLink?: string;
10+
videoLink?: string;
1011
}
1112

1213
const ProjectsShowcaseCard: React.FC<ProjectsShowcaseCardProps> = ({
@@ -16,9 +17,10 @@ const ProjectsShowcaseCard: React.FC<ProjectsShowcaseCardProps> = ({
1617
description,
1718
projectLink,
1819
processLink,
20+
videoLink,
1921
}) => {
2022
return (
21-
<Card className="mx-auto project-card " style={cardStyle}>
23+
<Card className="mx-auto project-card" style={cardStyle}>
2224
<Card.Img
2325
variant="top"
2426
src={imageSrc}
@@ -27,7 +29,7 @@ const ProjectsShowcaseCard: React.FC<ProjectsShowcaseCardProps> = ({
2729
className="project-card-img"
2830
/>
2931
<Card.Body className="text-center">
30-
{title && <u style={{fontSize:"30px"}} className="colored-underline fw-bold"><Card.Title className="black-text fw-bold fs-3">{title}</Card.Title></u>}
32+
{title && <u style={{fontSize:"30px"}} className=" fw-bold"><Card.Title className="black-text fw-bold fs-3">{title}</Card.Title></u>}
3133
{description && <Card.Text className="project-description">{description}</Card.Text>}
3234
{projectLink && (
3335
<Card.Link
@@ -50,6 +52,17 @@ const ProjectsShowcaseCard: React.FC<ProjectsShowcaseCardProps> = ({
5052
View GitHub
5153
</Card.Link>
5254
)}
55+
56+
{videoLink && (
57+
<Card.Link
58+
href={videoLink}
59+
className="text-link-style"
60+
target="_blank"
61+
rel="noopener noreferrer"
62+
>
63+
View Video
64+
</Card.Link>
65+
)}
5366
</Card.Body>
5467
</Card>
5568
);

0 commit comments

Comments
 (0)