@@ -147,7 +151,7 @@ function CoursesContent() {
@@ -210,7 +214,7 @@ function CoursesContent() {
capacity: t("courses.capacity"),
unlimited: t("courses.unlimited"),
enrolled: t("courses.enrolled"),
- kind: course.kind === "study" ? t("courses.kind.study") : course.kind === "club" ? t("courses.kind.club") : t("courses.kind.course"),
+ kind: courseKindLabel(course.kind, t),
}}
/>
)}
diff --git a/src/pages/guide-page.tsx b/src/pages/guide-page.tsx
index 3c2fd67..f132663 100644
--- a/src/pages/guide-page.tsx
+++ b/src/pages/guide-page.tsx
@@ -1,4 +1,4 @@
-import { For } from "solid-js";
+import { For, type Component } from "solid-js";
import { Link } from "@tanstack/solid-router";
import { RouteGuard } from "@/components/layout/route-guard";
import { PageHeader } from "@/components/layout/page-header";
@@ -21,24 +21,56 @@ import {
IconFileText,
IconChart,
} from "@/components/ui/icons";
+import type { MessageKey } from "@/i18n/messages";
import { useT } from "@/stores/preferences-context";
import { cn } from "@/lib/cn";
+// Everything on this page is copy, so the arrays below carry message keys and
+// presentation only — no literal text, in either locale.
type GuideStep = {
id: string;
stepNumber: string;
- badge: string;
- badgeTone: string;
borderTone: string;
- icon: any;
+ icon: Component<{ class?: string }>;
iconColor: string;
- title: string;
- description: string;
to: string;
- cta: string;
- features: string[];
};
+const CARD_TONE = "border-sky-500/40 dark:border-sky-500/30 hover:border-sky-500/70 ring-1 ring-sky-500/20";
+const BADGE_TONE = "border-sky-500/40 text-foreground bg-card";
+
+const STEPS: GuideStep[] = [
+ { id: "ai", stepNumber: "01", borderTone: CARD_TONE, icon: IconSparkles, iconColor: "text-sky-400", to: "/" },
+ { id: "notes", stepNumber: "02", borderTone: CARD_TONE, icon: IconNote, iconColor: "text-sky-400", to: "/notes" },
+ { id: "questions", stepNumber: "03", borderTone: CARD_TONE, icon: IconBook, iconColor: "text-sky-400", to: "/questions" },
+ { id: "courses", stepNumber: "04", borderTone: CARD_TONE, icon: IconCalendarDays, iconColor: "text-sky-400", to: "/courses" },
+ { id: "exams", stepNumber: "05", borderTone: CARD_TONE, icon: IconExam, iconColor: "text-sky-400", to: "/exams" },
+ { id: "marks", stepNumber: "06", borderTone: CARD_TONE, icon: IconReportAnalytics, iconColor: "text-sky-400", to: "/marks" },
+];
+
+type RoleTab = {
+ id: string;
+ tabKey: MessageKey;
+ icon: Component<{ class?: string }>;
+ checkColor: string;
+};
+
+const ROLE_TABS: RoleTab[] = [
+ { id: "student", tabKey: "role.student", icon: IconSchool, checkColor: "text-emerald-400" },
+ { id: "teacher", tabKey: "role.teacher", icon: IconClipboardCheck, checkColor: "text-sky-400" },
+ { id: "parent", tabKey: "role.parent", icon: IconUsers, checkColor: "text-violet-400" },
+ { id: "admin", tabKey: "guide.roles.adminTab", icon: IconUserCog, checkColor: "text-amber-400" },
+];
+
+const TIPS = [
+ { id: "locale", icon: IconGlobe, tone: "text-violet-400" },
+ { id: "sync", icon: IconClock, tone: "text-sky-400" },
+ { id: "import", icon: IconFileText, tone: "text-amber-400" },
+ { id: "weights", icon: IconChart, tone: "text-emerald-400" },
+] satisfies { id: string; icon: Component<{ class?: string }>; tone: string }[];
+
+const ITEM_INDEXES = [1, 2, 3, 4] as const;
+
export default function GuidePage() {
return (
@@ -49,266 +81,102 @@ export default function GuidePage() {
function GuideContent() {
const t = useT();
-
- const steps: GuideStep[] = [
- {
- id: "ai",
- stepNumber: "01",
- badge: "Yapay Zeka",
- badgeTone: "border-sky-500/40 text-foreground bg-card",
- borderTone: "border-sky-500/40 dark:border-sky-500/30 hover:border-sky-500/70 ring-1 ring-sky-500/20",
- icon: IconSparkles,
- iconColor: "text-sky-400",
- title: "Çelebi AI Asistanı",
- description: "Tüm sayfalardan üst barda bulunan 'Çelebi'ye Sor' butonuyla erişilebilir akıllı yapay zeka asistanı. Kampüs verileriniz, ders konularınız ve sistem hakkında anlık yanıtlar verir.",
- to: "/",
- cta: "Çelebi'yi Dene",
- features: ["Tüm sayfalardan tek tıkla erişim", "Kampüs ve ders odaklı yanıtlar", "Bağlamsal çalışma rehberliği"],
- },
- {
- id: "notes",
- stepNumber: "02",
- badge: "Notlar & Çizim",
- badgeTone: "border-sky-500/40 text-foreground bg-card",
- borderTone: "border-sky-500/40 dark:border-sky-500/30 hover:border-sky-500/70 ring-1 ring-sky-500/20",
- icon: IconNote,
- iconColor: "text-sky-400",
- title: "Akıllı Defter & Çizim Tuvali",
- description: "PDF, TXT ve Markdown materyallerinizi temiz Markdown notlarına dönüştürün. Dahili .hzdraw tuvali ile derslerinize serbest el çizimleri ve grafikler ekleyin.",
- to: "/notes",
- cta: "Notlara Git",
- features: ["PDF & TXT otomatik dönüştürücü", "Dahili .hzdraw serbest çizim tuvali", "Markdown biçimlendirme ve OCR uyarısı"],
- },
- {
- id: "questions",
- stepNumber: "03",
- badge: "Soru Havuzu",
- badgeTone: "border-sky-500/40 text-foreground bg-card",
- borderTone: "border-sky-500/40 dark:border-sky-500/30 hover:border-sky-500/70 ring-1 ring-sky-500/20",
- icon: IconBook,
- iconColor: "text-sky-400",
- title: "Soru Havuzu & Çözümler",
- description: "Topluluk soru havuzunda sorularınızı paylaşın, yazılı ve çoktan seçmeli çözümler ekleyin. Öğretmen onaylı çözümlerle ders konularında uzmanlaşın.",
- to: "/questions",
- cta: "Soru Havuzu",
- features: ["Yazılı ve test çözümleri", "Öğretmen onaylı çözüm rozeti", "Filtrelenebilir konu ve durum kategorileri"],
- },
- {
- id: "courses",
- stepNumber: "04",
- badge: "Dersler & Etütler",
- badgeTone: "border-sky-500/40 text-foreground bg-card",
- borderTone: "border-sky-500/40 dark:border-sky-500/30 hover:border-sky-500/70 ring-1 ring-sky-500/20",
- icon: IconCalendarDays,
- iconColor: "text-sky-400",
- title: "Dersler, Etütler & Kulüpler",
- description: "Ders, etüt ve kulüp programı. Öğretmenler öğrenci kaydeder, ders içi oturum yoklaması (Var, Yok, Geç, Mazeretli) alır ve müfredat takibi yapar.",
- to: "/courses",
- cta: "Derslerim",
- features: ["Öğrenci ders kayıt yönetimi", "Anlık oturum yoklaması alma", "Sınav ve etüt takvimi hizalaması"],
- },
- {
- id: "exams",
- stepNumber: "05",
- badge: "Sınav Odası",
- badgeTone: "border-sky-500/40 text-foreground bg-card",
- borderTone: "border-sky-500/40 dark:border-sky-500/30 hover:border-sky-500/70 ring-1 ring-sky-500/20",
- icon: IconExam,
- iconColor: "text-sky-400",
- title: "Sınav Odası & Canlı Takip",
- description: "Geri sayım ve otomatik kaydetmeli canlı sınav odası. Öğretmenler canlı izleme panelinden yanıt kağıtlarını ve anlık puanlama önerilerini takip eder.",
- to: "/exams",
- cta: "Sınav Odası",
- features: ["Sunucu saati senkronize geri sayım", "WebSocket & REST otomatik kaydetme", "Canlı öğretmen izleme ve puanlama"],
- },
- {
- id: "marks",
- stepNumber: "06",
- badge: "Karne & Devam",
- badgeTone: "border-sky-500/40 text-foreground bg-card",
- borderTone: "border-sky-500/40 dark:border-sky-500/30 hover:border-sky-500/70 ring-1 ring-sky-500/20",
- icon: IconReportAnalytics,
- iconColor: "text-sky-400",
- title: "Karne & İlerleme Raporu",
- description: "Dönem ders ortalamaları ve sınav türü ağırlıklarına göre hesaplanan genel başarı puanı. Devamsızlık istatistikleri ile anlık gelişim takibi.",
- to: "/marks",
- cta: "Karnem",
- features: ["Ağırlıklı sınav puan ortalaması", "Devamsızlık ve mazeret özetleri", "Detaylı grafik ve ders raporları"],
- },
- ];
+ const stepText = (id: string, field: string) => t(`guide.step.${id}.${field}` as MessageKey);
return (
-
+
- {/* 1. ROL BAZLI YETKİ HARİTASI (TABS AT THE TOP) */}
-
Rol Bazlı Yetki Haritası
-
Platformdaki her bir rolün erişebildiği ve yönetebildiği alanlar.
+
{t("guide.roles.title")}
+
{t("guide.roles.subtitle")}
-
-
- Öğrenci
-
-
-
- Öğretmen
-
-
-
- Veli
-
-
-
- Yönetici & Admin
-
+
+ {(role) => (
+
+
+ {t(role.tabKey)}
+
+ )}
+
-
-
-
Öğrenci Çalışma & Katılım Araçları
-
- -
-
- Kendi özel defterinde not tutma, PDF aktarma ve çizim yapma
-
- -
-
- Soru havuzunda soru sorma, diğer sorulara çözüm yazma
-
- -
-
- Kaydolunan derslerin sınav odasına girme ve süreli sınav çözme
-
- -
-
- Kendi karne ortalamasını ve devamsızlık durumunu izleme
-
-
-
-
-
-
-
-
Öğretmen Yönetim & Eğitici Paneli
-
- -
-
- Ders, etüt ve kulüp oluşturma, öğrencileri derse kaydetme
-
- -
-
- Ders oturumlarında öğrenci yoklaması alma (Var, Yok, Geç, Mazeretli)
-
- -
-
- Sınav oluşturma, sorular ekleme ve canlı sınav takibi yürütme
-
- -
-
- Öğrenci sınav kağıtlarını inceleme, puan verme ve karne onaylama
-
-
-
-
-
-
-
-
Veli Takip & Bilgilendirme Portalı
-
- -
-
- Bağlı öğrencilerin ders devamsızlık kayıtlarını anlık izleme
-
- -
-
- Öğrencinin ders bazlı karne başarı ortalamalarını görüntüleme
-
- -
-
- Yaklaşan sınav ve etkinlik takvimini takip etme
-
- -
-
- Öğretmenler ve okul yönetimi ile doğrudan mesajlaşma
-
-
-
-
-
-
-
-
Yönetici & Sistem Politikaları Paneli
-
- -
-
- Kullanıcı hesapları oluşturma, rollerini atama (Öğrenci, Öğretmen, Veli)
-
- -
-
- Okul akademik dönemleri, sınav türleri ve ağırlık oranlarını tanımlama
-
- -
-
- Tüm ders ve etkinlik kayıtlarını genel denetim seviyesinde yönetme
-
- -
-
- Personel çalışma günlüklerini ve sistem loglarını inceleme
-
-
-
-
+
+ {(role) => (
+
+
+
+ {t(`guide.roles.${role.id}.heading` as MessageKey)}
+
+
+
+ {(n) => (
+ -
+
+ {t(`guide.roles.${role.id}.i${n}` as MessageKey)}
+
+ )}
+
+
+
+
+ )}
+
- {/* 2. TEMEL AKIŞLAR & ÖZELLİKLER (MODÜL KARTLARI) */}
-
Temel Akışlar & Özellikler
-
Hezarfen platformundaki ana modülleri ve kullanım adımlarını inceleyin.
+
{t("guide.modules.title")}
+
{t("guide.modules.subtitle")}
-
+
{(step) => (
-
+
-
+
- {step.badge}
+ {stepText(step.id, "badge")}
{step.stepNumber}
-
{step.title}
-
{step.description}
+
{stepText(step.id, "title")}
+
{stepText(step.id, "description")}
-
- {(feat) => (
+
+ {(n) => (
-
- {feat}
+ {stepText(step.id, `f${n}`)}
)}
-
+
-
- {/* 3. PRATİK İPUÇLARI & KISAYOLLAR */}
-
Pratik İpuçları & Kısayollar
-
Hezarfen deneyimini en verimli şekilde kullanmanızı sağlayan püf noktaları.
+
{t("guide.tips.title")}
+
{t("guide.tips.subtitle")}
- -
-
-
-
-
-
Dil & Tema Seçimi
-
Sağ üstteki profil avatarınıza tıklayarak Türkçe / İngilizce dillerini ve Dark / Light temalarını anında değiştirebilirsiniz.
-
-
- -
-
-
-
-
-
Otomatik Senkronizasyon
-
Sınav odasındaki yanıtlarınız ve çizim tuvalindeki taslaklarınız sunucu saati (`/time`) ile arka planda güvenle kaydedilir.
-
-
- -
-
-
-
-
-
Hızlı Not İçe Aktarma
-
Notlar sayfasında "İçe Aktar" butonunu kullanarak PDF ve TXT ders dokümanlarınızı temiz Markdown metinlerine dönüştürebilirsiniz.
-
-
- -
-
-
-
-
-
Ağırlıklı Not Hesaplaması
-
Sınav sonuçlarınız, okul yönetiminin tanımladığı sınav türü ağırlıklarına göre doğrudan karne ortalamanıza yansıtılır.
-
-
+
+ {(tip) => (
+ -
+
+
+
+
+
{t(`guide.tips.${tip.id}.title` as MessageKey)}
+
{t(`guide.tips.${tip.id}.body` as MessageKey)}
+
+
+ )}
+
diff --git a/src/pages/messages-page.tsx b/src/pages/messages-page.tsx
index cb2935a..e9281fe 100644
--- a/src/pages/messages-page.tsx
+++ b/src/pages/messages-page.tsx
@@ -292,7 +292,7 @@ export default function MessagesPage() {
class="h-9 px-3 rounded-full text-xs font-semibold shrink-0"
onClick={handleRefresh}
disabled={isRefreshing()}
- title="Mesajları Yenile"
+ title={t("messages.refreshList")}
>
- Yenile
+ {t("common.refresh")}
diff --git a/src/pages/notes-page.tsx b/src/pages/notes-page.tsx
index f06e63d..c01b16a 100644
--- a/src/pages/notes-page.tsx
+++ b/src/pages/notes-page.tsx
@@ -86,14 +86,14 @@ function NotesContent() {
setImportOpen(true)}>
- İçe Aktar
+ {t("notes.import")}
}
/>
-
+
setImportOpen(false)}
onImport={async (importedTitle, importedMarkdown) => {
diff --git a/src/pages/questions-page.tsx b/src/pages/questions-page.tsx
index 32fe0df..ab63d89 100644
--- a/src/pages/questions-page.tsx
+++ b/src/pages/questions-page.tsx
@@ -186,7 +186,7 @@ function QuestionsContent() {
open={!!questionToDelete()}
onOpenChange={(open) => !open && setQuestionToDelete(null)}
title={t("common.delete")}
- summary="Bu soruyu silmek istediğinizden emin misiniz?"
+ summary={t("questions.deleteConfirm")}
onConfirm={handleDeleteConfirmed}
/>