Skip to content

Commit

Permalink
Fix projects layout
Browse files Browse the repository at this point in the history
  • Loading branch information
john-papani committed Apr 3, 2024
1 parent 56defce commit b02ac8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Components/Projects/ProjectCarousel/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Card = ({ card }) => {
return (
<div
key={card.id}
className="relative h-[35vh] w-[80vw] lg:h-[350px] ml-[10%] lg:ml-0 lg:w-[350px] overflow-hidden bg-neutral-200 hover:border-red-700 hover:border-4 cursor-pointer"
className="relative h-[30vh] w-[42vw] lg:h-[250px] lg:ml-0 lg:w-[250px] overflow-hidden bg-neutral-200 hover:border-red-700 hover:border-4 cursor-pointer"
onClick={() => window.open(card.githubLink, "_blank")}
>
<div
Expand All @@ -14,7 +14,7 @@ const Card = ({ card }) => {
className="absolute inset-0 z-0 transition-transform duration-300 group-hover:scale-110"
></div>
<div className="absolute inset-0 z-10 grid place-content-center">
<p className="bg-gradient-to-br from-white/10 to-white/0 p-8 text-sm lg:text-2xl font-black text-black backdrop-blur-lg">
<p className="bg-gradient-to-br from-white/10 to-white/0 p-8 text-sm lg:text-base font-black text-black backdrop-blur-lg">
{card.title}
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Card from "./Card";
const HorizontalScroll = () => {
return (
<>
<div className="flex flex-wrap justify-center gap-5">
<div className="flex flex-wrap justify-center gap-5 w-[80%] text-center">
{all_projects_list.map((card) => {
return <Card card={card} key={card.id} />;
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import HorizontalScroll from "./HorizontalScroll";
const ProjectsCarousel = () => {
return (
<>
<div className="hidden lg:flex md:pt-5" >
<div className="hidden lg:flex md:py-5 justify-evenly" >
<HorizontalScroll />
</div>
<div className="flex lg:hidden pb-[10%] w-full">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Projects/ProjectCarousel/VerticalScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Card from "./Card";
const VerticalScroll = () => {
return (
<>
<div className="flex flex-col gap-5">
<div className="flex flex-row flex-wrap gap-2 justify-center">
{all_projects_list.map((card) => {
return <Card card={card} key={card.id} />;
})}
Expand Down

0 comments on commit b02ac8c

Please sign in to comment.