@@ -6,16 +6,15 @@ import { motion } from "framer-motion";
66import React from "react" ;
77import { useSafeColorMode } from "../utils/useSafeColorMode" ;
88// Mobile-specific overrides for very small screens (<768px and <320px)
9- import "./ourProjects.mobile.css" ;
10- // Import projects data and types
9+ import "./ourProjects.mobile.css" ; // Import projects data and types
1110import projectsData from "../data/projects.json" ;
1211import type { ProjectsData , ProjectItem } from "../data/types" ;
1312
1413/**
1514 * Legacy interface for backward compatibility
1615 * @deprecated Use ProjectsData from types.ts instead
1716 */
18- export interface OurProjectsData {
17+ export interface Data {
1918 tag : string ;
2019 title : string ;
2120 description : string ;
@@ -29,12 +28,12 @@ export interface OurProjectsData {
2928 * Legacy props interface for backward compatibility
3029 * @deprecated Component now imports data directly
3130 */
32- export interface OurProjectsProps {
33- OurProjectsData ?: OurProjectsData ;
31+ export interface Props {
32+ Data ?: Data ;
3433}
3534
3635/**
37- * OurProjects Component
36+ * Component
3837 *
3938 * Displays a showcase of RecodeHive projects with interactive previews.
4039 * Now uses data-driven approach with JSON configuration for better maintainability.
@@ -48,8 +47,8 @@ export interface OurProjectsProps {
4847 *
4948 * @param props - Optional props for backward compatibility
5049 */
51- const OurProjects : React . FC < OurProjectsProps > = ( {
52- OurProjectsData : legacyData ,
50+ const ShowcasePage : React . FC < Props > = ( {
51+ Data : legacyData ,
5352} ) => {
5453 const { colorMode, isDark } = useSafeColorMode ( ) ;
5554
@@ -211,7 +210,7 @@ const SelectComponent = ({
211210 </ div >
212211
213212 < div
214- className = { `ourprojects -embed-container relative col-span-1 min-h-[50vh] overflow-hidden p-4 md:col-span-8 md:min-h-[70vh] md:p-8` }
213+ className = { `-embed-container relative col-span-1 min-h-[50vh] overflow-hidden p-4 md:col-span-8 md:min-h-[70vh] md:p-8` }
215214 >
216215 { /* Animated Mesh Background */ }
217216 < div className = "absolute inset-0 bg-gradient-to-br from-purple-600/30 via-blue-600/30 via-cyan-500/30 to-emerald-500/30" >
@@ -288,7 +287,7 @@ const SelectComponent = ({
288287 className = "perspective-1000 relative z-10"
289288 >
290289 < div
291- className = { `md:hover:rotateY-5 group ourprojects -embed-card h-[45vh] transform overflow-hidden rounded-2xl border-2 shadow-2xl backdrop-blur-md transition-all duration-700 hover:scale-105 sm:h-[50vh] sm:rounded-3xl md:h-[65vh] ${
290+ className = { `md:hover:rotateY-5 group -embed-card h-[45vh] transform overflow-hidden rounded-2xl border-2 shadow-2xl backdrop-blur-md transition-all duration-700 hover:scale-105 sm:h-[50vh] sm:rounded-3xl md:h-[65vh] ${
292291 isDark
293292 ? "border-purple-500/50 bg-gray-900/95 shadow-purple-500/25"
294293 : "border-blue-400/50 bg-white/95 shadow-blue-500/25"
@@ -398,7 +397,7 @@ const SelectComponent = ({
398397 src = {
399398 PROJECT_URLS [ items [ activeItem ] . title ] || "about:blank"
400399 }
401- className = "ourprojects -iframe pointer-events-none h-[220%] w-full origin-top border-0 sm:h-[200%]"
400+ className = "-iframe pointer-events-none h-[220%] w-full origin-top border-0 sm:h-[200%]"
402401 initial = { { opacity : 0 , y : 0 } }
403402 animate = { {
404403 opacity : 1 ,
@@ -448,7 +447,7 @@ const SelectComponent = ({
448447
449448 { /* Dynamic Indicator */ }
450449 < motion . div
451- className = { `ourprojects -live-indicator absolute right-4 bottom-4 flex items-center rounded-full px-3 py-2 text-xs font-medium text-white backdrop-blur-sm ${
450+ className = { `-live-indicator absolute right-4 bottom-4 flex items-center rounded-full px-3 py-2 text-xs font-medium text-white backdrop-blur-sm ${
452451 items [ activeItem ] . title === "Awesome GitHub Profile" ||
453452 items [ activeItem ] . title === "Machine Learning Repository"
454453 ? "bg-green-600/90"
@@ -469,7 +468,7 @@ const SelectComponent = ({
469468 </ motion . div >
470469
471470 { /* Holographic Overlay */ }
472- < div className = "ourprojects -overlay pointer-events-none absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent" >
471+ < div className = "-overlay pointer-events-none absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent" >
473472 < div className = "absolute inset-0 bg-gradient-to-br from-purple-500/10 via-transparent to-cyan-500/10" > </ div >
474473 </ div >
475474 </ motion . div >
@@ -581,4 +580,4 @@ const SelectComponent = ({
581580 ) ;
582581} ;
583582
584- export default OurProjects ;
583+ export default ShowcasePage ;
0 commit comments