LifeMate — Personal, Family & Learning Companion
design: draft separate mobile screens for owner review
Quinn White committed
Oct 16, 2026 at 07:27 UTC
8b27deeadeea7bca8dcd831b14fc826f262647f6
7 files changed
+376
design-review/mobile-v1/REFERENCES.md
new
+40
@@ -0,0 +1,40 @@
1
+# مبنای طراحی LifeGuide — طرح قابل بازبینی، نه نسخه عملیاتی
2
+
3
+تاریخ: ۲۰۲۶-۱۰-۱۶. دامنه: فقط معماری اطلاعات و طرح رابط؛ بدون تغییر محصول، سرویس زنده یا سیاست دسترسی.
4
+
5
+## شاهد بررسی
6
+
7
+**VERIFIED:** دو سند موجود `docs/ux/IA_AND_JOURNEYS_V1.md` و `docs/ux/BRAND_BRIEF_V1.md` در worktree `/tmp/lifeguide-child-safety` با `sed -n '1,220p'` خوانده شد. هر دو تاریخیاند. اصل قابل حفظ: «همراه رشد، نه ناظر»، RTL، تم آرام و قابل تغییر، تفکیک تجربه کودک/والد، و نوار کناری واکنشگرا در وب.
8
+
9
+**VERIFIED:** در همین تاریخ، جستوجو با `mcp__codex_apps__exa_web_search_exa` و خواندن متن سه صفحه رسمی با `mcp__codex_apps__exa_web_fetch_exa` انجام شد. این بررسی تطبیقی محدود است؛ آزمایش خود اپهای رقیب یا اثبات «بهترین/بینقصترین» بودن آنها نیست.
10
+
11
+| مرجع رسمی | آنچه در منبع خوانده شد | الگوی پیشنهادی برای LifeGuide |
12
+| --- | --- | --- |
13
+| [Khan Academy — Course and Unit Mastery](https://support.khanacademy.org/hc/en-us/articles/115002552631-What-are-Course-and-Unit-Mastery) | وضعیت مهارت با عملکرد در تمرین، آزمونک و آزمون تغییر میکند؛ خلاصه نتیجه بعد از فعالیت ارائه میشود. | درس ← هدف کوتاه ← ویدئو با اقدام صریح ← تمرین/آزمونک ← بازخورد و پیشنهاد مرور. «ویدئو دیده شد» جدا از «نتیجه آزمون» نمایش داده شود. |
14
+| [Todoist — Today view](https://www.todoist.com/help/todoist/get-started/plan-your-day-with-the-today-view-UVUXaiSs) | کارهای امروز، اولویت، اختصاص بازه زمانی و تغییر موعد برای برنامه واقعبینانه. | خانه خلوت با اقدام بعدی؛ صفحه جداگانه برنامه امروز/هفته؛ جزئیات هر کار با دکمه روشن «شروع» یا «تغییر زمان». |
15
+| [FamilyWall — About FamilyWall](https://support.familywall.com/en/support/solutions/articles/47001013681-about-familywall) | تقویم مشترک، فهرست شخصی/مشترک، تخصیص کار و دسترسی از گوشی/وب. | فضای خانواده جدا از برنامه شخصی؛ مالک و دامنه اشتراک هر مورد خوانا باشد. قابلیتهای مکانیابی/پیامرسان/مالی این محصول وارد MVP نشوند. |
16
+
17
+سه محصول، سه مرجع برای سه مسئلهاند؛ هیچکدام بهعنوان الگوی کامل خانواده+مدرسه یا تضمین نتیجه یادگیری معرفی نمیشود. لوگو، طرح اختصاصی و داراییهای آنها کپی نمیشود.
18
+
19
+## ارزیابی منو و ساختار پیشنهادی
20
+
21
+- پنج مقصد کودک: **خانه، برنامه من، درسها، تمرکز، خانواده**. صفحه خانه شش کارت قابل کلیک دارد: برنامه، درسها، تمرکز، خانواده، گزارش من، یادآوریها. «گزارش من» مسیر نتیجه تمرین/مطالعه شخصی است و مجوز تازه ایجاد نمیکند. تنظیمات از آواتار باز میشود؛ یادآوریها مقصد مستقلِ قابل دسترسی از خانه/تنظیمات است.
22
+- هر کارت یک صفحه واقعی در پروتوتایپ باز کند؛ بازگشت به سطح قبلی، عنوان صفحه و مقصد انتخابشده همیشه مشخص باشند. از لینک به بخش پایین همان صفحه برای ناوبری اصلی استفاده نشود.
23
+- والد: خانه والد با انتخاب کودک و گزارش آموزشی مجاز. درس و تمرکز والد نباید بهظاهر دسترسی به حساب کودک بدهد. در طرح ۱۲ صفحهای، خانه والد/گزارش آن از حالت کودک جدا مشخص شوند؛ تغییر «نمای کودک/والد» فقط ابزار نمایش طرح است، نه احراز هویت یا مجوز واقعی.
24
+- روی موبایل: سربرگ و ناوبری ثابت، ناحیه محتوای همان صفحه با اسکرول کوتاه در صورت نیاز. حذف همه اسکرول هدف نیست؛ فهرست طولانی/فونت درشت باید بدون بریدگی قابل استفاده بماند. روی دسکتاپ: نوار کناری و محتوای محدودعرض.
25
+- شش کارت خانه در گوشی متعارف ۲ ستون × ۳ ردیف؛ یک کارت «اقدام بعدی» بالای آنها. اندازه هدف لمس حداقل ۴۴×۴۴، متن خوانا و وضعیت مستقل از رنگ.
26
+
27
+## برد قابل زوم: ۱۲ صفحه
28
+
29
+۱. خانه کودک با شش کارت و «اقدام بعدی»؛ ۲. برنامه امروز/هفته؛ ۳. جزئیات تکلیف؛ ۴. فهرست درسهای پایه هفتم؛ ۵. جزئیات یک درس و محل ویدئو + شروع آزمونک؛ ۶. سؤال آزمونک با بازخورد؛ ۷. تمرکز ۲۵/۵ و توقف/ادامه؛ ۸. خانواده و «والد چه چیزی میبیند»؛ ۹. خانه والد؛ ۱۰. گزارش محدود کودک با زمان آخرین همگامسازی؛ ۱۱. یادآوریها؛ ۱۲. تنظیمات.
30
+
31
+برد یک نمای کلی قابل زوم + مسیر کلیکشدنی میان همین صفحهها داشته باشد. برچسب روی همه صفحهها: «طرح تعاملی با داده ساختگی». مسیریابی، بازگشت و انتخاب منو قابل لمس باشند؛ کلیک ساختگی نباید ادعای ذخیره در سرور یا ارسال اعلان کند.
32
+
33
+## مرزهای محتوایی و پذیرش طرح
34
+
35
+- تنها نمونه MVP: یک درس پایه هفتم و محتوای اصیلِ بازبینینشده. فهرست موضوعها صرفاً پیشنهاد طراحی است؛ ادعای تطبیق کامل با آخرین کتاب رسمی یا دسترسی به کتابخانه ویدئویی نکنیم.
36
+- ویدئوی خارجی بهصورت خودکار بارگیری نشود؛ قاب «محل پخش پس از انتخاب و تأیید منبع» برای بررسی طراحی کافی است. منبع واقعی/آزمون واقعی در این بسته ساخته یا منتشر نمیشود.
37
+- صفر داده واقعی، فرم دریافت شماره/ایمیل، AI، داده سلامت/قاعدگی، جمعآوری گفتگو یا اتصال backend در پروتوتایپ.
38
+- گزارش والد فقط نمونه مجاز آموزشی با داده ساختگی؛ «زمان ثبتشده، نه اثبات مطالعه» و «آخرین همگامسازی» آشکار باشند. انتخاب سیاست دسترسی تازه با این طرح انجام نمیشود.
39
+- **UNVERIFIED:** کیفیت آموزشی، تطبیق کتاب، پخش آپارات در دستگاه واقعی، اعلان OS/ویجت، اتصال آنلاین/همگامسازی، عملکرد Safari/Android و نتیجه یادگیری. تصاویر و ناوبری نمایشی جای آزمون پذیرش این موارد نیستند.
40
+- معیار تحویل طراحی: مالک بتواند خانه، حداقل سه زیرصفحه و بازگشت را بدون اسکرول یک صفحه بلند تجربه کند و در تصویر بزرگ همه ۱۲ صفحه را ببیند. پس از تأیید او، تبدیل طرح به محصول در PR مستقل انجام شود.
design-review/mobile-v1/assets/FONT-LICENSE.txt
new
+93
@@ -0,0 +1,93 @@
1
+Copyright 2022 The Noto Project Authors (https://github.com/notofonts/arabic)
2
+
3
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+This license is copied below, and is also available with a FAQ at:
5
+https://openfontlicense.org
6
+
7
+
8
+-----------------------------------------------------------
9
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+-----------------------------------------------------------
11
+
12
+PREAMBLE
13
+The goals of the Open Font License (OFL) are to stimulate worldwide
14
+development of collaborative font projects, to support the font creation
15
+efforts of academic and linguistic communities, and to provide a free and
16
+open framework in which fonts may be shared and improved in partnership
17
+with others.
18
+
19
+The OFL allows the licensed fonts to be used, studied, modified and
20
+redistributed freely as long as they are not sold by themselves. The
21
+fonts, including any derivative works, can be bundled, embedded,
22
+redistributed and/or sold with any software provided that any reserved
23
+names are not used by derivative works. The fonts and derivatives,
24
+however, cannot be released under any other type of license. The
25
+requirement for fonts to remain under this license does not apply
26
+to any document created using the fonts or their derivatives.
27
+
28
+DEFINITIONS
29
+"Font Software" refers to the set of files released by the Copyright
30
+Holder(s) under this license and clearly marked as such. This may
31
+include source files, build scripts and documentation.
32
+
33
+"Reserved Font Name" refers to any names specified as such after the
34
+copyright statement(s).
35
+
36
+"Original Version" refers to the collection of Font Software components as
37
+distributed by the Copyright Holder(s).
38
+
39
+"Modified Version" refers to any derivative made by adding to, deleting,
40
+or substituting -- in part or in whole -- any of the components of the
41
+Original Version, by changing formats or by porting the Font Software to a
42
+new environment.
43
+
44
+"Author" refers to any designer, engineer, programmer, technical
45
+writer or other person who contributed to the Font Software.
46
+
47
+PERMISSION & CONDITIONS
48
+Permission is hereby granted, free of charge, to any person obtaining
49
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+redistribute, and sell modified and unmodified copies of the Font
51
+Software, subject to the following conditions:
52
+
53
+1) Neither the Font Software nor any of its individual components,
54
+in Original or Modified Versions, may be sold by itself.
55
+
56
+2) Original or Modified Versions of the Font Software may be bundled,
57
+redistributed and/or sold with any software, provided that each copy
58
+contains the above copyright notice and this license. These can be
59
+included either as stand-alone text files, human-readable headers or
60
+in the appropriate machine-readable metadata fields within text or
61
+binary files as long as those fields can be easily viewed by the user.
62
+
63
+3) No Modified Version of the Font Software may use the Reserved Font
64
+Name(s) unless explicit written permission is granted by the corresponding
65
+Copyright Holder. This restriction only applies to the primary font name as
66
+presented to the users.
67
+
68
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+Software shall not be used to promote, endorse or advertise any
70
+Modified Version, except to acknowledge the contribution(s) of the
71
+Copyright Holder(s) and the Author(s) or with their explicit written
72
+permission.
73
+
74
+5) The Font Software, modified or unmodified, in part or in whole,
75
+must be distributed entirely under this license, and must not be
76
+distributed under any other license. The requirement for fonts to
77
+remain under this license does not apply to any document created
78
+using the Font Software.
79
+
80
+TERMINATION
81
+This license becomes null and void if any of the above conditions are
82
+not met.
83
+
84
+DISCLAIMER
85
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+OTHER DEALINGS IN THE FONT SOFTWARE.
design-review/mobile-v1/assets/persian.ttf
Binary files /dev/null and b/design-review/mobile-v1/assets/persian.ttf differ
design-review/mobile-v1/src/App.tsx
new
+24
@@ -0,0 +1,24 @@
1
+import { Theme } from './settings/types';
2
+import { LifeGuide } from './components/generated/LifeGuide';
3
+
4
+let theme: Theme = 'light';
5
+
6
+function App() {
7
+ function setTheme(theme: Theme) {
8
+ if (theme === 'dark') {
9
+ document.documentElement.classList.add('dark');
10
+ } else {
11
+ document.documentElement.classList.remove('dark');
12
+ }
13
+ }
14
+
15
+ setTheme(theme);
16
+
17
+ return (
18
+ <>
19
+ <LifeGuide />
20
+ </>
21
+ ); // %EXPORT_STATEMENT%
22
+}
23
+
24
+export default App;
design-review/mobile-v1/src/components/generated/LifeGuide.css
new
+2
@@ -0,0 +1,2 @@
1
+@font-face{font-family:LGDesign;src:url('../../../assets/persian.ttf') format('truetype');font-display:swap;font-weight:100 900}
2
+.design-review{--ink:#173e36;--muted:#6d7b74;--line:#e4e9e2;--paper:#fffefa;--accent:#216b56;--wash:#eff3ec;font-family:LGDesign,Tahoma,sans-serif;color:var(--ink);background:#e9ede6;min-height:100dvh;font-size:14px;line-height:1.7;box-sizing:border-box}.design-review *{box-sizing:border-box}.design-review button,.design-review input,.design-review select{font:inherit}.design-review button{cursor:pointer;color:inherit;border:0;background:none;touch-action:manipulation}.design-review button:focus-visible,.design-review select:focus-visible,.design-review input:focus-visible{outline:3px solid #d48948;outline-offset:3px}.design-review h1,.design-review h2,.design-review h3,.design-review p{margin:0}.design-review button,.design-review select,.design-review input{-webkit-tap-highlight-color:transparent}.review-toolbar{min-height:76px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d7dfd5;gap:20px;background:#f8faf5}.review-toolbar strong{font-size:18px;font-weight:800;letter-spacing:-.3px}.review-toolbar strong span{font-size:12px;font-weight:500;color:var(--muted)}.review-toolbar small{display:block;font-size:11px;color:var(--muted)}.review-controls{display:flex;gap:4px;background:#e9eee5;padding:4px;border-radius:14px}.review-controls button{min-height:38px;padding:4px 14px;font-size:12px;border-radius:10px;white-space:nowrap}.review-controls .selected{background:#fffefa;box-shadow:0 1px 5px #15352c12;font-weight:750}.preview-stage{display:flex;align-items:center;justify-content:center;gap:100px;min-height:calc(100dvh - 77px);padding:22px}.preview-intro{width:275px}.board-kicker{font-size:11px;letter-spacing:2px;color:#53705c;font-weight:700}.preview-intro h2{font-size:48px;line-height:1.6;letter-spacing:-2px;margin:20px 0}.preview-intro p{color:#586d5d;font-size:14px;line-height:2.1}.preview-instructions{display:grid;gap:10px;padding-top:28px;margin-bottom:24px}.preview-instructions span{font-size:12px;border-bottom:1px solid #d1dbce;padding-bottom:10px}.preview-intro small{font-size:10px;color:#70806e}.phone{--accent:#216b56;--accent-soft:#e4efdf;--ink:#173e36;width:390px;height:812px;display:flex;flex-direction:column;background:var(--paper);border:1px solid #d2dbd0;border-radius:30px;overflow:hidden;position:relative;box-shadow:0 18px 65px #274c3020;flex-shrink:0;font-size:13px}.phone.theme-blue{--accent:#336791;--accent-soft:#e5edf5;--ink:#203e58}.phone.theme-rose{--accent:#9d5469;--accent-soft:#f6e6ea;--ink:#4c323f}.app-header{padding:18px 22px 12px;flex-shrink:0;background:var(--paper);z-index:2}.header-top,.title-row{display:flex;align-items:center;justify-content:space-between}.header-top{margin-bottom:14px}.brand{display:flex;align-items:center;gap:7px;font-weight:850;font-size:16px;letter-spacing:-.6px}.brand-mark{width:26px;height:26px;color:var(--accent)}.brand-mark svg{width:26px;height:26px}.avatar{width:34px;height:34px;display:grid;place-items:center;border:1px solid #e3e7df!important;border-radius:50%;background:#f0e3dc!important;font-size:13px;font-weight:800}.title-row h1{font-size:20px;letter-spacing:-.6px;line-height:1.6;flex:1}.title-row{gap:8px;min-height:35px}.icon-button{width:36px;height:36px;position:relative;display:grid;place-items:center;border-radius:12px;background:#f2f4ed!important}.icon-button i{position:absolute;width:5px;height:5px;border-radius:50%;background:#d89565;top:7px;right:9px}.back{background:transparent!important;margin-right:-8px}.tiny-label{font-size:9px;color:var(--muted)}.screen-content{padding:4px 22px 18px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#d4ded0 transparent}.greeting{font-size:11px;color:#768071;margin-bottom:14px!important}.hero{display:flex;justify-content:space-between;background:#e1ecd7;padding:18px 18px 14px 12px;border-radius:22px;position:relative;height:155px;overflow:hidden}.hero h2{font-size:22px;line-height:1.6;letter-spacing:-.8px;margin-top:2px}.hero .eyebrow{font-size:9px;color:#557849}.hero button{background:#fcfff6!important;border-radius:20px;padding:5px 12px;font-size:10px;display:flex;align-items:center;gap:10px;margin-top:9px}.path-art{width:116px;position:relative;margin-left:-10px;margin-top:-9px;flex-shrink:0}.eyebrow{font-size:10px;font-weight:600;color:var(--accent)}.today-strip{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px 0 2px;font-size:10px}.today-strip>span:first-child{display:flex;align-items:center;gap:5px}.today-strip strong{margin-right:auto;font-size:10px;font-weight:600;color:#6b796b}.dot{width:6px;height:6px;border-radius:50%;background:#588b59}.progress{width:100%;height:4px;background:#e9eee3;border-radius:4px;overflow:hidden}.progress i{display:block;height:100%;background:#90b883;border-radius:4px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:19px 0 11px;gap:8px}.section-title h3{font-size:12px;font-weight:750}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.menu-card{display:flex;align-items:center;gap:9px;padding:12px 10px!important;border:1px solid var(--line)!important;border-radius:17px;text-align:right;min-height:82px;background:#fffefa!important}.menu-card>.menu-icon{width:37px;height:41px;border-radius:12px;flex-shrink:0}.menu-card>svg{margin-right:auto;opacity:.5;width:12px;flex-shrink:0}.menu-card strong{display:block;font-size:11px;white-space:nowrap;font-weight:750}.menu-card small{display:block;font-size:8px;color:#718075;line-height:1.7;margin-top:3px}.menu-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-weight:800;font-size:19px;flex-shrink:0}.mint{background:#e4efdf;color:#426d40}.peach{background:#f8e8dc;color:#a36f44}.lavender{background:#ece8f6;color:#776797}.rose{background:#f6e6ea;color:#975c6c}.sand{background:#f4eed8;color:#9b803a}.sky{background:#e6eef4;color:#537b96}.bottom-nav{display:flex;border-top:1px solid var(--line);padding:8px 8px 5px;flex-shrink:0;background:#fffefa;min-height:65px;z-index:2}.bottom-nav button{display:flex;flex:1;align-items:center;flex-direction:column;gap:2px;font-size:9px;color:#818c80;min-height:47px}.bottom-nav button>span{width:43px;height:28px;display:grid;place-items:center;border-radius:12px}.bottom-nav .active{color:var(--accent);font-weight:800}.bottom-nav .active>span{background:var(--accent-soft)}.phone-footnote{text-align:center;font-size:8px;color:#83907c;background:#f5f7ef;line-height:20px;flex-shrink:0}.segmented{background:#edf1e8;display:flex;border-radius:13px;padding:4px;margin:7px 0 17px}.segmented button{flex:1;border-radius:10px;padding:7px;min-height:36px;font-size:11px}.segmented .selected{background:#fffefa;box-shadow:0 1px 4px #173b2020;font-weight:750}.day-picker{display:flex;justify-content:space-between;margin:8px 0 18px;gap:3px}.day-picker button{display:flex;flex-direction:column;align-items:center;min-width:38px;min-height:70px;padding:8px 6px;border-radius:14px;gap:1px}.day-picker small{font-size:10px;color:#819077}.day-picker b{font-size:15px;font-weight:650}.day-picker i{width:3px;height:3px;background:#b7c1b0;border-radius:50%;margin-top:4px}.day-picker .selected{background:var(--accent);color:#fff}.day-picker .selected small{color:#d0e2c8}.day-picker .selected i{background:#fff}.task-row{display:flex;align-items:flex-start;gap:12px;padding:11px 0}.time{font-size:10px;direction:ltr;min-width:40px;color:#7e887c;padding-top:18px}.task-line{border:1px solid var(--line);border-right:3px solid #91ab82;display:flex;align-items:center;gap:8px;border-radius:15px;flex:1;padding:12px}.task-main{display:flex;align-items:center;text-align:right;gap:8px;flex:1;padding:0;min-height:38px}.task-main b{font-size:11px;font-weight:700}.task-main small{font-size:9px;color:#7c8978;display:block;margin-top:4px}.completed .task-main b{text-decoration:line-through;color:#909a89}.completed .task-line{border-right-color:#c9d2c2;background:#f9faf5}.check-button{width:27px;height:27px;border:1px solid #bfcdb7!important;border-radius:9px;display:grid;place-items:center;padding:0;flex-shrink:0}.check-button.checked{background:#dce9d2;color:#527947}.soft-note{font-size:10px;color:#7b8776;line-height:2;padding:16px 0}.action{min-height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--accent)!important;color:#fff!important;border-radius:14px;padding:10px 14px!important;font-size:12px;font-weight:650;margin-top:11px}.action.secondary{background:#f5f7f0!important;color:var(--ink)!important;border:1px solid var(--line)!important}.two-actions{display:flex;gap:9px}.two-actions>.action{font-size:10px}.muted{font-size:10px;color:#84907b}.soft-card{padding:16px;background:#f4f6ee;border-radius:17px;margin:13px 0}.soft-card strong,.soft-card b{font-size:12px}.soft-card p{font-size:12px;line-height:2;margin:9px 0}.soft-card small{display:block;font-size:10px;color:#7a8971}.week-dots{display:flex;justify-content:space-between;gap:3px;margin:14px 0;font-size:9px;color:#5a7051}.pill{font-size:9px;border-radius:8px;padding:4px 9px;display:inline-flex;font-weight:600}.task-detail-head{padding:9px 0 14px}.task-detail-head h2{font-size:23px;line-height:1.7;margin:15px 0 8px;letter-spacing:-.7px}.task-detail-head p{font-size:12px;line-height:2;color:#788470}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:5px 0 20px}.detail-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;border:1px solid var(--line);padding:17px;border-radius:17px}.detail-grid svg{color:#7b8c70;margin-bottom:6px}.detail-grid small{font-size:10px;color:#7c8976}.detail-grid strong{font-size:12px}.row{display:flex;align-items:center;gap:8px}.row b{font-size:11px}.segmented.compact{margin-top:14px;margin-bottom:7px;background:#e4eadc}.course-head{display:flex;align-items:center;justify-content:space-between;margin:10px 0 22px;gap:8px}.course-head h2{font-size:17px;margin-top:3px;letter-spacing:-.5px}.course-head select{background:#f1f4e9;border:1px solid #dce5d3;border-radius:11px;padding:7px 9px;color:#526b49;font-size:10px;max-width:105px}.learning-card{padding:17px 18px;background:#e9efdf;border-radius:19px;position:relative}.learning-card h3{font-size:17px;margin:9px 0 5px}.learning-card p{font-size:11px;color:#6e7f60}.text-link{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;margin-top:16px;padding:0}.subject-list{display:grid;gap:11px}.subject-card,.report-subject{display:flex;align-items:center;gap:13px;border:1px solid var(--line)!important;border-radius:16px;padding:12px!important;text-align:right;min-height:73px;width:100%}.subject-card b,.report-subject b{font-size:12px}.subject-card small,.report-subject small{display:block;font-size:10px;color:#7e8a75;margin-top:3px}.subject-card>svg,.report-subject>svg{margin-right:auto;opacity:.6}.sample-copy{font-size:9px;line-height:2;color:#8c967f;padding-top:16px}.breadcrumb{display:flex;align-items:center;gap:8px;font-size:10px;color:#8b947f;margin:5px 0 16px}.breadcrumb button{font-size:10px;padding:0;color:var(--accent)}.lesson-heading h2{font-size:22px;margin:11px 0 7px;letter-spacing:-.7px}.lesson-heading p{font-size:11px;line-height:2;color:#7c886f;margin-bottom:17px}.video-placeholder{position:relative;height:183px;background:#244e43;border-radius:19px;overflow:hidden;color:#fff;display:flex;align-items:center;justify-content:center}.video-grid{position:absolute;inset:0;background-image:linear-gradient(#aec9b10d 1px,transparent 1px),linear-gradient(90deg,#aec9b10d 1px,transparent 1px);background-size:25px 25px}.axis-art{display:flex;align-items:center;gap:12px;direction:ltr;position:absolute;top:32px;color:#b2c7a9;font-size:12px;border-bottom:2px solid #92b393;padding-bottom:9px}.axis-art b{font-size:19px;color:#e6d69b}.play-control{width:48px;height:48px;border-radius:50%;background:#fff9e9!important;color:#234b3e!important;display:grid;place-items:center;z-index:1;margin-top:8px}.play-control svg{margin-right:-3px}.video-caption{font-size:9px;position:absolute;bottom:15px;right:14px;left:41px;line-height:1.8}.expand-video{position:absolute;bottom:10px;left:12px;min-width:32px;min-height:32px;display:grid;place-items:center;background:#ffffff15!important;border-radius:8px}.full-video{position:absolute;inset:0;height:auto!important;z-index:8;border-radius:0!important}.full-video .expand-video{bottom:28px;left:20px;padding:10px}.full-video .axis-art{top:30%}.full-video .video-caption{bottom:40%;right:20px;font-size:12px}.lesson-steps{display:grid;gap:12px;margin-bottom:17px}.lesson-steps>div{display:flex;align-items:flex-start;gap:10px}.lesson-steps>div>span{width:25px;height:25px;background:#eff3e7;border-radius:8px;display:grid;place-items:center;font-size:11px;color:#6e865b;margin-top:2px;flex-shrink:0}.lesson-steps b{font-size:11px}.lesson-steps small{display:block;font-size:9px;color:#849176;line-height:1.9;margin-top:3px}.quiz-top{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.quiz-top strong{font-size:10px;color:#708363}.quiz-progress{height:5px;background:#e9efdf;margin:16px 0 28px;border-radius:5px;overflow:hidden}.quiz-progress i{height:100%;display:block;background:#8ba86b;border-radius:5px}.quiz-label{font-size:11px;color:#849275}.question{font-size:23px;text-align:center;line-height:1.9;min-height:90px;margin:18px 0!important}.answers{display:grid;gap:10px}.answers button{min-height:53px;border:1px solid #dfe7d5;border-radius:14px;display:flex;align-items:center;gap:14px;text-align:right;padding:10px 17px;font-size:18px;font-weight:650}.radio{height:17px;width:17px;border:1.5px solid #bdcbb0;border-radius:50%}.answers .selected{border-color:var(--accent);background:#edf4e6}.answers .selected .radio{background:var(--accent);box-shadow:inset 0 0 0 4px #edf4e6;border-color:var(--accent)}.answers .correct{background:#e6f1dc;border-color:#78a351}.answers svg{margin-right:auto}.answer-feedback{border-radius:15px;background:#eef4e4;padding:13px;margin:16px 0}.answer-feedback strong{font-size:11px}.answer-feedback p{font-size:11px;color:#6a8058;margin-top:5px;line-height:2}.focus-context{text-align:center;margin-top:12px}.focus-context h2{font-size:25px;margin:14px 0 4px;letter-spacing:-.7px}.focus-context p{font-size:11px;color:#839374}.timer-ring{height:250px;width:250px;border:9px solid #e7eddd;border-top-color:#83a968;border-right-color:#adc693;border-radius:50%;margin:26px auto;display:grid;place-items:center;transform:rotate(-15deg)}.timer-ring>div{transform:rotate(15deg);text-align:center;display:flex;flex-direction:column;gap:4px}.timer-ring small{font-size:11px;color:#7e8f6e}.timer-ring strong{font-size:52px;line-height:1.6;letter-spacing:1px;font-weight:600}.timer-ring span{font-size:9px;color:#9aa58d}.timer-ring.running{border-top-color:var(--accent);border-right-color:var(--accent)}.center{text-align:center}.family-heading{text-align:center;padding:13px 0 5px}.family-heading>.menu-icon{margin:0 auto 12px;width:61px;height:61px;border-radius:20px}.family-heading h2{font-size:22px}.family-heading p{font-size:11px;color:#819174;margin-top:4px}.people{border:1px solid var(--line);border-radius:18px;padding:3px 14px}.people>div{display:flex;align-items:center;gap:10px;padding:13px 0}.people>div+div{border-top:1px solid var(--line)}.person-avatar{height:35px;width:35px;display:grid;place-items:center;border-radius:12px;background:#f0e4dd;font-size:10px;font-weight:700}.person-avatar.blue{background:#e4ecf4}.people p{flex:1}.people b{font-size:11px}.people small{font-size:9px;color:#8a967e;display:block}.people svg{color:#9caf8c}.visibility-card{margin-top:18px;padding:16px;border-radius:17px;background:#f2f6eb}.visibility-card h3{font-size:13px;margin:11px 0}.visibility-card ul{font-size:11px;line-height:2.3;padding-right:18px;color:#657c56;margin:0}.privacy-note{display:flex;align-items:flex-start;gap:9px;border-top:1px solid #dfe7d5;margin-top:14px;padding-top:12px;font-size:9px;line-height:2;color:#80916f}.privacy-note svg{flex-shrink:0;margin-top:3px}.parent-hero{display:flex;align-items:center;justify-content:space-between;border-radius:20px;background:#e5edf3;padding:20px;height:144px}.parent-hero h2{font-size:23px;margin-top:6px;letter-spacing:-.8px}.family-art{position:relative;display:flex;align-items:center;justify-content:center;width:115px;height:110px}.family-art span{width:50px;height:50px;border:4px solid #f5f8f8;border-radius:50%;position:absolute;display:grid;place-items:center;background:#e9c5b6;color:#8d5d4b;font-size:18px;font-weight:800;right:28px;top:42px;z-index:2}.family-art span:nth-child(2){background:#94b7cc;right:3px;top:6px;color:#fff;z-index:1}.family-art span:nth-child(3){background:#b0c5aa;right:57px;top:10px;color:#fff;z-index:1}.sample-tag{font-size:9px;color:#829383}.child-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line)!important;border-radius:17px;padding:14px!important;text-align:right;width:100%;margin-bottom:18px}.child-avatar{height:44px;width:44px;border-radius:15px;background:#efe4d9;display:grid;place-items:center;font-weight:800;font-size:17px;flex-shrink:0}.child-card b{font-size:12px}.child-card small{font-size:9px;color:#7e8f7d;display:block;margin-top:4px}.child-card>svg{margin-right:auto}.parent-menu .menu-card{min-height:84px}.report-person{display:flex;align-items:center;gap:11px;margin:10px 0 15px}.report-person h2{font-size:18px}.report-person p{font-size:10px;color:#8b9886}.report-person>.pill{margin-right:auto;font-size:9px}.freshness{display:flex;align-items:center;gap:6px;background:#f0f5f6;color:#6f8993;border-radius:9px;font-size:9px;padding:8px 9px}.freshness>span:last-child{margin-right:auto;font-size:8px}.report-stats{display:flex;gap:12px;margin:19px 0}.report-stats>div{flex:1;display:flex;flex-direction:column;gap:7px;background:#f0f5f7;border-radius:17px;padding:15px;text-align:center}.report-stats b{font-size:19px;letter-spacing:-.5px}.report-stats span{font-size:9px;color:#80919a}.trend{display:flex;align-items:flex-end;justify-content:space-around;gap:12px;border-bottom:1px solid var(--line);height:130px;margin:0 0 16px;padding:0 10px 8px}.trend>div{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}.trend>div>span{width:100%;max-width:22px;background:#b6cdd7;border-radius:6px 6px 3px 3px}.trend>div:nth-child(4)>span{background:#5787a0}.trend small{font-size:9px;color:#8f9a8b}.metric-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:11px}.metric-row span{color:#81917d}.metric-row b{font-weight:650}.report-subject{border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0;margin:0;padding:10px 0!important;min-height:68px}.report-subject .menu-icon{width:38px;height:38px;font-size:16px}.reminder-lead{text-align:center;padding:12px 0 24px}.reminder-lead>.menu-icon{margin:0 auto 12px;width:60px;height:60px;border-radius:20px}.reminder-lead h2{font-size:23px}.reminder-lead p{font-size:11px;color:#88977d;margin-top:6px}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);gap:12px}.switch-row b{font-size:12px}.switch-row small{display:block;font-size:10px;color:#8b9981;margin-top:3px}.switch{width:42px;height:25px;border-radius:20px;background:#d8dfd2!important;padding:3px!important;direction:ltr;flex-shrink:0}.switch i{display:block;background:#fff;border-radius:50%;height:19px;width:19px;box-shadow:0 1px 2px #0001;transition:transform .15s}.switch.on{background:var(--accent)!important}.switch.on i{transform:translateX(17px)}.notification-example{background:#edf0e8;border:1px solid #dce3d3;border-radius:17px;padding:15px;color:#50624b}.notif-app{display:flex;align-items:center;justify-content:space-between;font-size:10px;margin-bottom:10px}.notif-app small{font-size:8px;color:#899781}.notification-example strong{font-size:12px}.notification-example p{font-size:10px;margin:4px 0 14px}.notification-example>div{display:flex;gap:20px;border-top:1px solid #d8dfd0;padding-top:11px;font-size:10px;color:#6d825c}.profile-card{text-align:center;padding:13px 0 14px}.large-avatar{width:67px;height:67px;border-radius:24px;background:#e6eeda;color:#7c9565;display:grid;place-items:center;font-size:28px;font-weight:800;margin:auto auto 11px}.profile-card h2{font-size:20px;margin-bottom:4px}.theme-options{display:flex;gap:6px;flex-wrap:wrap}.theme-options button{font-size:9px;display:flex;align-items:center;gap:4px;border:1px solid var(--line);padding:8px!important;border-radius:11px;min-height:39px}.theme-options .active{border-color:var(--accent);background:#f2f6ec}.theme-dot{width:12px;height:12px;border-radius:50%;background:#8aab72}.theme-dot.rose{background:#d791a6}.theme-dot.blue{background:#81a8c9}.settings-list{margin:23px 0 19px}.settings-list button{display:flex;align-items:center;gap:13px;width:100%;padding:16px 0;text-align:right;border-bottom:1px solid var(--line);font-size:12px}.settings-list button>svg:first-child{color:#849d73}.settings-list button>svg:last-child{margin-right:auto;color:#899781}.prototype-notice{background:#f6f4ea;border-radius:15px;padding:14px;font-size:10px;color:#8a866b}.prototype-notice b{font-size:10px}.prototype-notice p{margin-top:5px;line-height:2}.modal-scrim{position:absolute;inset:0;z-index:10;background:#14251c70;display:flex;align-items:flex-end}.sheet{width:100%;max-height:90%;overflow:auto;background:#fffefa;padding:10px 23px 19px;border-radius:25px 25px 0 0;box-shadow:0 -10px 70px #0002}.sheet-handle{display:block;width:35px;height:4px;background:#dce3d4;border-radius:4px;margin:0 auto 17px}.sheet h2{font-size:20px;margin-bottom:16px}.sheet p{font-size:12px;line-height:2.1;margin:12px 0;color:#73836b}.sheet label{display:block;font-size:11px;margin:15px 0;color:#7d8f70}.sheet input{display:block;width:100%;border:1px solid #dce4d3;border-radius:12px;min-height:43px;margin-top:7px;padding:10px 12px;background:#f8faf3;color:var(--ink)}.sheet-close{display:block;width:100%;min-height:44px;font-size:11px;color:#86977b!important}.invite-code{background:#eef3e6;padding:20px;border-radius:12px;text-align:center;font-size:12px}.result-orb{width:100px;height:100px;background:#e5f0d8;color:#7aa658;display:grid;place-items:center;border-radius:50%;margin:50px auto 22px}.result-score{font-size:40px;margin:13px 0 27px!important}.result-score small{font-size:12px;color:#809474}.design-toast{position:fixed;z-index:1000;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);background:#233b2e;color:#fff;padding:12px 20px;border-radius:16px;font-size:12px;box-shadow:0 8px 40px #0003;white-space:normal;text-align:center}.design-board{width:2700px;padding:50px;max-width:none;background:#f0f1e9}.board-mode{overflow:auto}.board-mode .review-toolbar{position:sticky;right:0;top:0;z-index:20}.board-heading{margin-bottom:35px}.board-heading h1{font-size:48px;letter-spacing:-1px;margin:13px 0 9px}.board-heading>p{font-size:18px;color:#788269}.journey-ribbon{display:flex;gap:20px;align-items:center;margin-top:23px;font-size:15px}.journey-ribbon span{background:#fffefa;border:1px solid #dce4d2;border-radius:13px;padding:9px 20px}.journey-ribbon i{font-style:normal;color:#a3ae94}.board-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:32px 28px;direction:rtl}.board-panel .phone{width:100%;height:812px;box-shadow:0 10px 30px #1d3a1910}.panel-caption{margin:0 4px 14px}.panel-caption b{font-size:17px;font-weight:750}.panel-caption p{font-size:13px;color:#7a846c;margin-top:3px}.board-footer{padding:35px 0 0;max-width:2000px}.board-footer>strong{font-size:20px}.board-footer>p{font-size:16px;color:#778369;line-height:2;margin:10px 0}.board-footer>span{font-size:12px;color:#8d947c}@media(max-width:850px){.preview-stage{gap:30px}.preview-intro{width:230px}.preview-intro h2{font-size:38px}}@media(max-width:650px){.design-review{background:#fffefa;min-height:100dvh}.review-toolbar{min-height:88px;padding:9px 12px;gap:5px;flex-wrap:wrap}.review-toolbar>div:first-child{display:flex;align-items:center;justify-content:space-between;width:100%;gap:7px}.review-toolbar strong{font-size:13px}.review-toolbar strong span{font-size:10px}.review-toolbar small{font-size:8px}.review-controls{width:100%;justify-content:center;padding:2px;gap:3px;border-radius:10px}.review-controls button{min-height:30px;padding:3px 9px;font-size:10px;flex:1}.preview-intro{display:none}.preview-stage{padding:0;min-height:0;display:block}.preview-stage>.phone{height:calc(100dvh - 89px);width:100%;max-width:480px;margin:0 auto;border-radius:0;border:0;box-shadow:none;min-height:360px}.app-header{padding-top:12px}.header-top{margin-bottom:8px}.title-row h1{font-size:19px}.screen-content{padding-top:4px}.hero{height:147px}.section-title{margin-top:16px}.menu-card{min-height:77px;padding:10px!important}.phone-footnote{font-size:8px;line-height:18px}.bottom-nav{min-height:62px;padding-bottom:max(5px,env(safe-area-inset-bottom))}.design-toast{bottom:100px;max-width:330px;font-size:11px}.board-mode .review-toolbar{width:100vw;min-height:88px}.board-mode .design-board{zoom:.38}.board-mode .phone{font-size:13px}.board-mode .phone .app-header{padding:18px 22px 12px}.board-mode .phone .header-top{margin-bottom:14px}.board-mode .phone .hero{height:155px}.board-mode .phone .menu-card{min-height:82px}}@media(prefers-reduced-motion:reduce){.design-review *{transition:none!important;scroll-behavior:auto!important}}@media print{.review-toolbar{display:none!important}.design-board{padding:36px}.design-review{background:#f0f1e9}.design-board,.board-grid,.board-panel{break-inside:avoid}.board-mode .phone{box-shadow:none}}
design-review/mobile-v1/src/components/generated/LifeGuide.tsx
new
+36
@@ -0,0 +1,36 @@
1
+import React,{useState,useEffect} from 'react';
2
+import './LifeGuide.css';
3
+const fa=(n:number)=>n.toLocaleString('fa-IR');
4
+const pages=['home','plan','task','courses','lesson','quiz','focus','family','home','report','reminders','settings'];
5
+const names=['خانهٔ من','برنامهٔ من','جزئیات تکلیف','درسهای من','عددهای صحیح','آزمونک یادگیری','وقت تمرکز','خانواده و اشتراک','خانهٔ والد','گزارش آموزشی','یادآوریها','حساب و تنظیمات'];
6
+const icons:any={home:'m3 10 9-7 9 7v11h-7v-7h-4v7H3z',calendar:'M3 5h18v16H3zM7 2v6m10-6v6M3 11h18m-13 4h1m4 0h1',book:'M12 6v15M3 4c4-1 6 0 9 2 3-2 5-3 9-2v15c-4-1-6 0-9 2-3-2-5-3-9-2z',timer:'M9 2h6m-3 4V2m6 5 2-2M12 6a8 8 0 1 0 0 16 8 8 0 0 0 0-16m0 4v5l3 2',family:'M8 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6m10 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4M2 21v-4c0-5 12-5 12 0v4m3-7c4 0 5 2 5 5v2',chart:'M4 3v18h18M8 16v-4m5 4V7m5 9v-6',bell:'M18 8a6 6 0 0 0-12 0c0 8-3 8-3 10h18c0-2-3-2-3-10m-8 13h4',chevron:'m9 5 7 7-7 7',plus:'M12 5v14m-7-7h14',check:'m5 12 5 5L20 7',play:'m9 5 11 7-11 7z',pause:'M8 5v14m8-14v14',shield:'m12 2 9 4v6c0 5-9 10-9 10S3 17 3 12V6zm-4 10 3 3 5-6',settings:'M9 3 8 6 4 8v6l4 3 1 4h6l1-4 4-3V8l-4-2-1-3zm3 5a4 4 0 1 0 0 8 4 4 0 0 0 0-8',expand:'M9 3H3v6m12-6h6v6M3 15v6h6m12-6v6h-6',edit:'m16 3 5 5-12 12-6 1 1-6zM13 6l5 5'};
7
+function I({n,s=22}:any){return <svg width={s} height={s} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d={icons[n]||icons.book}/></svg>}
8
+function Art(){return <svg className="path-art" viewBox="0 0 140 132" fill="none"><circle cx="74" cy="59" r="47" fill="#c6dfac"/><path d="M37 125c64-17 68-33 30-45C13 63 79 46 81 7" stroke="#fff6de" strokeWidth="18"/><path d="M81 21V4m0 0h22L93 13l10 8H81" stroke="#194d43" strokeWidth="3"/><circle cx="27" cy="77" r="6" fill="#f4ad8c"/><path d="m28 27 4 8 9 1-7 6 2 9-8-5-8 5 2-9-7-6 9-1z" fill="#f7d684"/></svg>}
9
+const initial=[{title:'تمرین عددهای صحیح',subject:'ریاضی',time:'۱۶:۳۰',done:false},{title:'خواندن یک متن کوتاه',subject:'فارسی',time:'۱۷:۱۵',done:false},{title:'مرور یادداشتهای علوم',subject:'علوم',time:'۱۸:۰۰',done:true}];
10
+const quiz:any[]=[['حاصل ۷ + (−۳) کدام است؟',['۴','۱۰','−۴','−۱۰'],0,'از ۷، سه واحد به چپ میرویم و به ۴ میرسیم.'],['اگر x + ۴ = ۱۱ باشد، x چند است؟',['۱۵','۷','۴','۱۱'],1,'از دو طرف ۴ کم میکنیم.'],['حاصل (−۲) × ۵ چیست؟',['۱۰','−۷','−۱۰','۳'],2,'منفی در مثبت، منفی است.'],['کدام عدد بزرگتر است؟',['−۹','−۴','−۱۲','−۱'],3,'−۱ روی محور راستتر است.'],['حاصل ۶ − ۹ چیست؟',['۳','−۳','۱۵','−۱۵'],1,'از ۶، نه واحد به چپ میرویم.'],['قرینهٔ −۸ کدام است؟',['۸','−۸','۰','۱۶'],0,'قرینه در سوی دیگر صفر است.'],['اگر ۳x = ۱۲ باشد، x چند است؟',['۳','۹','۴','۱۵'],2,'دو طرف را بر ۳ تقسیم میکنیم.'],['حاصل ۱۸ ÷ ۳ چیست؟',['۹','۳','۵','۶'],3,'شش دستهٔ سهتایی برابر ۱۸ است.'],['فاصلهٔ −۵ تا صفر چند واحد است؟',['−۵','۵','۰','۱۰'],1,'فاصله منفی نیست؛ پنج واحد است.'],['حاصل (−۴) + ۴ چیست؟',['۰','۸','−۸','۴'],0,'جمع دو قرینه صفر است.']];
11
+function Phone({page,parent,go,back,theme,setTheme,tasks,setTasks,toast,fixed=false}:any){
12
+const [week,W]=useState(false),[day,D]=useState(0),[grade,G]=useState('۷'),[q,Q]=useState(0),[answer,A]=useState(-1),[checked,C]=useState(false),[score,S]=useState(0),[end,E]=useState(false),[seconds,T]=useState(1500),[running,R]=useState(false),[rest,B]=useState(false),[video,V]=useState(false),[full,F]=useState(false),[share,H]=useState(true),[reminders,N]=useState([true,true,false]),[modal,M]=useState(''),[draft,J]=useState(''),[time,K]=useState('16:30');
13
+useEffect(()=>{if(!running||fixed)return;const t=setInterval(()=>T(s=>{if(s<=1){R(false);return 0}return s-1}),1000);return()=>clearInterval(t)},[running,fixed]);useEffect(()=>{M('');F(false);V(false)},[page]);
14
+const section=(s:string,extra?:any)=><div className="section-title"><h3>{s}</h3>{extra}</div>,btn=(s:string,fn:()=>void,alt=false,icon?:string)=><button className={'action '+(alt?'secondary':'')} onClick={fn}>{icon&&<I n={icon} s={18}/>} {s}</button>,menu=(p:string,n:string,s:string,sub:string,tone='mint')=><button className="menu-card" onClick={()=>go(p)}><span className={'menu-icon '+tone}><I n={n} s={24}/></span><span><strong>{s}</strong><small>{sub}</small></span><I n="chevron" s={15}/></button>;
15
+const title=page==='home'&&parent?'خانهٔ خانواده':names[pages.indexOf(page)],t=tasks[0];const nav=parent?[['home','home','خانه'],['plan','calendar','برنامه'],['family','family','خانواده'],['report','chart','گزارشها'],['settings','settings','بیشتر']]:[['home','home','خانه'],['plan','calendar','برنامه'],['courses','book','درسها'],['focus','timer','تمرکز'],['family','family','خانواده']];const active=page==='task'?'plan':['lesson','quiz'].includes(page)?'courses':page;
16
+return <div className={'phone theme-'+(parent?'blue':theme)} dir="rtl" data-screen={page} data-role={parent?'parent':'child'}><header className="app-header"><div className="header-top"><span className="brand"><span className="brand-mark"><svg viewBox="0 0 32 32"><path d="M9 24V10a5 5 0 0 1 10 0v12a4 4 0 0 0 8 0" stroke="currentColor" strokeWidth="4" fill="none" strokeLinecap="round"/></svg></span>لایفگاید</span><button className="avatar" aria-label="حساب و تنظیمات" onClick={()=>go('settings')}>{parent?'و':'ن'}</button></div><div className="title-row">{page!=='home'&&<button className="icon-button back" aria-label="برگشت" onClick={back}><I n="chevron"/></button>}<h1>{title}</h1>{page==='home'?<button className="icon-button" aria-label="یادآوریها" onClick={()=>go('reminders')}><I n="bell"/><i/></button>:<span className="tiny-label">{parent?'نمای والد':'نمای دانشآموز'}</span>}</div></header><main className="screen-content" key={page}>
17
+{page==='home'&&(!parent?<><p className="greeting">سلام نیلا! امروز از کجا شروع کنیم؟</p><div className="hero"><div><span className="eyebrow">قدم بعدیِ تو</span><h2>یک شروع کوچک،<br/>یک قدم جلوتر.</h2><button onClick={()=>go('lesson')}>ادامهٔ ریاضی <I n="chevron" s={15}/></button></div><Art/></div><div className="today-strip"><span><i className="dot"/> برنامهٔ امروز</span><strong>{fa(tasks.filter((x:any)=>x.done).length)} از {fa(tasks.length)} انجام شد</strong><span className="progress"><i style={{width:(tasks.filter((x:any)=>x.done).length/tasks.length*100)+'%'}}/></span></div>{section('همه چیز، سر جای خودش')}<div className="menu-grid">{menu('plan','calendar','برنامهٔ من','امروز و این هفته')}{menu('courses','book','درسهای من','یاد بگیر و تمرین کن','peach')}{menu('focus','timer','وقت تمرکز','یک نوبت کوتاه','lavender')}{menu('family','family','خانواده','کنار هم، با حریم شخصی','rose')}{menu('report','chart','گزارش من','مسیر پیشرفت من','sand')}{menu('reminders','bell','یادآوریها','کارهای مهم، سر وقت','sky')}</div></>:<><p className="greeting">خانوادهٔ نمونه، روزتان بهخیر.</p><div className="parent-hero"><div><span className="eyebrow">همراه رشد، نه ناظر</span><h2>کنار هم،<br/>با برنامهای روشن.</h2></div><div className="family-art"><span>ن</span><span>و</span><span>و</span></div></div>{section('نگاهی به امروزِ فرزند',<span className="sample-tag">نمونه</span>)}<button className="child-card" onClick={()=>go('report')}><span className="child-avatar">ن</span><span><b>نیلا · پایهٔ هفتم</b><small>۳ کار انجامشده · ۱ کار باقیمانده</small></span><I n="chevron" s={18}/></button><div className="menu-grid parent-menu">{menu('plan','calendar','برنامهٔ خانواده','قرارها و مسئولیتها')}{menu('report','chart','گزارش فرزند','فقط اطلاعات مجاز','sky')}{menu('family','family','اعضای خانواده','دعوت و دسترسیها','rose')}{menu('reminders','bell','یادآوریها','هماهنگی کارها','sand')}</div><div className="privacy-note"><I n="shield"/><span>یادداشت، گفتوگو و سلامت کودک در گزارش والد قرار نمیگیرند.</span></div></>)}
18
+{page==='plan'&&<><div className="segmented"><button className={!week?'selected':''} onClick={()=>W(false)}>امروز</button><button className={week?'selected':''} onClick={()=>W(true)}>این هفته</button></div><div className="day-picker">{['ش','ی','د','س','چ','پ','ج'].map((s,i)=><button key={i} className={day===i?'selected':''} onClick={()=>D(i)}><small>{s}</small><b>{fa(۱۸+i)}</b><i/></button>)}</div>{week&&<div className="soft-card"><strong>نمای کلی هفته</strong><div className="week-dots">{[3,2,4,1,3,0,1].map((n,i)=><span key={i}>{fa(n)} کار</span>)}</div><small>یک روز را برای دیدن برنامه انتخاب کن.</small></div>}{section(day===0?'برنامهٔ امروز':'برنامهٔ روز انتخابشده',<span className="muted">{fa(day===0?tasks.length:2)} کار</span>)}{(day===0?tasks:[tasks[1],tasks[0]]).map((x:any,i:number)=><div className={'task-row '+(x.done?'completed':'')} key={i}><span className="time">{x.time}</span><div className="task-line"><button className="task-main" onClick={()=>go('task')}><span><b>{x.title}</b><small>{x.subject} · ۲۵ دقیقه</small></span></button><button className={'check-button '+(x.done?'checked':'')} aria-label={x.done?'انجامنشده':'انجام شد'} onClick={()=>{setTasks(tasks.map((a:any)=>a===x?{...a,done:!a.done}:a));toast('وضعیت فقط در این پیشنمایش تغییر کرد')}}>{x.done&&<I n="check" s={17}/>}</button></div></div>)}<p className="soft-note">همهٔ کارها را یکباره انجام نده؛ فقط قدم بعدی را انتخاب کن.</p>{btn('یک کار تازه',()=>{J('');M('task')},false,'plus')}</>}
19
+{page==='task'&&<><div className="task-detail-head"><span className="pill peach">ریاضی · تکلیف</span><h2>{t.title}</h2><p>چند مثال ساده را حل کن و راهحل خودت را توضیح بده.</p></div><div className="detail-grid"><div><I n="calendar"/><small>زمان برنامه</small><strong>{t.time} · امروز</strong></div><div><I n="timer"/><small>مدت پیشنهادی</small><strong>۲۵ دقیقه</strong></div></div><div className="soft-card"><div className="row"><I n="shield"/><b>چه کسی این کار را میبیند؟</b></div><div className="segmented compact"><button className={!share?'selected':''} onClick={()=>H(false)}>فقط من</button><button className={share?'selected':''} onClick={()=>H(true)}>سرپرستان من</button></div><small>این انتخاب در طرح، فقط برای همین کار است.</small></div>{section('برای شروع آمادهای؟')}{btn('شروع مطالعهٔ این تکلیف',()=>go('focus'),false,'play')}{btn('دیدن آموزش مرتبط',()=>go('lesson'),true,'book')}<div className="two-actions">{btn(t.done?'برگرداندن وضعیت':'انجامش دادم',()=>{setTasks(tasks.map((x:any,i:number)=>i===0?{...x,done:!x.done}:x));toast('وضعیت نمونه بهروز شد')},true,'check')}{btn('ویرایش زمان',()=>{J(t.title);M('task')},true,'edit')}</div></>}
20
+{page==='courses'&&<><div className="course-head"><div><span className="eyebrow">مدرسهٔ من</span><h2>هر درس، یک مسیر روشن</h2></div><select aria-label="انتخاب پایه" value={grade} onChange={e=>G(e.target.value)}>{['۱','۲','۳','۴','۵','۶','۷','۸','۹','۱۰','۱۱','۱۲'].map(g=><option key={g} value={g}>پایهٔ {g}</option>)}</select></div><div className="learning-card"><span className="pill mint">پیشنهاد بعدی</span><h3>ریاضی · عددهای صحیح</h3><p>اول یک مفهوم، بعد تمرین و بازخورد.</p><button className="text-link" onClick={()=>go('lesson')}>ورود به درس <I n="chevron" s={15}/></button></div>{section('درسهای پایهٔ '+grade)}<div className="subject-list">{[['ریاضی','عددها و جبر'],['فارسی','خواندن و درک متن'],['علوم تجربی','کشف و آزمایش'],['زبان انگلیسی','واژه و گفتوگو']].map(([s,sub],i)=><button className="subject-card" key={s} onClick={()=>i===0?go('lesson'):M('content')}><span className={'menu-icon '+['mint','peach','lavender','sky'][i]}>{['۱۲۳','فا','◌','Aa'][i]}</span><span><b>{s}</b><small>{sub}</small></span><I n="chevron" s={17}/></button>)}</div><p className="sample-copy">فهرست پایهها و محتوا نمونهٔ طراحی است؛ آموزش کامل آماده نیست.</p></>}
21
+{page==='lesson'&&<><div className="breadcrumb"><button onClick={()=>go('courses')}>ریاضی هفتم</button><span>›</span><span>عددهای صحیح</span></div><div className="lesson-heading"><span className="pill peach">نمونهٔ طراحی · بازبینینشده</span><h2>عددها در دو سوی صفر</h2><p>هدف: عددهای مثبت و منفی را روی محور مقایسه کنی.</p></div><div className={'video-placeholder '+(full?'full-video':'')}><div className="video-grid"/><div className="axis-art">{['−۳','−۲','−۱','۰','۱','۲','۳'].map(x=><span key={x}>{x}</span>)}</div><button className="play-control" aria-label={video?'توقف پیشنمایش ویدئو':'نمایش جایگاه ویدئو'} onClick={()=>V(!video)}><I n={video?'pause':'play'} s={26}/></button><span className="video-caption">{video?'ویدیوی واقعی متصل نیست؛ جایگاه پخشکننده':'جایگاه ویدئوی آموزشی'}</span><button className="expand-video" aria-label={full?'بستن تمامصفحه':'تمامصفحه'} onClick={()=>F(!full)}>{full?'بستن':<I n="expand" s={19}/>}</button></div>{section('مسیر یادگیری این درس')}<div className="lesson-steps">{[['ببین و فکر کن','تماشا بهتنهایی یادگیری نیست.'],['خودت حل کن','یک مثال را بدون کمک پاسخ بده.'],['بازخورد بگیر و مرور کن','پاسخها مسیر قدم بعدی را نشان میدهند.']].map(([s,sub],i)=><div key={i}><span>{fa(i+1)}</span><p><b>{s}</b><small>{sub}</small></p></div>)}</div>{btn('شروع آزمونک · ۱۰ پرسش',()=>go('quiz'),false,'chevron')}</>}
22
+{page==='quiz'&&(!end?<><div className="quiz-top"><span className="pill mint">تمرین بدون عجله</span><strong>پرسش {fa(q+1)} از ۱۰</strong></div><div className="quiz-progress"><i style={{width:((q+1)*10)+'%'}}/></div><p className="quiz-label">فکر کن، بعد پاسخ خودت را انتخاب کن.</p><h2 className="question" dir="auto">{quiz[q][0]}</h2><div className="answers">{quiz[q][1].map((a:string,i:number)=><button key={i} aria-pressed={answer===i} className={(answer===i?'selected ':'')+(checked&&i===quiz[q][2]?'correct':'')} onClick={()=>!checked&&A(i)}><span className="radio"/>{a}{checked&&i===quiz[q][2]&&<I n="check" s={20}/>}</button>)}</div>{checked?<div className="answer-feedback"><strong>{answer===quiz[q][2]?'آفرین، درست فکر کردی.':'اشتباه، بخشی از یادگیری است.'}</strong><p>{quiz[q][3]}</p></div>:<p className="soft-note">اگر مطمئن نیستی، از یک شکل یا محور کمک بگیر.</p>}{btn(checked?(q===9?'دیدن نتیجه':'پرسش بعدی'):'بررسی پاسخ',()=>{if(answer<0){toast('اول یک پاسخ را انتخاب کن');return}if(!checked){C(true);if(answer===quiz[q][2])S(score+1)}else if(q===9)E(true);else{Q(q+1);A(-1);C(false)}},false,'check')}<p className="sample-copy">پرسشهای اصیل نمونه؛ هنوز تأیید محتوایی نشدهاند.</p></>:<><div className="result-orb"><I n="check" s={42}/></div><h2 className="center">یک قدم دیگر یاد گرفتی</h2><p className="center result-score">{fa(score)} <small>از ۱۰ پاسخ درست</small></p><div className="soft-card"><strong>قدم بعدی پیشنهادی</strong><p>با یک مثال تازه، روش حل را برای خودت توضیح بده.</p><small>امتیاز این نمونه، اثبات تسلط یا نمرهٔ مدرسه نیست.</small></div>{btn('برگشت به آموزش',()=>go('lesson'),false,'book')}{btn('دوباره تمرین میکنم',()=>{Q(0);A(-1);C(false);S(0);E(false)},true)}</>)}
23
+{page==='focus'&&<><div className="focus-context"><span className="pill lavender">ریاضی · یک نوبت کوتاه</span><h2>فقط همین یک کار.</h2><p>{t.title}</p></div><div className={'timer-ring '+(running?'running':'')}><div><small>{rest?'استراحت کوتاه':'زمان تمرکز'}</small><strong dir="ltr">{fa(Math.floor(seconds/60)).padStart(2,'۰')}:{fa(seconds%60).padStart(2,'۰')}</strong><span>۲۵ دقیقه مطالعه / ۵ دقیقه استراحت</span></div></div>{btn(running?'توقف موقت':seconds===(rest?300:1500)?'شروع نوبت':'ادامهٔ نوبت',()=>R(!running),false,running?'pause':'play')}<div className="two-actions">{btn('استراحت ۵ دقیقهای',()=>{R(false);B(true);T(300)},true,'timer')}{btn('پایان نوبت',()=>{R(false);M('session')},true,'check')}</div><p className="soft-note center">زمان تایمر، اثبات مطالعه یا یادگیری نیست.</p></>}
24
+{page==='family'&&<><div className="family-heading"><span className="menu-icon rose"><I n="family" s={30}/></span><h2>خانوادهٔ نمونه</h2><p>کنار هم، با مرزهای روشن.</p></div>{section(parent?'اعضای خانواده':'چه کسانی سرپرست من هستند؟')}<div className="people">{['یک','دو'].map((s,i)=><div key={s}><span className={'person-avatar '+(i?'blue':'')}>و{fa(i+1)}</span><p><b>والد {s}</b><small>سرپرست تأییدشدهٔ نمونه</small></p><I n="shield" s={18}/></div>)}</div><div className="visibility-card"><span className="pill mint">والد چه چیزی میبیند؟</span><h3>فقط آنچه مجاز به اشتراک است</h3><ul><li>تکلیفهای به اشتراک گذاشتهشده</li><li>خلاصهٔ زمان ثبتشدهٔ مجاز</li><li>پیشرفت آموزشیِ قابل اشتراک</li></ul><div className="privacy-note"><I n="shield"/><span>یادداشت خصوصی، گفتوگو و اطلاعات سلامت در این خلاصه قرار نمیگیرند.</span></div></div>{parent?btn('دعوت سرپرست دیگر',()=>M('invite'),false,'plus'):btn('دیدن تنظیم اشتراک تکلیف',()=>go('task'),true,'shield')}</>}
25
+{page==='report'&&<><div className="report-person"><span className="child-avatar">ن</span><div><h2>{parent?'گزارش نیلا':'مسیر پیشرفت من'}</h2><p>پایهٔ هفتم · اطلاعات ساختگی</p></div><span className="pill sky">این هفته</span></div><div className="freshness"><I n="check" s={15}/><span>زمان دریافت نمونه: ۱۴:۳۲</span><span>دادهٔ زنده نیست</span></div><div className="report-stats"><div><b>۳ از ۵</b><span>کار تکمیلشده</span></div><div><b>۴۵ دقیقه</b><span>زمان ثبتشده</span></div></div><div className="trend">{[45,70,35,90,62,100,55].map((n,i)=><div key={i}><span style={{height:n+'px'}}/><small>{['ش','ی','د','س','چ','پ','ج'][i]}</small></div>)}</div><div className="metric-row"><span>زمان برنامهریزیشده</span><b>۷۵ دقیقه</b></div><div className="metric-row"><span>تکمیل برنامهٔ مجاز</span><b>۶۰٪</b></div>{section('به تفکیک درس')}{['ریاضی','فارسی'].map((s,i)=><button className="report-subject" key={s} onClick={()=>go('task')}><span className={'menu-icon '+(i?'peach':'mint')}>{i?'فا':'۱۲۳'}</span><span><b>{s}</b><small>{i?'۱ تکلیف · ۲۰ دقیقه ثبتشده':'۲ تکلیف · ۲۵ دقیقه ثبتشده'}</small></span><I n="chevron" s={17}/></button>)}<p className="soft-note">وضعیت و زمان ثبتشده دربارهٔ کیفیت یادگیری یا سلامت کودک قضاوت نمیکنند.</p></>}
26
+{page==='reminders'&&<><div className="reminder-lead"><span className="menu-icon sand"><I n="bell" s={30}/></span><h2>بهموقع، با آرامش.</h2><p>یادآوریهای مهم را خودت انتخاب کن.</p></div>{['قبل از شروع مطالعه','یادآوری تکلیف فردا','صدای اعلان'].map((s,i)=><div className="switch-row" key={s}><div><b>{s}</b><small>{['۱۰ دقیقه پیش از برنامه','ساعت ۲۰:۰۰ شب قبل','با اجازه و تنظیم دستگاه'][i]}</small></div><button role="switch" aria-label={s} aria-checked={reminders[i]} className={'switch '+(reminders[i]?'on':'')} onClick={()=>N(reminders.map((x,j)=>i===j?!x:x))}><i/></button></div>)}{section('شکل پیشنهادی اعلان')}<div className="notification-example"><span className="notif-app">لایفگاید <small>نمونه</small></span><strong>۱۰ دقیقه تا زمان ریاضی</strong><p>اگر آمادهای، از یک قدم کوچک شروع کن.</p><div><span>شروع مطالعه</span><span>یادآوری بعدی</span></div></div>{btn('دیدن نمونهٔ اعلان داخل برنامه',()=>toast('نمونه اعلان: ۱۰ دقیقه تا زمان ریاضی'),true,'bell')}<p className="sample-copy">آلارم واقعی ساخته نمیشود؛ فقط رفتار پیشنهادی را میبینید.</p></>}
27
+{page==='settings'&&<><div className="profile-card"><span className="large-avatar">{parent?'و':'ن'}</span><h2>{parent?'والد · حساب نمونه':'نیلا · حساب نمونه'}</h2><span className="muted">فضای شخصی خودت</span></div>{section('ظاهر برنامه')}<div className="theme-options">{[['sage','آرام سبز'],['rose','صورتی ملایم'],['blue','آبی آرام']].map(([k,s])=><button key={k} className={theme===k?'active':''} onClick={()=>setTheme(k)}><span className={'theme-dot '+k}/>{s}{theme===k&&<I n="check" s={15}/>}</button>)}</div><div className="settings-list">{[['bell','یادآوریها و اعلان','reminders'],['shield','حریم خصوصی و اشتراک','family'],['edit','ویرایش نام نمایشی','name'],['book','راهنمای این پیشنمایش','help']].map(([n,s,p])=><button key={p} onClick={()=>['name','help'].includes(p)?M(p):go(p)}><I n={n}/><span>{s}</span><I n="chevron" s={17}/></button>)}</div><div className="prototype-notice"><b>این صفحه طرح قابل کلیک است.</b><p>هیچ ورود، اتصال به سرور یا ارسال پیامکی انجام نمیشود.</p></div></>}
28
+</main><nav className="bottom-nav" aria-label="منوهای اصلی">{nav.map(([p,n,s])=><button key={p} className={active===p?'active':''} aria-current={active===p?'page':undefined} onClick={()=>go(p)}><span><I n={n}/></span>{s}</button>)}</nav><div className="phone-footnote">طرح پیشنهادی · همهٔ اطلاعات ساختگیاند</div>
29
+{modal&&<div className="modal-scrim" onClick={()=>M('')}><section className="sheet" role="dialog" aria-modal="true" aria-label="جزئیات پیشنمایش" onClick={e=>e.stopPropagation()}><span className="sheet-handle"/>{modal==='task'?<><h2>{draft?'ویرایش کار':'کار تازه'}</h2><label>عنوان کار<input value={draft} onChange={e=>J(e.target.value)} placeholder="مثلاً مرور ریاضی"/></label><label>زمان برنامه<input type="time" value={time} onChange={e=>K(e.target.value)}/></label>{btn('اعمال در پیشنمایش',()=>{if(!draft.trim()){toast('یک عنوان بنویس');return}const tm=time.replace(/\d/g,n=>fa(Number(n)));setTasks(draft===t.title?tasks.map((x:any,i:number)=>i===0?{...x,time:tm}:x):[...tasks,{title:draft,subject:'برنامهٔ شخصی',time:tm,done:false}]);M('');toast('تغییر فقط در حافظهٔ این طرح اعمال شد')})}</>:modal==='content'?<><h2>مسیر این درس</h2><p>فصلها ← آموزش بازبینیشده ← تمرین ← بازخورد.</p><p>در این طرح، ریاضی نمونهٔ قابل بازکردن است؛ محتوای کامل آماده نیست.</p>{btn('دیدن نمونهٔ ریاضی',()=>{M('');go('lesson')})}</>:modal==='session'?<><h2>نوبت تمام شد</h2><p>زمان نمونه: {fa(Math.max(0,(rest?300:1500)-seconds))} ثانیه.</p><p>ثبت پایدار به سرور متصل نیست.</p>{btn('برگشت به برنامه',()=>go('plan'))}</>:modal==='name'?<><h2>نام نمایشی نمونه</h2><label>نام ساختگی<input value={draft} onChange={e=>J(e.target.value)}/></label>{btn('دیدن بازخورد تغییر',()=>{M('');toast('حساب واقعی تغییر نکرد؛ این فقط بازخورد نمونه است')})}</>:<><h2>{modal==='invite'?'دعوت سرپرست':'راهنمای پیشنمایش'}</h2><p>{modal==='invite'?'طرح دعوت: تأیید سازنده، دعوت فرد مشخص و پذیرش همان شخص؛ هیچ شماره یا پیامک واقعی استفاده نمیشود.':'منوها را باز کنید، یک کار نمونه بسازید، آزمونک و تایمر را امتحان کنید و نمای والد را ببینید.'}</p><p>همهٔ تغییرات موقتاند؛ این نمونه تأیید عملکرد آنلاین نیست.</p>{btn('متوجه شدم',()=>M(''))}</>}<button className="sheet-close" onClick={()=>M('')}>بستن</button></section></div>}</div>
30
+}
31
+export const LifeGuide=()=>{
32
+const [parent,P]=useState(false),[page,U]=useState('home'),[history,H]=useState<string[]>([]),[board,B]=useState(false),[tasks,T]=useState(initial),[theme,Y]=useState('sage'),[message,O]=useState('');
33
+const go=(p:string)=>{if(p!==page){H(h=>[...h,page]);U(p)}},open=(p:string,par:boolean)=>{U(p);P(par);H([]);B(false)},toast=(s:string)=>{O(s);setTimeout(()=>O(''),3500)};
34
+useEffect(()=>{const u=new URL(location.href);B(u.searchParams.get('board')==='1');const p=u.searchParams.get('screen');if(p&&pages.includes(p))U(p);P(u.searchParams.get('role')==='parent')},[]);
35
+return <div className={'design-review '+(board?'board-mode':'')} dir="rtl"><div className="review-toolbar"><div><strong>LifeGuide <span>/ طرح ۰۱</span></strong><small>پیشنمایش طراحی؛ به سرور وصل نیست</small></div><div className="review-controls"><button className={!parent&&!board?'selected':''} onClick={()=>open('home',false)}>دانشآموز</button><button className={parent&&!board?'selected':''} onClick={()=>open('home',true)}>والد</button><button className={board?'selected':''} onClick={()=>B(!board)}>{board?'بازگشت به پیشنمایش':'شمای ۱۲ صفحه'}</button></div></div>{board?<div className="design-board"><div className="board-heading"><span className="board-kicker">LIFEGUIDE / MOBILE EXPERIENCE / V1</span><h1>یک همراه، چند فضای روشن.</h1><p>هر منو یک صفحهٔ جدا دارد؛ خانه مسیر را نشان میدهد، نه فهرست بلند همهچیز را.</p><div className="journey-ribbon"><span>خانه</span><i>←</i><span>برنامه / درس / خانواده</span><i>←</i><span>جزئیات و اقدام</span><i>←</i><span>بازخورد و برگشت</span></div></div><div className="board-grid">{pages.map((p,i)=><div className="board-panel" key={i}><div className="panel-caption"><b>{fa(i+1).padStart(2,'۰')} / {names[i]}</b><p>{['یک نقطهٔ شروع؛ شش منوی روشن','امروز و هفته؛ جزئیات کار','زمان، اشتراک و شروع مطالعه','انتخاب پایه و ورود به درس','ویدئو در همین صفحه؛ سپس تمرین','پاسخ، توضیح و مرور','نوبت ۲۵/۵؛ توقف و ادامه','کودک بداند چه چیزی دیده میشود','فضای مستقل؛ انتخاب فرزند','منشأ، پیشرفت و تازگی داده','زمانبندی و نمونهٔ اعلان','ظاهر و حریم خصوصی'][i]}</p></div><Phone page={p} parent={i===8||i===9} fixed tasks={tasks} setTasks={T} go={(next:string)=>open(next,i===8||i===9)} back={()=>open('home',i===8||i===9)} toast={toast} theme={theme} setTheme={Y}/></div>)}</div><div className="board-footer"><strong>طرح برای تصمیمگیری؛ نه ادعای آمادهبودن محصول.</strong><p>دادهها ساختگیاند. پیادهسازی واقعی پس از تأیید طرح روی Backend موجود انجام میشود؛ AI و سلامت فعال نیستند.</p><span>الگوگیری از Khan Academy، Todoist و FamilyWall؛ بدون کپی داراییهای آنها.</span></div></div>:<div className="preview-stage"><div className="preview-intro"><span className="board-kicker">طرح قابل لمس، پیش از ساخت</span><h2>هر کار،<br/>در جای خودش.</h2><p>روی کارتها و منوها کلیک کنید.<br/>هر انتخاب یک صفحهٔ مستقل باز میکند.</p><div className="preview-instructions"><span>۱. برنامهٔ من ← جزئیات تکلیف</span><span>۲. درسها ← ریاضی ← آزمونک</span><span>۳. نمای والد ← گزارش مجاز</span></div><small>همهٔ اطلاعات ساختگیاند؛ دادهای ارسال نمیشود.</small></div><Phone page={page} parent={parent} go={go} back={()=>{U(history.at(-1)||'home');H(h=>h.slice(0,-1))}} tasks={tasks} setTasks={T} toast={toast} theme={theme} setTheme={Y}/></div>}{message&&<div className="design-toast" role="status">{message}</div>}</div>
36
+};
design-review/mobile-v1/src/index.css
new
+181
@@ -0,0 +1,181 @@
1
+@import url('https://fonts.googleapis.com/css2?family=Inter&family=Roboto&display=swap');
2
+@import 'tailwindcss';
3
+
4
+@plugin "tailwindcss-animate";
5
+
6
+@custom-variant dark (&:is(.dark *));
7
+
8
+body {
9
+ margin: 0;
10
+ padding: 0;
11
+ display: flex;
12
+ width: 100%;
13
+ height: 100%;
14
+ min-height: 100vh;
15
+ box-sizing: border-box;
16
+ overflow: auto;
17
+ overscroll-behavior-x: none;
18
+}
19
+
20
+@theme inline {
21
+ --color-background: var(--background);
22
+ --color-foreground: var(--foreground);
23
+ --font-sans: var(--font-geist-sans);
24
+ --font-body: var(--font-body);
25
+ --font-heading: var(--font-heading);
26
+ --font-mono: var(--font-geist-mono);
27
+ --color-sidebar-ring: var(--sidebar-ring);
28
+ --color-sidebar-border: var(--sidebar-border);
29
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
30
+ --color-sidebar-accent: var(--sidebar-accent);
31
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
32
+ --color-sidebar-primary: var(--sidebar-primary);
33
+ --color-sidebar-foreground: var(--sidebar-foreground);
34
+ --color-sidebar: var(--sidebar);
35
+ --color-chart-5: var(--chart-5);
36
+ --color-chart-4: var(--chart-4);
37
+ --color-chart-3: var(--chart-3);
38
+ --color-chart-2: var(--chart-2);
39
+ --color-chart-1: var(--chart-1);
40
+ --color-ring: var(--ring);
41
+ --color-input: var(--input);
42
+ --color-border: var(--border);
43
+ --color-destructive: var(--destructive);
44
+ --color-accent-foreground: var(--accent-foreground);
45
+ --color-accent: var(--accent);
46
+ --color-muted-foreground: var(--muted-foreground);
47
+ --color-muted: var(--muted);
48
+ --color-secondary-foreground: var(--secondary-foreground);
49
+ --color-secondary: var(--secondary);
50
+ --color-primary-foreground: var(--primary-foreground);
51
+ --color-primary: var(--primary);
52
+ --color-popover-foreground: var(--popover-foreground);
53
+ --color-popover: var(--popover);
54
+ --color-card-foreground: var(--card-foreground);
55
+ --color-card: var(--card);
56
+ --radius-sm: calc(var(--radius) - 4px);
57
+ --radius-md: calc(var(--radius) - 2px);
58
+ --radius-lg: var(--radius);
59
+ --radius-xl: calc(var(--radius) + 4px);
60
+}
61
+
62
+:root {
63
+ --radius: 0.625rem;
64
+ --background: oklch(1 0 0);
65
+ --foreground: oklch(0.145 0 0);
66
+ --card: oklch(1 0 0);
67
+ --card-foreground: oklch(0.145 0 0);
68
+ --popover: oklch(1 0 0);
69
+ --popover-foreground: oklch(0.145 0 0);
70
+ --primary: oklch(0.205 0 0);
71
+ --primary-foreground: oklch(0.985 0 0);
72
+ --secondary: oklch(0.97 0 0);
73
+ --secondary-foreground: oklch(0.205 0 0);
74
+ --muted: oklch(0.97 0 0);
75
+ --muted-foreground: oklch(0.556 0 0);
76
+ --accent: oklch(0.97 0 0);
77
+ --accent-foreground: oklch(0.205 0 0);
78
+ --destructive: oklch(0.577 0.245 27.325);
79
+ --border: oklch(0.922 0 0);
80
+ --input: oklch(0.922 0 0);
81
+ --ring: oklch(0.708 0 0);
82
+ --chart-1: oklch(0.646 0.222 41.116);
83
+ --chart-2: oklch(0.6 0.118 184.704);
84
+ --chart-3: oklch(0.398 0.07 227.392);
85
+ --chart-4: oklch(0.828 0.189 84.429);
86
+ --chart-5: oklch(0.769 0.188 70.08);
87
+ --sidebar: oklch(0.985 0 0);
88
+ --sidebar-foreground: oklch(0.145 0 0);
89
+ --sidebar-primary: oklch(0.205 0 0);
90
+ --sidebar-primary-foreground: oklch(0.985 0 0);
91
+ --sidebar-accent: oklch(0.97 0 0);
92
+ --sidebar-accent-foreground: oklch(0.205 0 0);
93
+ --sidebar-border: oklch(0.922 0 0);
94
+ --sidebar-ring: oklch(0.708 0 0);
95
+}
96
+
97
+.dark {
98
+ --background: oklch(0.145 0 0);
99
+ --foreground: oklch(0.985 0 0);
100
+ --card: oklch(0.205 0 0);
101
+ --card-foreground: oklch(0.985 0 0);
102
+ --popover: oklch(0.205 0 0);
103
+ --popover-foreground: oklch(0.985 0 0);
104
+ --primary: oklch(0.922 0 0);
105
+ --primary-foreground: oklch(0.205 0 0);
106
+ --secondary: oklch(0.269 0 0);
107
+ --secondary-foreground: oklch(0.985 0 0);
108
+ --muted: oklch(0.269 0 0);
109
+ --muted-foreground: oklch(0.708 0 0);
110
+ --accent: oklch(0.269 0 0);
111
+ --accent-foreground: oklch(0.985 0 0);
112
+ --destructive: oklch(0.704 0.191 22.216);
113
+ --border: oklch(1 0 0 / 10%);
114
+ --input: oklch(1 0 0 / 15%);
115
+ --ring: oklch(0.556 0 0);
116
+ --chart-1: oklch(0.488 0.243 264.376);
117
+ --chart-2: oklch(0.696 0.17 162.48);
118
+ --chart-3: oklch(0.769 0.188 70.08);
119
+ --chart-4: oklch(0.627 0.265 303.9);
120
+ --chart-5: oklch(0.645 0.246 16.439);
121
+ --sidebar: oklch(0.205 0 0);
122
+ --sidebar-foreground: oklch(0.985 0 0);
123
+ --sidebar-primary: oklch(0.488 0.243 264.376);
124
+ --sidebar-primary-foreground: oklch(0.985 0 0);
125
+ --sidebar-accent: oklch(0.269 0 0);
126
+ --sidebar-accent-foreground: oklch(0.985 0 0);
127
+ --sidebar-border: oklch(1 0 0 / 10%);
128
+ --sidebar-ring: oklch(0.556 0 0);
129
+}
130
+
131
+@layer base {
132
+ * {
133
+ @apply border-border outline-ring/50;
134
+ }
135
+ body {
136
+ @apply bg-background text-foreground;
137
+ font-family: var(--font-body);
138
+ }
139
+ h1,
140
+ h2,
141
+ h3,
142
+ h4,
143
+ h5,
144
+ h6 {
145
+ font-family: var(--font-heading);
146
+ }
147
+ html,
148
+ body,
149
+ #root {
150
+ height: 100%;
151
+ width: 100%;
152
+ margin: 0;
153
+ padding: 0;
154
+ overscroll-behavior-x: none;
155
+ }
156
+}
157
+
158
+/* Broken Image Fallback Styles */
159
+img.broken-image-fallback {
160
+ position: relative;
161
+ display: inline-block;
162
+ background: #f9fafb;
163
+ border: 1px solid #e5e7eb;
164
+ object-fit: none;
165
+ object-position: center;
166
+ animation: fadeIn 0.3s ease-in-out;
167
+}
168
+
169
+.dark img.broken-image-fallback {
170
+ background: #1f2937;
171
+ border-color: #374151;
172
+}
173
+
174
+@keyframes fadeIn {
175
+ from {
176
+ opacity: 0;
177
+ }
178
+ to {
179
+ opacity: 1;
180
+ }
181
+}