Enlarge desktop environment cards and improve screenshot visibility

Update DECard component to increase card width, screenshot area, and decrease button sizes for better visual hierarchy.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c4fc7b07-53a2-4929-bc12-f392104bb085
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c7ec94b8-8251-441b-8b3b-1a02fc187f46
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/55e426a8-5a2b-421b-8bd4-30481ae0063b/c4fc7b07-53a2-4929-bc12-f392104bb085/a2ci8g4
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
yusufipk
2025-12-17 14:57:37 +00:00
parent c54f2343d9
commit 9ff81bd6de
+14 -14
View File
@@ -78,7 +78,7 @@ export default function DECard({ de, onSwipe, isTop }: DECardProps) {
data-testid={`de-card-${de.id}`} data-testid={`de-card-${de.id}`}
> >
<div <div
className="relative w-[700px] max-w-[85vw] rounded-3xl overflow-hidden" className="relative w-[800px] max-w-[90vw] rounded-3xl overflow-hidden"
style={{ style={{
background: `linear-gradient(135deg, ${primaryColor}20, ${secondaryColor}30)`, background: `linear-gradient(135deg, ${primaryColor}20, ${secondaryColor}30)`,
}} }}
@@ -114,9 +114,9 @@ export default function DECard({ de, onSwipe, isTop }: DECardProps) {
GEÇ GEÇ
</motion.div> </motion.div>
<div className="relative z-10 flex flex-row items-stretch"> <div className="relative z-10 flex flex-row items-stretch min-h-[320px]">
{de.screenshot && ( {de.screenshot && (
<div className="w-[320px] flex-shrink-0 overflow-hidden rounded-l-3xl"> <div className="w-[420px] flex-shrink-0 overflow-hidden rounded-l-3xl">
<img <img
src={`/de_screenshots/${de.screenshot}`} src={`/de_screenshots/${de.screenshot}`}
alt={`${de.name} screenshot`} alt={`${de.name} screenshot`}
@@ -126,7 +126,7 @@ export default function DECard({ de, onSwipe, isTop }: DECardProps) {
}} }}
/> />
<div <div
className="absolute inset-0 w-[320px]" className="absolute inset-0 w-[420px]"
style={{ style={{
background: `linear-gradient(90deg, transparent 60%, ${primaryColor}40 100%)`, background: `linear-gradient(90deg, transparent 60%, ${primaryColor}40 100%)`,
}} }}
@@ -134,31 +134,31 @@ export default function DECard({ de, onSwipe, isTop }: DECardProps) {
</div> </div>
)} )}
<div className="flex flex-1 flex-col items-center justify-center p-8 text-center"> <div className="flex flex-1 flex-col items-center justify-center p-6 text-center">
<div <div
className="mb-4 flex h-16 w-16 items-center justify-center rounded-xl" className="mb-3 flex h-12 w-12 items-center justify-center rounded-lg"
style={{ style={{
background: `linear-gradient(135deg, ${primaryColor}, ${secondaryColor})`, background: `linear-gradient(135deg, ${primaryColor}, ${secondaryColor})`,
boxShadow: `0 8px 30px ${primaryColor}50`, boxShadow: `0 6px 20px ${primaryColor}50`,
}} }}
> >
<StyleIcon className="h-8 w-8 text-white" /> <StyleIcon className="h-6 w-6 text-white" />
</div> </div>
<h2 <h2
className="mb-2 font-['Space_Grotesk'] text-3xl font-bold" className="mb-1 font-['Space_Grotesk'] text-2xl font-bold"
style={{ color: primaryColor }} style={{ color: primaryColor }}
> >
{de.name} {de.name}
</h2> </h2>
<p className="mb-6 max-w-sm text-base text-gray-300"> <p className="mb-4 max-w-xs text-sm text-gray-300">
{de.description} {de.description}
</p> </p>
<div className="flex flex-wrap justify-center gap-2"> <div className="flex flex-wrap justify-center gap-1.5">
<span <span
className="rounded-full px-3 py-1.5 text-xs font-medium" className="rounded-full px-2.5 py-1 text-[10px] font-medium"
style={{ style={{
backgroundColor: `${primaryColor}30`, backgroundColor: `${primaryColor}30`,
color: primaryColor, color: primaryColor,
@@ -167,7 +167,7 @@ export default function DECard({ de, onSwipe, isTop }: DECardProps) {
{styleLabels[de.style] || de.style} {styleLabels[de.style] || de.style}
</span> </span>
<span <span
className="rounded-full px-3 py-1.5 text-xs font-medium" className="rounded-full px-2.5 py-1 text-[10px] font-medium"
style={{ style={{
backgroundColor: `${secondaryColor}30`, backgroundColor: `${secondaryColor}30`,
color: secondaryColor, color: secondaryColor,
@@ -176,7 +176,7 @@ export default function DECard({ de, onSwipe, isTop }: DECardProps) {
{resourceLabels[de.resourceUsage] || de.resourceUsage} {resourceLabels[de.resourceUsage] || de.resourceUsage}
</span> </span>
<span <span
className="rounded-full px-3 py-1.5 text-xs font-medium bg-white/10 text-gray-300" className="rounded-full px-2.5 py-1 text-[10px] font-medium bg-white/10 text-gray-300"
> >
Özelleştirme: {de.customization} Özelleştirme: {de.customization}
</span> </span>