Skip to content

Commit 8644e27

Browse files
author
Palash Patel
committed
some styling changes to the cards and navbar
1 parent 4005c34 commit 8644e27

File tree

7 files changed

+92
-31
lines changed

7 files changed

+92
-31
lines changed

src/components/Cards.jsx

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Updated Cards Component
12
import React from "react";
23
import { Card, Row, Col, Container } from "react-bootstrap";
34
import Image from "next/image";
@@ -6,27 +7,42 @@ const Cards = ({ members }) => {
67
return (
78
<Container className="py-5">
89
<h2 className="text-center mb-5" style={headingStyle}>
9-
Meet Our Team
10+
MEET OUR TEAM!
1011
</h2>
1112
<Row className="g-4 justify-content-center">
1213
{members.map((member, index) => (
13-
<Col key={index} xs={12} sm={6} md={4} lg={3} className="d-flex justify-content-center">
14-
<Card className="h-100 shadow-sm border-0" style={cardStyle}>
15-
<Card.Body className="text-center">
16-
<div className="d-flex justify-content-center mb-3">
14+
<Col
15+
key={index}
16+
xs={12}
17+
sm={6}
18+
md={4}
19+
lg={3}
20+
className="d-flex justify-content-center"
21+
>
22+
<Card
23+
className="h-100 shadow-lg border-0 card-hover"
24+
style={cardStyle}
25+
>
26+
<Card.Body className="">
27+
<div className="d-flex mb-3">
1728
<Image
1829
src={member.imageSrc}
1930
alt={`${member.name} profile`}
20-
width={100}
21-
height={100}
22-
className="rounded-circle"
31+
width={250}
32+
height={250}
33+
//border-radius={15}
34+
//className="rounded-circle"
35+
style={{borderRadius:"15px"}}
2336
/>
2437
</div>
2538
<Card.Title style={cardTitleStyle}>{member.name}</Card.Title>
2639
<Card.Text className="text-muted" style={cardTextStyle}>
27-
{member.description || "Lorem ipsum dolor sit amet, consectetur adipiscing elit."}
40+
{member.description ||
41+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}
2842
</Card.Text>
29-
<p className="text-primary fw-bold">{member.role || "Team Member"}</p>
43+
<p className="text-primary fw-bold">
44+
{member.role || "Team Member"}
45+
</p>
3046
<div>
3147
{member.github && (
3248
<a
@@ -77,16 +93,19 @@ const headingStyle = {
7793

7894
const cardStyle = {
7995
borderRadius: "15px",
96+
background: "linear-gradient(145deg, #ffffff, #e6e6e6)",
97+
transition: "all 0.3s ease-in-out",
8098
};
8199

82100
const cardTitleStyle = {
83101
fontSize: "1.25rem",
84102
fontWeight: "bold",
103+
color: "#6A8EAE",
85104
};
86105

87106
const cardTextStyle = {
88107
fontSize: "0.9rem",
89108
lineHeight: "1.5",
90109
};
91110

92-
export default Cards;
111+
export default Cards;

src/components/Footer.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@ import { HeartFill } from "react-bootstrap-icons";
22

33
const Footer: React.FC = () => {
44
return (
5-
<footer>
5+
<footer className="footer-gradient py-4 text-center">
66
<hr className="mt-5 mb-4" />
77
<p className="text-muted">
8-
Built with <a href="https://getbootstrap.com/">Bootstrap 5</a>, <a href="https://react.dev">React</a>, <a href="https://react-bootstrap.github.io/">React Bootstrap</a>, <a href="https://nextjs.org/">Next.js</a>, and <HeartFill title="heart icon" aria-label="love" color="red"/> in Atlanta, GA.
8+
Built with <a href="https://getbootstrap.com/">Bootstrap 5</a>, <a href="https://react.dev">React</a>, <a href="https://react-bootstrap.github.io/">React Bootstrap</a>, <a href="https://nextjs.org/">Next.js</a>, and <HeartFill title="heart icon" aria-label="love" color="red" /> in Atlanta, GA.
99
Created and open sourced by the CS 2340 project team. Licensed MIT.
1010
</p>
11+
<div className="social-icons mt-3">
12+
<a href="https://github.com/" target="_blank" rel="noopener noreferrer" className="mx-2">
13+
<i className="bi bi-github text-light"></i>
14+
</a>
15+
<a href="https://linkedin.com/" target="_blank" rel="noopener noreferrer" className="mx-2">
16+
<i className="bi bi-linkedin text-light"></i>
17+
</a>
18+
<a href="https://twitter.com/" target="_blank" rel="noopener noreferrer" className="mx-2">
19+
<i className="bi bi-twitter text-light"></i>
20+
</a>
21+
</div>
1122
</footer>
1223
);
1324
};

src/components/Header.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Navbar, Nav, Container } from "react-bootstrap";
33

44
const Header: React.FC = () => {
55
return (
6-
<Navbar expand="lg" className="px-3" style={navbarStyle}>
6+
<Navbar expand="lg" className="px-3 sticky-header" style={navbarStyle}>
77
<Container>
88
{/* Brand / Logo */}
99
<Navbar.Brand>
@@ -49,9 +49,11 @@ const Header: React.FC = () => {
4949

5050
// Inline Styles
5151
const navbarStyle: React.CSSProperties = {
52-
backgroundColor: "#222",
52+
backgroundColor: "rgba(34, 34, 34, 0.9)",
53+
backdropFilter: "blur(10px)",
5354
padding: "1rem",
5455
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
56+
zIndex: 10,
5557
};
5658

5759
const githubLinkStyle: React.CSSProperties = {
@@ -62,6 +64,7 @@ const githubLinkStyle: React.CSSProperties = {
6264
transition: "all 0.3s ease-in-out",
6365
color: "#6A8EAE",
6466
textDecoration: "none",
67+
cursor: "pointer",
6568
};
6669

6770
export default Header;

src/components/ProjectsShowcaseCard.tsx

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,46 @@ const ProjectsShowcaseCard: React.FC<ProjectsShowcaseCardProps> = ({
1919
learnMoreLink,
2020
}) => {
2121
return (
22-
<Card className="mx-auto" style={{ maxWidth: "500px" }}>
22+
<Card className="mx-auto project-card" style={cardStyle}>
2323
<Card.Img
2424
variant="top"
2525
src={imageSrc}
2626
alt={imageAlt}
2727
style={{ objectFit: "cover", width: "100%", height: "auto" }}
28+
className="project-card-img"
2829
/>
29-
<Card.Body>
30-
{title && <Card.Title>{title}</Card.Title>}
31-
{description && <Card.Text>{description}</Card.Text>}
30+
<Card.Body className="text-center">
31+
{title && <Card.Title className="project-title">{title}</Card.Title>}
32+
{description && <Card.Text className="project-description">{description}</Card.Text>}
3233
{projectLink && (
33-
<Card.Link className="link-underline-primary" href={projectLink}>
34+
<Card.Link
35+
className="link-underline-primary project-link"
36+
href={projectLink}
37+
target="_blank"
38+
rel="noopener noreferrer"
39+
>
3440
View Project
3541
</Card.Link>
3642
)}
3743
{learnMoreLink && (
38-
<Card.Link href={learnMoreLink}>View Source</Card.Link>
44+
<Card.Link
45+
href={learnMoreLink}
46+
className="project-link"
47+
target="_blank"
48+
rel="noopener noreferrer"
49+
>
50+
View Source
51+
</Card.Link>
3952
)}
4053
</Card.Body>
4154
</Card>
4255
);
4356
};
4457

58+
const cardStyle: React.CSSProperties = {
59+
borderRadius: "15px",
60+
boxShadow: "0px 4px 8px rgba(0, 0, 0, 0.1)",
61+
transition: "transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out",
62+
};
63+
4564
export default ProjectsShowcaseCard;

src/pages/_document.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import { Html, Head, Main, NextScript } from "next/document";
22

33
export default function Document() {
44
return (
5+
56
<Html lang="en">
67
<Head />
78
<body>
89
<Main />
910
<NextScript />
1011
</body>
1112
</Html>
13+
1214
);
1315
}

src/pages/index.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,40 @@ import Cards from "@/components/Cards"
88
export default function Home() {
99

1010
const members = [
11+
{
12+
name: "Palash Patel",
13+
imageSrc: "/cs-2340-team-website/avatars/palashpatel.jpg",
14+
role: "Scrum Master",
15+
description: "Hello! My name is Palash Patel. I am a 1st year " +
16+
"computer science student and have taken the role of scrum master " +
17+
"and front end developer for this project. ",
18+
linkedin: "palash-patel-1b001a210",
19+
},
1120
{
1221
name: "Aryamann Sheoran",
1322
imageSrc: "/cs-2340-team-website/avatars/aryamannsheoran.png",
14-
role: "Creative Leader",
23+
role: "Product Owner",
1524
github: "aryamannsheoran",
1625
linkedin: "aryamannsheoran",
1726
},
1827
{
1928
name: "James Kerrane",
2029
imageSrc: "/cs-2340-team-website/avatars/jameskerrane.jpg",
21-
role: "Sales Manager",
30+
role: "Developer",
2231
github: "thatrobotdev",
2332
linkedin: "jameskerrane",
2433
twitter: "jameskerrane",
2534
},
2635
{
2736
name: "Michael Wittland Jr.",
2837
imageSrc: "https://placehold.co/100",
29-
role: "Web Developer",
38+
role: "Developer",
3039
linkedin: "michael-wittland-323081295/",
3140
},
32-
{
33-
name: "Palash Patel",
34-
imageSrc: "/cs-2340-team-website/avatars/palashpatel.jpg",
35-
role: "Web Designer",
36-
linkedin: "palash-patel-1b001a210",
37-
},
3841
{
3942
name: "Shane Hanley",
4043
imageSrc: "https://placehold.co/100",
41-
role: "Web Designer",
44+
role: "Developer",
4245
},
4346
{
4447
name: "Emmanuel Munoz",

src/styles/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ $theme-colors: map-merge($theme-colors, $mycolors);
1313

1414
body {
1515
padding: 1.5rem;
16+
}
17+
18+
.nav-link:hover {
19+
color: #6A8EAE !important;
1620
}

0 commit comments

Comments
 (0)