feat: dark design system + full UI redesign + HTTPS for local dev

- Design system: CSS custom properties (surface levels, accent, status colors, scrollbar, focus-visible)
- Landing: hero with gradient title, feature cards with SVG icons
- Auth pages: consistent card layout with design tokens
- Dashboard: sticky top bar, room grid with status dots, empty state
- Create room: toggle switches, form validation with spinners
- Join flow: room info card with status badge, monospace code input
- Room page: top bar with sidebar toggles (chat/lobby/moderation)
- Chat: bubble messages with optimistic UI, empty state
- Moderation: participant list with avatar initials, kick/ban
- Lobby: waiting animation with pulsing rings, approve/reject
- HTTPS: dev:https script, setup.sh auto-configures BETTER_AUTH_URL
- Auth: trustedOrigins now includes both http:// and https://
This commit is contained in:
2026-03-24 12:14:49 +03:00
parent 848540cfbf
commit f6d3f37a5f
17 changed files with 766 additions and 314 deletions

View File

@@ -1479,10 +1479,13 @@ OVERRIDE
[[ -d ".next" ]] && rm -rf .next
log_ok "Кеш очищен"
# Автоопределение BETTER_AUTH_URL (если не задан)
if ! grep -q "^BETTER_AUTH_URL=" .env 2>/dev/null; then
echo "BETTER_AUTH_URL=http://localhost:3000" >> .env
log_ok "BETTER_AUTH_URL=http://localhost:3000 добавлен в .env"
# Автоопределение BETTER_AUTH_URL (https для dev)
if grep -q "^BETTER_AUTH_URL=" .env 2>/dev/null; then
# Обновить на https если ещё http
sed -i 's|^BETTER_AUTH_URL=http://|BETTER_AUTH_URL=https://|' .env
else
echo "BETTER_AUTH_URL=https://localhost:3000" >> .env
log_ok "BETTER_AUTH_URL=https://localhost:3000 добавлен в .env"
fi
# Проверка порта 3000
@@ -1492,9 +1495,9 @@ OVERRIDE
# Запуск
echo ""
log_ok "${GREEN}${BOLD}Готово! Запускаю dev-сервер на порту 3000...${NC}"
log_ok "${GREEN}${BOLD}Готово! Запускаю dev-сервер (HTTPS) на порту 3000...${NC}"
echo ""
exec npm run dev
exec npm run dev:https
}
# ============================================================