Шаблон экранных форм
This commit is contained in:
47
lab1/screen-forms/README.md
Normal file
47
lab1/screen-forms/README.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# Шаблоны экранных форм приложения "По грибы"
|
||||
|
||||
## Описание
|
||||
|
||||
Этот каталог содержит HTML/CSS шаблоны экранных форм для мобильного приложения "По грибы".
|
||||
|
||||
## Файлы
|
||||
|
||||
- `template.html` - базовый шаблон экранной формы
|
||||
- `template.css` - стили для шаблона
|
||||
|
||||
## Как использовать
|
||||
|
||||
1. Откройте `template.html` в браузере
|
||||
2. Измените размер окна браузера до мобильного формата (375px ширина) или используйте режим разработчика (F12) для эмуляции мобильного устройства
|
||||
3. Сделайте скриншот для отчёта
|
||||
|
||||
## Структура шаблона
|
||||
|
||||
Шаблон включает:
|
||||
|
||||
- **Шапка (Header)**: логотип и название "По грибы"
|
||||
- **Основной контент (Main)**: прокручиваемая область с примерами карточек и элементов списка
|
||||
- **Нижняя навигация (Navigation)**: 5 кнопок для основных разделов
|
||||
- **Кнопка SOS**: плавающая красная кнопка в правом нижнем углу
|
||||
|
||||
## Технические параметры
|
||||
|
||||
- Ширина: 375px (стандартный мобильный экран)
|
||||
- Высота: 812px (iPhone X и выше)
|
||||
- Шрифт: Inter или Roboto
|
||||
- Базовый размер шрифта: 16-18pt
|
||||
|
||||
## Цветовая палитра
|
||||
|
||||
- Зелёный (основной): #2D5F3F
|
||||
- Оранжевый (акцент): #E67E22
|
||||
- Красный (SOS): #C0392B
|
||||
- Голубой (информация): #3498DB
|
||||
- Серый текст: #7F8C8D
|
||||
- Тёмный текст: #2C3E50
|
||||
- Светлый фон: #FAFAFA
|
||||
|
||||
## Для разработки новых экранов
|
||||
|
||||
На основе этого шаблона можно создавать конкретные экраны приложения, заменяя содержимое блока `.content-container` на специфичные для экрана элементы.
|
||||
|
||||
290
lab1/screen-forms/template.css
Normal file
290
lab1/screen-forms/template.css
Normal file
@@ -0,0 +1,290 @@
|
||||
/* Общие настройки */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
background-color: #FAFAFA;
|
||||
color: #2C3E50;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* Контейнер приложения - фиксированная ширина для мобильного */
|
||||
.app-container {
|
||||
width: 375px;
|
||||
height: 812px;
|
||||
margin: 20px auto;
|
||||
background: #FAFAFA;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Шапка приложения */
|
||||
.app-header {
|
||||
background: linear-gradient(135deg, #2D5F3F 0%, #3A7A52 100%);
|
||||
padding: 16px 20px 12px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.header-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.app-logo {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.app-title {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: #FFFFFF;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
/* Основной контент */
|
||||
.app-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 80px; /* Отступ для нижней навигации */
|
||||
}
|
||||
|
||||
.content-container {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* Заголовок экрана */
|
||||
.screen-title {
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
color: #2C3E50;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.screen-description {
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
color: #7F8C8D;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
/* Карточки */
|
||||
.card {
|
||||
background: #FFFFFF;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #2C3E50;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.card-text {
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
color: #7F8C8D;
|
||||
}
|
||||
|
||||
/* Элементы списка */
|
||||
.list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
background: #FFFFFF;
|
||||
border-radius: 12px;
|
||||
padding: 14px 16px;
|
||||
margin-bottom: 12px;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.list-item:active {
|
||||
transform: scale(0.98);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.list-item-icon {
|
||||
font-size: 28px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #ECF0F1;
|
||||
border-radius: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.list-item-content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.list-item-title {
|
||||
font-size: 17px;
|
||||
font-weight: 500;
|
||||
color: #2C3E50;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.list-item-subtitle {
|
||||
font-size: 14px;
|
||||
color: #7F8C8D;
|
||||
}
|
||||
|
||||
/* Нижняя навигация */
|
||||
.app-navigation {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 72px;
|
||||
background: #FFFFFF;
|
||||
border-top: 1px solid #ECF0F1;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 8px 0;
|
||||
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.nav-button {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 6px 10px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease;
|
||||
min-width: 56px;
|
||||
}
|
||||
|
||||
.nav-button:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.nav-icon {
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.nav-label {
|
||||
font-size: 11px;
|
||||
color: #7F8C8D;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.nav-button-active .nav-label {
|
||||
color: #2D5F3F;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-button-active {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-button-active::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -8px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 32px;
|
||||
height: 3px;
|
||||
background: #2D5F3F;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
|
||||
/* Кнопка SOS */
|
||||
.sos-button {
|
||||
position: absolute;
|
||||
bottom: 88px;
|
||||
right: 20px;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
background: #C0392B;
|
||||
border: 4px solid #FFFFFF;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.sos-button:active {
|
||||
transform: scale(0.95);
|
||||
box-shadow: 0 2px 8px rgba(192, 57, 43, 0.5);
|
||||
}
|
||||
|
||||
.sos-icon {
|
||||
font-size: 32px;
|
||||
color: #FFFFFF;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Анимация пульсации для SOS */
|
||||
@keyframes pulse {
|
||||
0%, 100% {
|
||||
box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
|
||||
}
|
||||
50% {
|
||||
box-shadow: 0 4px 24px rgba(192, 57, 43, 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
.sos-button {
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Скроллбар для webkit браузеров */
|
||||
.app-main::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.app-main::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.app-main::-webkit-scrollbar-thumb {
|
||||
background: #BDC3C7;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.app-main::-webkit-scrollbar-thumb:hover {
|
||||
background: #95A5A6;
|
||||
}
|
||||
|
||||
/* Адаптация для разных высот экрана */
|
||||
@media (max-height: 700px) {
|
||||
.app-container {
|
||||
height: 667px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-height: 850px) {
|
||||
.app-container {
|
||||
height: 844px;
|
||||
}
|
||||
}
|
||||
|
||||
91
lab1/screen-forms/template.html
Normal file
91
lab1/screen-forms/template.html
Normal file
@@ -0,0 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>По грибы - Шаблон</title>
|
||||
<link rel="stylesheet" href="template.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Основной контейнер приложения -->
|
||||
<div class="app-container">
|
||||
|
||||
<!-- Шапка приложения -->
|
||||
<header class="app-header">
|
||||
<div class="header-content">
|
||||
<img src="../logo/logo.png" alt="Логотип" class="app-logo">
|
||||
<h1 class="app-title">По грибы!</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Основное содержимое экрана -->
|
||||
<main class="app-main">
|
||||
<div class="content-container">
|
||||
<!-- Здесь будет размещаться содержимое конкретного экрана -->
|
||||
<h2 class="screen-title">Название экрана</h2>
|
||||
|
||||
<p class="screen-description">
|
||||
Описание или инструкции для текущего экрана.
|
||||
Этот текст объясняет пользователю, что он может сделать на данном экране.
|
||||
</p>
|
||||
|
||||
<!-- Пример карточки -->
|
||||
<div class="card">
|
||||
<h3 class="card-title">Заголовок карточки</h3>
|
||||
<p class="card-text">Содержимое карточки с информацией</p>
|
||||
</div>
|
||||
|
||||
<!-- Пример списка -->
|
||||
<div class="list-item">
|
||||
<div class="list-item-icon">📍</div>
|
||||
<div class="list-item-content">
|
||||
<div class="list-item-title">Элемент списка</div>
|
||||
<div class="list-item-subtitle">Дополнительная информация</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-item">
|
||||
<div class="list-item-icon">🍄</div>
|
||||
<div class="list-item-content">
|
||||
<div class="list-item-title">Второй элемент</div>
|
||||
<div class="list-item-subtitle">Подробности</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Нижняя навигационная панель -->
|
||||
<nav class="app-navigation">
|
||||
<button class="nav-button">
|
||||
<span class="nav-icon">🗺️</span>
|
||||
<span class="nav-label">Маршрут</span>
|
||||
</button>
|
||||
<button class="nav-button">
|
||||
<span class="nav-icon">🧺</span>
|
||||
<span class="nav-label">Корзина</span>
|
||||
</button>
|
||||
<button class="nav-button nav-button-active">
|
||||
<span class="nav-icon">🏠</span>
|
||||
<span class="nav-label">Главная</span>
|
||||
</button>
|
||||
<button class="nav-button">
|
||||
<span class="nav-icon">💬</span>
|
||||
<span class="nav-label">Чат</span>
|
||||
</button>
|
||||
<button class="nav-button">
|
||||
<span class="nav-icon">👥</span>
|
||||
<span class="nav-label">Группа</span>
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
<!-- Плавающая кнопка SOS -->
|
||||
<button class="sos-button">
|
||||
<span class="sos-icon">🆘</span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user