-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Weminal-labs/member-page-mapping
update: project section
- Loading branch information
Showing
4 changed files
with
451 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,132 @@ | ||
import { HeroParallax } from '@/components/ui/hero-parallax' | ||
import { SECTION_IDS } from '@/constants' | ||
|
||
export const products = [ | ||
{ | ||
title: 'Moonbeam', | ||
link: 'https://gomoonbeam.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/moonbeam.png', | ||
}, | ||
{ | ||
title: 'Moonbeam', | ||
link: 'https://gomoonbeam.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/moonbeam.png', | ||
}, | ||
{ | ||
title: 'Moonbeam', | ||
link: 'https://gomoonbeam.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/moonbeam.png', | ||
}, | ||
{ | ||
title: 'Moonbeam', | ||
link: 'https://gomoonbeam.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/moonbeam.png', | ||
}, | ||
{ | ||
title: 'Moonbeam', | ||
link: 'https://gomoonbeam.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/moonbeam.png', | ||
}, | ||
{ | ||
title: 'Cursor', | ||
link: 'https://cursor.so', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/cursor.png', | ||
}, | ||
{ | ||
title: 'Rogue', | ||
link: 'https://userogue.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/rogue.png', | ||
}, | ||
|
||
{ | ||
title: 'Editorially', | ||
link: 'https://editorially.org', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/editorially.png', | ||
}, | ||
{ | ||
title: 'Editrix AI', | ||
link: 'https://editrix.ai', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/editrix.png', | ||
}, | ||
{ | ||
title: 'Pixel Perfect', | ||
link: 'https://app.pixelperfect.quest', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/pixelperfect.png', | ||
}, | ||
|
||
{ | ||
title: 'Algochurn', | ||
link: 'https://algochurn.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/algochurn.png', | ||
}, | ||
{ | ||
title: 'Aceternity UI', | ||
link: 'https://ui.aceternity.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/aceternityui.png', | ||
}, | ||
{ | ||
title: 'Tailwind Master Kit', | ||
link: 'https://tailwindmasterkit.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/tailwindmasterkit.png', | ||
}, | ||
{ | ||
title: 'SmartBridge', | ||
link: 'https://smartbridgetech.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/smartbridge.png', | ||
}, | ||
{ | ||
title: 'Renderwork Studio', | ||
link: 'https://renderwork.studio', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/renderwork.png', | ||
}, | ||
|
||
{ | ||
title: 'Creme Digital', | ||
link: 'https://cremedigital.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/cremedigital.png', | ||
}, | ||
{ | ||
title: 'Golden Bells Academy', | ||
link: 'https://goldenbellsacademy.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/goldenbellsacademy.png', | ||
}, | ||
{ | ||
title: 'Invoker Labs', | ||
link: 'https://invoker.lol', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/invoker.png', | ||
}, | ||
{ | ||
title: 'E Free Invoice', | ||
link: 'https://efreeinvoice.com', | ||
thumbnail: | ||
'https://aceternity.com/images/products/thumbnails/new/efreeinvoice.png', | ||
}, | ||
] | ||
|
||
const Projects = () => { | ||
return <div id={SECTION_IDS.PROJECTS}>Projects</div> | ||
return ( | ||
<div id={SECTION_IDS.PROJECTS}> | ||
<HeroParallax products={products} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Projects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
'use client' | ||
import Image from 'next/image' | ||
import React from 'react' | ||
|
||
import { cn } from '@/lib/utils' | ||
|
||
export const Card = React.memo( | ||
({ | ||
role, | ||
card, | ||
index, | ||
hovered, | ||
setHovered, | ||
}: { | ||
card: { | ||
title: string | ||
src: string | ||
} | ||
role: string | ||
index: number | ||
hovered: number | null | ||
setHovered: React.Dispatch<React.SetStateAction<number | null>> | ||
}) => ( | ||
<div | ||
onMouseEnter={() => setHovered(index)} | ||
onMouseLeave={() => setHovered(null)} | ||
className={cn( | ||
` | ||
relative h-80 w-full overflow-hidden rounded-lg bg-gray-100 | ||
transition-all duration-300 ease-out | ||
dark:bg-neutral-900 | ||
md:h-96 | ||
`, | ||
hovered !== null && hovered !== index && 'blur-sm scale-[0.98]', | ||
)} | ||
> | ||
<Image | ||
src={card.src} | ||
alt={card.title} | ||
fill | ||
className="absolute inset-0 object-cover" | ||
/> | ||
<div | ||
className={cn( | ||
` | ||
absolute inset-0 flex items-end bg-black/50 px-4 py-8 | ||
transition-opacity duration-300 | ||
`, | ||
hovered === index ? 'opacity-100' : 'opacity-0', | ||
)} | ||
> | ||
<div> | ||
<p | ||
className={` | ||
bg-gradient-to-b from-neutral-50 to-neutral-200 bg-clip-text | ||
font-bebas-neue text-xl font-medium text-transparent | ||
md:text-3xl | ||
`} | ||
> | ||
{card.title} | ||
</p> | ||
<p | ||
className={` | ||
bg-gradient-to-b from-neutral-50 to-neutral-200 bg-clip-text | ||
font-bebas-neue text-lg text-transparent | ||
`} | ||
> | ||
{role} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
), | ||
) | ||
|
||
Card.displayName = 'Card' | ||
|
||
type Card = { | ||
title: string | ||
src: string | ||
} |
Oops, something went wrong.