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
11 changes: 11 additions & 0 deletions src/students/Shani-Mishaely/Card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styles from "./styles.module.css";
import { CardProps } from "../../types";

export default function ShaniCard({ student, onClick }: CardProps) {
return (
<div onClick={onClick} className={`joke-card ${styles.card}`}>
<h2 className={styles.title}>{student.jokeTitle}</h2>
<p className={styles.name}>{student.name}</p>
</div>
);
}
16 changes: 16 additions & 0 deletions src/students/Shani-Mishaely/JokePage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import styles from "./styles.module.css";
import { PageProps } from "../../types";

export default function ShaniJokePage({ onBack }: PageProps) {
return (
<div className={`joke-page ${styles.jokePage}`}>
<h2>מה אומר קיר אחד לקיר השני? 🧱</h2>
<br />
<p style={{ fontSize: "1.5rem", fontWeight: "bold", color: "#ff9f43" }}>
"ניפגש בפינה!" 🤭
</p>
<br />
<button onClick={onBack}>← חזרה לדף הבית</button>
</div>
);
}
16 changes: 16 additions & 0 deletions src/students/Shani-Mishaely/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.card {
padding: 20px;
border-radius: 8px;
background-color: #f3f4f6;
cursor: pointer;
transition: transform 0.2s;
}

.card:hover {
transform: scale(1.05);
}

.jokePage {
padding: 40px;
text-align: center;
}
18 changes: 13 additions & 5 deletions src/students/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import RachelWeinbergerJokePage from "./rachel-weinberger/JokePage";
import RachelWeinbergerCard from "./rachel-weinberger/Card";


import ShaniCard from "./Shani-Mishaely/Card";
import ShaniJokePage from "./Shani-Mishaely/JokePage";



// ⚠️ סדר הרשימה חייב להיות לפי סדר האלף-בית העברי לפי שם המשפחה.
// כל תלמידה מוסיפה את עצמה במקום הנכון ידנית.
Expand All @@ -31,25 +35,29 @@ const students: Student[] = [
CardComponent: ChaniChanzinCard,
JokePageComponent: ChaniChanzinJokePage,
},

{
id:"yehudit",
name: "יהודית",
jokeTitle:"התירוץ המושלם לרופא",
CardComponent: yehuditCard,
JokePageComponent: yehuditJokePage,
},



{

id: "rachel-weinberger",
name: "רחלי וינברגר",
jokeTitle: "כפית אחת יותר מדי",
CardComponent: RachelWeinbergerCard,
JokePageComponent: RachelWeinbergerJokePage,
},

{
id: "Shani-Mishaely",
name: "שני מישאלי",
jokeTitle: "סודות של קירות... 🧱",
CardComponent: ShaniCard,
JokePageComponent: ShaniJokePage,
},
];

export default students;