Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/app/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export default function Home() {
heading={project.name}
logo={project.logo}
content={project.description}
href={project.link.href}
/>
</div>
))}
Expand Down
3 changes: 2 additions & 1 deletion src/components/home/CardEffect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import Image from 'next/image'
import { motion } from 'framer-motion'

export function CardEffect({ heading, content, logo }) {
export function CardEffect({ heading, content, logo, href }) {

const wrappedHeading = (heading ?? '')
.replace(/([a-z])([A-Z])/g, '$1\u200B$2')
.replace(/([A-Z])([A-Z][a-z])/g, '$1\u200B$2')

return (
<motion.a
href={href}
initial={{ opacity: 0, rotateY: -90 }}
whileInView={{ opacity: 1, rotateY: 0 }}
viewport={{ once: true }}
Expand Down