Skip to content

feat: add Render to sponsor rewards and implement 3D flip card effect#23

Merged
ManaviP merged 1 commit into
mainfrom
feature/render-sponsor-rewards
Jun 22, 2026
Merged

feat: add Render to sponsor rewards and implement 3D flip card effect#23
ManaviP merged 1 commit into
mainfrom
feature/render-sponsor-rewards

Conversation

@BeeXD

@BeeXD BeeXD commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 22, 2026 06:22
@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev3-0 Ready Ready Preview, Comment Jun 22, 2026 6:22am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Sponsor Rewards UI by adding a new sponsor (Render) and enhancing the rewards cards with a 3D flip interaction to show “front” vs “details” content.

Changes:

  • Add “Render” to the sponsor rewards list (logo, value, and description).
  • Replace the static reward card with a 3D flip-card UI (front face + back face).
  • Adjust grid layout and styling to accommodate an additional card and the flip interaction.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState } from 'react';
Comment on lines +12 to +16
const [flippedCards, setFlippedCards] = useState<Record<number, boolean>>({});

const toggleFlip = (index: number) => {
setFlippedCards(prev => ({ ...prev, [index]: !prev[index] }));
};
Comment on lines 496 to +499
const variant = entranceVariants[index] || entranceVariants[1];
const isMobileView = typeof window !== 'undefined' && window.innerWidth < 768;
const initialState = isMobileView ? variant.mobileInitial : variant.initial;
const isFlipped = flippedCards[index] || false;
const isFlipped = flippedCards[index] || false;

return (
<motion.div
Comment on lines +514 to +517
<div
className={`flip-card ${isFlipped ? 'flipped' : ''}`}
onClick={() => toggleFlip(index)}
>
Comment on lines +556 to +558
<span className="flip-hint">
<span className="flip-hint-icon">↻</span> Tap to flip
</span>
Comment on lines +211 to +219
.flip-hint-icon {
display: inline-block;
animation: flipHintPulse 2s ease-in-out infinite;
}

@keyframes flipHintPulse {
0%, 100% { transform: rotateY(0deg); }
50% { transform: rotateY(180deg); }
}
@ManaviP ManaviP merged commit cd2d2ce into main Jun 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants