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
12 changes: 11 additions & 1 deletion src/students/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
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";

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!
Expand Down Expand Up @@ -43,6 +46,13 @@ const students: Student[] = [
CardComponent: efratCard,
JokePageComponent: efratJokePage,
},
{
id: "yael-yosef",
name: "יעל יוסף",
jokeTitle: "חמש שקלים בכיס",
CardComponent: YaelCard,
JokePageComponent: YaelJokePage,
},
];

export default students;
11 changes: 11 additions & 0 deletions src/students/yael-yosef/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 YaelCard({ 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>
);
}
13 changes: 13 additions & 0 deletions src/students/yael-yosef/JokePage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import styles from "./styles.module.css";
import { PageProps } from "../../types";

export default function YaelJokePage({ onBack }: PageProps) {
return (
<div className={`joke-page ${styles.jokePage}`}>
<p><strong><p><strong>מכנסיים של מישהו אחר</strong></p></strong></p>
<p>המורה: "דני, אם יש לך 5 שקלים בכיס ימין ו-5 שקלים בכיס שמאל, מה יש לך?"</p>
<p>דני: "מכנסיים של מישהו אחר!"</p>
<button onClick={onBack}>← חזרה</button>
</div>
);
}
21 changes: 21 additions & 0 deletions src/students/yael-yosef/styles.module.css
Original file line number Diff line number Diff line change
@@ -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;
}