Skip to content
Merged
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
71 changes: 68 additions & 3 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
"dependencies": {
"@react-three/drei": "^10.7.7",
"@react-three/fiber": "^9.4.2",
"@react-three/postprocessing": "^3.0.4",
"axios": "^1.13.2",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-router": "^7.9.6",
"react-router-dom": "^7.11.0",
"three": "^0.182.0"
},
"devDependencies": {
Expand Down
58 changes: 58 additions & 0 deletions client/src/CorridorScene.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/* eslint-disable react/no-unknown-property */

/**
* רכיב CorridorScene
* תפקידו להציג שכבת ממשק (UI Overlay) בזמן מעבר בין חדרים.
* הוא מציג טקסט מרכזי עם אפקט "זכוכית חלבית" (Glassmorphism).
*/
export default function CorridorScene({ text }) {
return (
<div
style={{
// פריסה על כל המסך מעל שכבת התלת-ממד
position: "absolute",
inset: 0,

// מרכז את הטקסט בדיוק באמצע המסך (אופקית ואנכית)
display: "flex",
alignItems: "center",
justifyContent: "center",

// מבטיח שהשכבה הזו לא תחסום לחיצות עכבר אם הן נדרשות מתחת
pointerEvents: "none",
fontFamily: "system-ui, Arial",
}}
>
<div
style={{
// עיצוב התיבה (Padding ורדיוס פינות)
padding: "14px 18px",
borderRadius: 14,

// צבע רקע לבן שקוף מאוד
background: "rgba(255,255,255,0.10)",

// מסגרת עדינה שנותנת תחושת עומק הייטקית
border: "1px solid rgba(255,255,255,0.12)",

// צבע טקסט לבן כמעט מלא
color: "rgba(255,255,255,0.92)",

// צל רך מתחת לתיבה
boxShadow: "0 10px 30px rgba(0,0,0,0.25)",

// האפקט החשוב ביותר: טשטוש של מה שנמצא מתחת לתיבה (אפקט זכוכית)
backdropFilter: "blur(6px)",

// הגדרות טיפוגרפיה
fontSize: 18,
fontWeight: 700,
letterSpacing: 0.2,
}}
>
{/* הטקסט הדינמי המועבר מה-ThreeDemo (למשל: "starting Mission 1") */}
{text}
</div>
</div>
);
}
Empty file.
Empty file.
Empty file.
Empty file.
Loading
Loading