217 lines
12 KiB
HTML
217 lines
12 KiB
HTML
<!DOCTYPE html>
|
||
<!-- Дизайн: Стандартный дизайн. Сохраняй все пять CSS; подробности в design.md. -->
|
||
<html lang="ru" data-theme="light">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
<title>Мой рабочий планшет</title>
|
||
<link rel="stylesheet" href="design-system/kt-ai-fonts.css">
|
||
<link rel="stylesheet" href="design-system/kt-ai-tokens.css">
|
||
<link rel="stylesheet" href="design-system/kt-ai-components.css">
|
||
<link rel="stylesheet" href="design-system/kt-ai-page.css">
|
||
<link rel="stylesheet" href="design-system/vibe-theme.css">
|
||
<script src="design-system/icons/kt-ai-icons.js"></script>
|
||
<style>
|
||
a.kt-ai-btn { text-decoration: none; }
|
||
|
||
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
|
||
.board-card { display: flex; flex-direction: column; }
|
||
|
||
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
|
||
.card-icon {
|
||
width: 30px; height: 30px; flex-shrink: 0;
|
||
color: var(--kt-ai-primary);
|
||
background: var(--kt-ai-primary-subtle);
|
||
border-radius: 8px;
|
||
display: grid; place-items: center;
|
||
}
|
||
.card-icon svg { width: 18px; height: 18px; }
|
||
.card-title { display: flex; flex-direction: column; gap: 2px; }
|
||
.card-title h2 { font-size: 17px; font-weight: 500; margin: 0; color: var(--kt-ai-fg); }
|
||
.card-title p { font-size: 13px; color: var(--kt-ai-fg-muted); margin: 0; line-height: 1.4; }
|
||
|
||
.task-form { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
|
||
.task-form .kt-ai-input { flex: 1; min-width: 120px; }
|
||
|
||
.task-list { display: flex; flex-direction: column; gap: 6px; }
|
||
.task-row {
|
||
display: flex; align-items: center; gap: 10px;
|
||
padding: 9px 11px;
|
||
border: 1px solid var(--kt-ai-border);
|
||
border-radius: 10px;
|
||
background: var(--kt-ai-card-bg);
|
||
}
|
||
.task-row.done { background: var(--kt-ai-bg-soft); }
|
||
.task-row.done .task-text { text-decoration: line-through; color: var(--kt-ai-fg-muted); }
|
||
.task-check { width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; }
|
||
.task-text { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kt-ai-fg); }
|
||
.task-due { font-size: 12px; color: var(--kt-ai-fg-muted); white-space: nowrap; }
|
||
.task-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s; }
|
||
.task-row:hover .task-actions, .task-row:focus-within .task-actions { opacity: 1; }
|
||
.task-actions button {
|
||
display: grid; place-items: center;
|
||
width: 26px; height: 26px;
|
||
border-radius: 6px;
|
||
border: none; background: transparent;
|
||
cursor: pointer; color: var(--kt-ai-fg-muted);
|
||
}
|
||
.task-actions button:hover { background: var(--kt-ai-bg-hover); color: var(--kt-ai-fg); }
|
||
.task-actions button svg { width: 14px; height: 14px; }
|
||
|
||
.status-chip {
|
||
display: inline-flex; align-items: center; gap: 4px;
|
||
font-size: 11px; padding: 2px 8px;
|
||
border-radius: 999px; white-space: nowrap;
|
||
}
|
||
.status-chip[data-status="todo"] { background: var(--kt-ai-chip-gray-bg); color: var(--kt-ai-chip-gray-fg); }
|
||
.status-chip[data-status="doing"] { background: var(--kt-ai-chip-blue-bg); color: var(--kt-ai-chip-blue-fg); }
|
||
.status-chip[data-status="done"] { background: var(--kt-ai-chip-green-bg); color: var(--kt-ai-chip-green-fg); }
|
||
|
||
.note-row {
|
||
display: flex; gap: 10px; align-items: flex-start;
|
||
padding: 9px 0;
|
||
border-bottom: 1px solid var(--kt-ai-divider);
|
||
font-size: 14px; line-height: 1.5; color: var(--kt-ai-fg);
|
||
}
|
||
.note-row:last-child { border-bottom: none; }
|
||
.note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--kt-ai-primary); flex-shrink: 0; margin-top: 8px; }
|
||
.note-text { flex: 1; word-break: break-word; }
|
||
|
||
.news-row {
|
||
display: flex; gap: 10px; align-items: flex-start;
|
||
padding: 9px 0;
|
||
border-bottom: 1px solid var(--kt-ai-divider);
|
||
}
|
||
.news-row:last-child { border-bottom: none; }
|
||
.news-date { font-size: 12px; color: var(--kt-ai-fg-muted); white-space: nowrap; min-width: 64px; }
|
||
.news-title { flex: 1; font-size: 14px; line-height: 1.45; color: var(--kt-ai-fg); }
|
||
.news-title a { color: var(--kt-ai-fg); text-decoration: none; }
|
||
.news-title a:hover { color: var(--kt-ai-primary); }
|
||
.news-empty { padding: 14px 0; font-size: 13px; color: var(--kt-ai-fg-muted); }
|
||
|
||
.empty { padding: 14px 0; font-size: 13px; color: var(--kt-ai-fg-muted); }
|
||
|
||
.cal { margin-bottom: 14px; background: var(--kt-ai-bg-soft); border: 1px solid var(--kt-ai-border); border-radius: 10px; padding: 10px 12px; }
|
||
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
|
||
.cal-title { font-size: 14px; font-weight: 500; color: var(--kt-ai-fg); text-transform: capitalize; }
|
||
.cal-nav { display: flex; gap: 4px; }
|
||
.cal-nav button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--kt-ai-border); background: var(--kt-ai-card-bg); cursor: pointer; color: var(--kt-ai-fg); display: grid; place-items: center; }
|
||
.cal-nav button:hover { background: var(--kt-ai-bg-hover); }
|
||
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
|
||
.cal-dow { font-size: 11px; color: var(--kt-ai-fg-muted); text-align: center; font-weight: 500; padding: 2px 0; }
|
||
.cal-day { aspect-ratio: 1; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 13px; color: var(--kt-ai-fg); display: grid; place-items: center; position: relative; }
|
||
.cal-day:hover { background: var(--kt-ai-bg-hover); }
|
||
.cal-day.empty { visibility: hidden; }
|
||
.cal-day.today { font-weight: 600; color: var(--kt-ai-primary); }
|
||
.cal-day.selected { background: var(--kt-ai-primary); color: var(--kt-ai-fg-on-fill); border-color: var(--kt-ai-primary); }
|
||
.cal-day.has-tasks::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--kt-ai-primary); }
|
||
.cal-day.selected.has-tasks::after { background: var(--kt-ai-fg-on-fill); }
|
||
|
||
.task-time { font-size: 12px; font-weight: 500; color: var(--kt-ai-primary); white-space: nowrap; min-width: 38px; font-variant-numeric: tabular-nums; }
|
||
|
||
.gd-cta { margin-top: 30px; }
|
||
.gd-cta p { color: var(--kt-ai-fg-muted); }
|
||
|
||
@media (max-width: 880px) { .board { grid-template-columns: 1fr; } }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
|
||
<header class="kt-ai-pagehead">
|
||
<div class="kt-ai-wrap kt-ai-pagehead-in">
|
||
<strong>Мой раб<span style="background:var(--kt-ai-accent-soft);padding:0 6px;border-radius:4px;">очный планшет</span></strong>
|
||
<span class="kt-ai-spacer"></span>
|
||
<a class="kt-ai-btn" data-size="sm" data-variant="ghost" href="gd.html">План ГД (только чтение)</a>
|
||
<button class="kt-ai-btn" data-size="sm" id="copyGdLink">
|
||
<svg class="kt-icon" style="width:14px;height:14px;"><use href="#link"/></svg>
|
||
Ссылка для ГД
|
||
</button>
|
||
</div>
|
||
</header>
|
||
|
||
<div class="kt-ai-wrap">
|
||
<div class="board">
|
||
<article class="board-card">
|
||
<div class="kt-ai-card" style="padding: var(--kt-ai-space-6);">
|
||
<div class="card-head">
|
||
<span class="card-icon"><svg class="kt-icon" style="width:18px;height:18px;"><use href="#clipboard"/></svg></span>
|
||
<div class="card-title"><h2>План работы Генерального директора</h2><p>Задачи, которые ты добавляешь для ГД. Он видит их по отдельной ссылке (только чтение).</p></div>
|
||
</div>
|
||
<div class="cal" id="cal">
|
||
<div class="cal-head">
|
||
<span class="cal-title" id="calTitle"></span>
|
||
<div class="cal-nav">
|
||
<button type="button" id="calPrev" title="Предыдущий месяц"><svg class="kt-icon" style="width:14px;height:14px;"><use href="#chevronLeft"/></svg></button>
|
||
<button type="button" id="calNext" title="Следующий месяц"><svg class="kt-icon" style="width:14px;height:14px;"><use href="#chevronRight"/></svg></button>
|
||
</div>
|
||
</div>
|
||
<div class="cal-grid" id="calGrid"></div>
|
||
</div>
|
||
<form class="task-form" data-board="gdplan">
|
||
<input class="kt-ai-input" type="time" name="due_time" style="width:100px;" value="09:00">
|
||
<input class="kt-ai-input" name="text" placeholder="Задача на этот день…" required>
|
||
<button class="kt-ai-btn" type="submit" data-variant="primary" data-size="sm"><svg class="kt-icon" style="width:14px;height:14px;"><use href="#plus"/></svg>Добавить</button>
|
||
</form>
|
||
<div class="task-list" id="list-gdplan"></div>
|
||
</div>
|
||
</article>
|
||
|
||
<article class="board-card">
|
||
<div class="kt-ai-card" style="padding: var(--kt-ai-space-6);">
|
||
<div class="card-head">
|
||
<span class="card-icon"><svg class="kt-icon" style="width:18px;height:18px;"><use href="#user"/></svg></span>
|
||
<div class="card-title"><h2>Мой личный план</h2><p>Твои собственные рабочие задачи и планы.</p></div>
|
||
</div>
|
||
<form class="task-form" data-board="myplan">
|
||
<input class="kt-ai-input" name="text" placeholder="Новая личная задача…" required>
|
||
<input class="kt-ai-input" type="date" name="due" style="width:120px;">
|
||
<button class="kt-ai-btn" type="submit" data-size="sm"><svg class="kt-icon" style="width:14px;height:14px;"><use href="#plus"/></svg>Добавить</button>
|
||
</form>
|
||
<div class="task-list" id="list-myplan"></div>
|
||
</div>
|
||
</article>
|
||
|
||
<article class="board-card">
|
||
<div class="kt-ai-card" style="padding: var(--kt-ai-space-6);">
|
||
<div class="card-head">
|
||
<span class="card-icon"><svg class="kt-icon" style="width:18px;height:18px;"><use href="#book"/></svg></span>
|
||
<div class="card-title"><h2>Заметки и открытые вопросы</h2><p>Спаргалка: пиши заметки прямо здесь, строки можно удалять.</p></div>
|
||
</div>
|
||
<form class="task-form" data-board="notes">
|
||
<input class="kt-ai-input" name="text" placeholder="Новая заметка…" required autocomplete="off">
|
||
<button class="kt-ai-btn" type="submit" data-size="sm"><svg class="kt-icon" style="width:14px;height:14px;"><use href="#plus"/></svg>Добавить</button>
|
||
</form>
|
||
<div class="task-list" id="list-notes"></div>
|
||
</div>
|
||
</article>
|
||
|
||
<article class="board-card">
|
||
<div class="kt-ai-card" style="padding: var(--kt-ai-space-6);">
|
||
<div class="card-head">
|
||
<span class="card-icon"><svg class="kt-icon" style="width:18px;height:18px;"><use href="#megaphone"/></svg></span>
|
||
<div class="card-title"><h2>Ежедневные новости</h2><p>Заголовки из Тенгриньюз (пока заглушка — источник подключим позже).</p></div>
|
||
</div>
|
||
<div class="task-list" id="list-news"></div>
|
||
</div>
|
||
</article>
|
||
</div>
|
||
|
||
<section class="kt-ai-cta" style="margin-top: var(--kt-ai-space-9);">
|
||
<div class="kt-ai-wrap">
|
||
<h2>Ссылка для ГД</h2>
|
||
<p id="gdLinkText">Скопируй и отправь Генеральному директору — он увидит только свой план, без остальных блоков.</p>
|
||
<button class="kt-ai-btn" data-variant="primary" data-size="lg" onclick="document.getElementById('copyGdLink').click()">Скопировать ссылку</button>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
|
||
<footer class="kt-ai-wrap kt-ai-pagefoot" style="margin-top: var(--kt-ai-space-9);">
|
||
<span>© 2026 Рабочий планшет</span>
|
||
<span class="kt-ai-spacer"></span>
|
||
<span>Локальное хранение</span>
|
||
</footer>
|
||
|
||
<script src="script.js"></script>
|
||
</body>
|
||
</html>
|