diff --git a/src/students/index.ts b/src/students/index.ts index b32b361..4ccad83 100644 --- a/src/students/index.ts +++ b/src/students/index.ts @@ -1,5 +1,8 @@ import { Student } from "../types"; +import YaelCard from "./yael-yosef/Card"; +import YaelJokePage from "./yael-yosef/JokePage"; + import DanaDuviCard from "./dana-duvi/Card"; import DanaDuviJokePage from "./dana-duvi/JokePage"; @@ -7,10 +10,10 @@ import ChaniChanzinCard from "./chani-chanzin/Card"; import ChaniChanzinJokePage from "./chani-chanzin/JokePage"; import efratJokePage from "./efrat-posen/JokePage"; import efratCard from "./efrat-posen/card"; - import HadasJokePage from "./hadas-kohavi/JokePage"; import HadasCard from "./hadas-kohavi/Card"; + // ⚠️ סדר הרשימה חייב להיות לפי סדר האלף-בית העברי לפי שם המשפחה. // כל תלמידה מוסיפה את עצמה במקום הנכון ידנית. // אסור להשתמש בפונקציית-sort! @@ -43,6 +46,13 @@ const students: Student[] = [ CardComponent: efratCard, JokePageComponent: efratJokePage, }, +{ + id: "yael-yosef", + name: "יעל יוסף", + jokeTitle: "חמש שקלים בכיס", + CardComponent: YaelCard, + JokePageComponent: YaelJokePage, +}, ]; export default students; diff --git a/src/students/yael-yosef/Card.tsx b/src/students/yael-yosef/Card.tsx new file mode 100644 index 0000000..6b78292 --- /dev/null +++ b/src/students/yael-yosef/Card.tsx @@ -0,0 +1,11 @@ +import styles from "./styles.module.css"; +import { CardProps } from "../../types"; + +export default function YaelCard({ student, onClick }: CardProps) { + return ( +
+

{student.jokeTitle}

+

{student.name}

+
+ ); +} \ No newline at end of file diff --git a/src/students/yael-yosef/JokePage.tsx b/src/students/yael-yosef/JokePage.tsx new file mode 100644 index 0000000..d5cfaa5 --- /dev/null +++ b/src/students/yael-yosef/JokePage.tsx @@ -0,0 +1,13 @@ +import styles from "./styles.module.css"; +import { PageProps } from "../../types"; + +export default function YaelJokePage({ onBack }: PageProps) { + return ( +
+

מכנסיים של מישהו אחר

+

המורה: "דני, אם יש לך 5 שקלים בכיס ימין ו-5 שקלים בכיס שמאל, מה יש לך?"

+

דני: "מכנסיים של מישהו אחר!"

+ +
+ ); +} \ No newline at end of file diff --git a/src/students/yael-yosef/styles.module.css b/src/students/yael-yosef/styles.module.css new file mode 100644 index 0000000..0f7d522 --- /dev/null +++ b/src/students/yael-yosef/styles.module.css @@ -0,0 +1,21 @@ +.card { + padding: 20px; + border-radius: 8px; + cursor: pointer; + background-color: #f9f9f9; +} + +.title { + font-size: 1.5rem; + color: #333; +} + +.name { + font-size: 1rem; + color: #666; +} + +.jokePage { + padding: 40px; + text-align: center; +} \ No newline at end of file