diff --git a/src/components/Cards/Card.jsx b/src/components/Cards/Card.jsx index 24597fb9..0113f790 100644 --- a/src/components/Cards/Card.jsx +++ b/src/components/Cards/Card.jsx @@ -16,18 +16,18 @@ const Card = (props) => { return (
- {title} + {title}
{title}

{description}

- + - {(tech !== 'Vanilla-JS-Projects' && tech !== 'Front-end-Projects')? '' : }
diff --git a/src/components/Cards/ProjectCards.jsx b/src/components/Cards/ProjectCards.jsx index bd8923b2..bb4821ce 100644 --- a/src/components/Cards/ProjectCards.jsx +++ b/src/components/Cards/ProjectCards.jsx @@ -12,13 +12,14 @@ const ProjectCards = (props) => { return description; }; return ( -
- {projectsData.map((data, index) => ( -
- -
- ))} -
+
+ {projectsData.map((data, index) => ( +
{/* Set a minimum width */} + +
+ ))} +
+ ) } diff --git a/src/components/Cards/card.css b/src/components/Cards/card.css index 67345505..6c71a145 100644 --- a/src/components/Cards/card.css +++ b/src/components/Cards/card.css @@ -1,8 +1,36 @@ .projectsCard { max-width: 1300px; transition: all 0.3s; + } +/* Card Styles */ +.card { + border-radius: 30px; + border: 8px solid transparent; + box-sizing: border-box; + transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; + margin-bottom:3px; +} + +/* Card Image */ +.card-img-top { + object-fit: cover; + border-top-left-radius: 30px; + border-top-right-radius: 30px; +} + +/* Card Body */ +.card-body { + padding: 20px; +} + +.card:hover { + border-color: white; + transform: scale(1.05); +} + + @media (max-width: 1400px) { .projectsCard { max-width: 88%; @@ -19,4 +47,4 @@ .projectsCard { max-width: 65%; } -} \ No newline at end of file +}