Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RecentProjects.tsx #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions components/RecentProjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ const RecentProjects = () => {
A small selection of{" "}
<span className="text-purple">recent projects</span>
</h1>
<div className="flex flex-wrap items-center justify-center p-4 gap-16 mt-10">
{projects.map((item) => (
<div className="flex flex-wrap items-center justify-center p-4 gap-16 mt-10">
{projects.map(({id,title,des,img,iconLists,link}) => (
<div
className="lg:min-h-[32.5rem] h-[25rem] flex items-center justify-center sm:w-96 w-[80vw]"
key={item.id}
key={id}
>
<PinContainer
title="/ui.aceternity.com"
href="https://twitter.com/mannupaaji"
>
<PinContainer title={link} href={link}>
<div className="relative flex items-center justify-center sm:w-96 w-[80vw] overflow-hidden h-[20vh] lg:h-[30vh] mb-10">
<div
className="relative w-full h-full overflow-hidden lg:rounded-3xl"
Expand All @@ -30,14 +27,14 @@ const RecentProjects = () => {
<img src="/bg.png" alt="bgimg" />
</div>
<img
src={item.img}
src={img}
alt="cover"
className="z-10 absolute bottom-0"
/>
</div>

<h1 className="font-bold lg:text-2xl md:text-xl text-base line-clamp-1">
{item.title}
{title}
</h1>

<p
Expand All @@ -47,12 +44,12 @@ const RecentProjects = () => {
margin: "1vh 0",
}}
>
{item.des}
{des}
</p>

<div className="flex items-center justify-between mt-7 mb-3">
<div className="flex items-center">
{item.iconLists.map((icon, index) => (
{iconLists.map((icon, index) => (
<div
key={index}
className="border border-white/[.2] rounded-full bg-black lg:w-10 lg:h-10 w-8 h-8 flex justify-center items-center"
Expand Down