PageSourceSearch

https://ychion.ru/assets/CreatePage-B2-dJA0A.js

js ychion.ru collected 2026-10-06 06:31:40 UTC 8,399 bytes, 1 lines download raw bytes

1import{a as x,b as m,r as c,j as e,L as r}from"./vendor-react-DzAa3Ik1.js";import{u as p,H as h}from"./index-DnmGA6ov.js";import{P as b}from"./LoadingSpinner-ATGVV_Pf.js";import"./vendor-pdf-DXfsUsUt.js";import"./vendor-forms-BzAElJeV.js";import"./vendor-katex-7g_RTU_M.js";function g(){const s=new Date().getHours();return s>=5&&s<12?"Доброе утро":s>=12&&s<18?"Добрый день":s>=18&&s<23?"Добрый вечер":"Доброй ночи"}const u=[{emoji:"📝",title:"Рабочий лист",subtitle:"Задания и тесты — печать и ссылка ученику",to:"/generate"},{emoji:"🖥️",title:"Презентация",subtitle:"Живые веб-слайды с графиками или .pptx",to:"/presentations/generate"},{emoji:"📚",title:"План урока",subtitle:"Полный план по ФГОС + лист и слайды к нему",to:"/create/lesson-plan"},{emoji:"❓",title:"Викторина",subtitle:"Интерактивная, с автопроверкой и ссылкой ученику",to:"/generate?preset=quiz"},{emoji:"🧩",title:"Кроссворд",subtitle:"По вашей теме, готовый к печати",to:"/create/crossword"},{emoji:"📸",title:"Проверить работу",subtitle:"ИИ разберёт фото тетради и найдёт ошибки",to:"/create/check"},{emoji:"🎨",title:"Онлайн-доска",subtitle:"Рисуйте и объясняйте вместе с учеником",to:"/board"},{emoji:"👥",title:"Мои ученики",subtitle:"Классы, домашние задания, оплаты",to:"/cabinet"},{emoji:"✨",title:"ИИ-агенты",subtitle:"План урока, КТП, диктанты, письма — готовые помощники",to:"/agents"}],j=["📐 Математика","📖 Русский","🔬 Биология","🌍 География","📚 История","🎨 Литература"];function C(){const s=x(),{user:i,status:a}=p(),[l]=m();if(c.useEffect(()=>{a==="unauthenticated"&&s("/login")},[a,s]),c.useEffect(()=>{(l.get("preset")||l.get("prompt")||l.get("tab"))&&s(`/generate?${l.toString()}`,{replace:!0})},[l,s]),a==="loading")return e.jsx(b,{});if(!i)return null;const o=i.name?.split(" ")[0]||"";return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-white via-purple-50/30 to-white",children:[e.jsx(h,{}),e.jsxs("main",{className:"mx-auto max-w-5xl px-4 py-8 sm:py-10",children:[e.jsxs("section",{className:"mb-8 text-center",children:[e.jsxs("h1",{className:"text-3xl sm:text-4xl font-black neon-title mb-2 tracking-tight",children:[g(),o?`, ${o}`:"","!"]}),e.jsx("p",{className:"text-slate-500",children:"С чего начнём? Все инструменты — в одном месте."})]}),e.jsx("div",{className:"mb-8 flex flex-wrap justify-center gap-2",children:j.map(t=>e.jsx(r,{to:`/generate?prompt=${encodeURIComponent(t.replace(/^[^А-Яа-яЁё]+/,""))}`,className:"rounded-full border border-slate-200 bg-white px-3.5 py-1.5 text-sm font-medium text-slate-600 transition-colors hover:border-[#8C52FF]/40 hover:text-[#8C52FF]",children:t},t))}),e.jsxs(r,{to:"/create/pretty-sheet",className:"mb-4 flex items-center gap-4 roun
1ded-2xl border border-[#8C52FF]/30 bg-gradient-to-r from-purple-50 via-white to-amber-50 p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-[#8C52FF]/60 hover:shadow-md",children:[e.jsx("div",{className:"text-4xl",children:"🎨"}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h3",{className:"text-lg font-bold text-slate-900",children:["Красивый лист",e.jsx("span",{className:"ml-2 rounded-full bg-[#8C52FF] px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white align-middle",children:"Новинка"})]}),e.jsx("p",{className:"mt-0.5 text-sm text-slate-500 leading-snug",children:"Оформленный рабочий лист по теме — как из методички: рамки, персонаж, задания. Готов к печати"})]})]}),e.jsxs(r,{to:"/market",className:"mb-4 flex items-center gap-4 rounded-2xl border border-emerald-200 bg-gradient-to-r from-emerald-50 via-white to-purple-50 p-5 shadow-sm transition-all hover:-translate-y-0.5 hover:border-emerald-300 hover:shadow-md",children:[e.jsx("div",{className:"text-4xl",children:"🛍"}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h3",{className:"text-lg font-bold text-slate-900",children:["Маркетплейс материалов",e.jsx("span",{className:"ml-2 rounded-full bg-emerald-500 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white align-middle",children:"Новинка"})]}),e.jsx("p",{className:"mt-0.5 text-sm text-slate-500 leading-snug",children:"Готовые листы и презентации от коллег — за коины или бесплатно. Публикуйте свои и зарабатывайте коины"})]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mb-10",children:u.map(t=>{const n=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("div",{className:"text-3xl",children:t.emoji}),t.soon&&e.jsx("span",{className:"rounded-full bg-slate-100 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-slate-400",children:"Скоро"})]}),e.jsx("h3",{className:"mt-3 text-lg font-bold text-slate-900",children:t.title}),e.jsx("p",{className:"mt-1 text-sm text-slate-500 leading-snug",children:t.subtitle})]}),d="rounded-2xl border p-5 text-left transition-all";return t.to?e.jsx(r,{to:t.to,className:`${d} border-purple-100 bg-white shadow-sm hover:-translate-y-0.5 hover:border-[#8C52FF]/40 hover:shadow-md`,children:n},t.title):e.jsx("div",{className:`${d} border-slate-100 bg-slate-50/60 opacity-70 cursor-default`,children:n},t.title)})}),e.jsxs("section",{className:"mb-10",children:[e.jsx("h2",{className:"mb-3 text-lg font-bold text-slate-900",children:"Подготовка к экзаменам"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-3",children:[{label:"ОГЭ",to:"/generate?preset=oge"},{label:"ЕГЭ",to:"/generate?preset=ege"},{label:"ВПР",to:"/generate?preset=vpr"},{label:"Олимпиада",to:"/generate?preset=olympiad"},{label:"Контрольная",to:"/generate?preset=quiz"}].map(t=>e.jsx(r,{to:t.to,className:"rounded-2xl border border-purple-100 bg-white p-4 text-center text-sm font-semibold text-slate-700 transition-all hover:-translate-y-0.5 hover:border-[#8C52FF]/40 hover:text-[#8C52FF]",children:t.label},t.label))})]}),e.jsx("div",{className:"mb-10",children:e.jsxs(r,{to:"/guide",className:"flex items-center gap-3 rounded-2xl border border-purple-100 bg-white p-4 transition-colors hover:bg-purple-50/50",children:[e.jsx("span",{className:"text-2xl",children:"📖"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-semibold text-slate-900",children:"Все возможности платформы"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Инструкция по всем функциям и кнопкам — с поиском"})]}),e.jsx("span",{className:"text-[#8C52FF]",children:"→"})]})}),e.jsxs("section",{children:[e.jsx("h2",{className:"mb-3 text-lg font-bold text-slate-900",children:"Мои материалы"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs(r,{to:"/worksheets",className:"flex items-center gap-3 rounded-2xl border border-purple-100 bg-white p-4 transition-colors hover:bg-purple-50/50",children:[e.jsx("span",{className:"text-2xl",children:"📄"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-slate-900",children:"Рабочие листы"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Все созданные листы и тесты"})]})]}),e.jsxs(r,{to:"/presentations",className:"flex items-center gap-3 rounded-2xl border border-purple-100 bg-white p-4 transition-colors hover:bg-purple-50/50",children:[e.jsx("span",{className:"text-2xl",children:"🖼️"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-slate-900",children:"Презентации"}),e.jsx("p",{className:"text-xs text-slate-500",children:"Веб-презентации и .pptx"})]})]})]})]})]})]})}export{C as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.