[MVC] Полная миграция на MVC архитектуру
- Создано ядро MVC: App, Router, Controller, Model, View, Database - Созданы модели: User, Product, Category, Cart, Order - Созданы контроллеры: Home, Auth, Product, Cart, Order, Page, Admin - Созданы layouts и partials для представлений - Добавлены все views для страниц - Настроена маршрутизация с чистыми URL - Обновлена конфигурация Docker и Apache для mod_rewrite - Добавлена единая точка входа public/index.php
This commit is contained in:
73
app/Views/pages/delivery.php
Normal file
73
app/Views/pages/delivery.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php $title = 'Доставка и оплата'; ?>
|
||||
|
||||
<main class="delivery-page">
|
||||
<div class="container">
|
||||
<div class="breadcrumbs">
|
||||
<a href="/cite_practica/">Главная</a> • <span class="current-page">Доставка и оплата</span>
|
||||
</div>
|
||||
|
||||
<h1 style="color: #453227; margin: 30px 0;">Доставка и оплата</h1>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px;">
|
||||
<div>
|
||||
<h2 style="color: #453227; margin-bottom: 20px;"><i class="fas fa-truck"></i> Способы доставки</h2>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
|
||||
<h4 style="color: #453227;">Курьерская доставка</h4>
|
||||
<p style="color: #666; margin-top: 10px;">Доставка до квартиры/офиса в удобное для вас время</p>
|
||||
<ul style="color: #666; margin-top: 10px; padding-left: 20px;">
|
||||
<li>По Москве: 1-3 дня</li>
|
||||
<li>Московская область: 2-5 дней</li>
|
||||
<li>Регионы России: 5-14 дней</li>
|
||||
</ul>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 10px;">от 2 000 ₽</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
|
||||
<h4 style="color: #453227;">Самовывоз</h4>
|
||||
<p style="color: #666; margin-top: 10px;">Забрать заказ можно с нашего склада</p>
|
||||
<p style="color: #666; margin-top: 5px;">Адрес: г. Москва, ул. Примерная, д. 1</p>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 10px;">Бесплатно</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #d4edda; padding: 15px; border-radius: 8px;">
|
||||
<p style="color: #155724;"><i class="fas fa-gift"></i> <strong>Бесплатная доставка</strong> при заказе от 50 000 ₽</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 style="color: #453227; margin-bottom: 20px;"><i class="fas fa-credit-card"></i> Способы оплаты</h2>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
|
||||
<h4 style="color: #453227;"><i class="far fa-credit-card"></i> Банковская карта</h4>
|
||||
<p style="color: #666; margin-top: 10px;">Visa, Mastercard, МИР - онлайн или при получении</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
|
||||
<h4 style="color: #453227;"><i class="fas fa-money-bill-wave"></i> Наличные</h4>
|
||||
<p style="color: #666; margin-top: 10px;">Оплата курьеру при получении заказа</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
|
||||
<h4 style="color: #453227;"><i class="fas fa-file-invoice"></i> Безналичный расчет</h4>
|
||||
<p style="color: #666; margin-top: 10px;">Для юридических лиц с выставлением счета</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 20px; border-radius: 8px;">
|
||||
<h4 style="color: #453227;"><i class="fas fa-clock"></i> Рассрочка</h4>
|
||||
<p style="color: #666; margin-top: 10px;">Рассрочка на 6 или 12 месяцев без переплаты</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="background: #fff3cd; padding: 20px; border-radius: 8px; margin-bottom: 30px;">
|
||||
<h4 style="color: #856404;"><i class="fas fa-info-circle"></i> Важная информация</h4>
|
||||
<ul style="color: #856404; margin-top: 10px; padding-left: 20px;">
|
||||
<li>При получении товара проверьте комплектность и целостность упаковки</li>
|
||||
<li>В случае обнаружения повреждений составьте акт с курьером</li>
|
||||
<li>Сохраняйте упаковку до окончания гарантийного срока</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
68
app/Views/pages/services.php
Normal file
68
app/Views/pages/services.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php $title = 'Услуги'; ?>
|
||||
|
||||
<main class="services-page">
|
||||
<div class="container">
|
||||
<div class="breadcrumbs">
|
||||
<a href="/cite_practica/">Главная</a> • <span class="current-page">Услуги</span>
|
||||
</div>
|
||||
|
||||
<h1 style="color: #453227; margin: 30px 0;">Наши услуги</h1>
|
||||
|
||||
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px;">
|
||||
<div style="background: #f8f9fa; padding: 30px; border-radius: 8px; border-left: 4px solid #453227;">
|
||||
<h3 style="color: #453227; margin-bottom: 15px;"><i class="fas fa-drafting-compass"></i> Дизайн-проект</h3>
|
||||
<p style="color: #666; line-height: 1.6;">
|
||||
Наши дизайнеры создадут уникальный проект интерьера с подбором мебели, которая идеально впишется в ваше пространство.
|
||||
</p>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 15px;">от 15 000 ₽</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 30px; border-radius: 8px; border-left: 4px solid #617365;">
|
||||
<h3 style="color: #453227; margin-bottom: 15px;"><i class="fas fa-ruler-combined"></i> Замеры</h3>
|
||||
<p style="color: #666; line-height: 1.6;">
|
||||
Бесплатный выезд замерщика для точного определения размеров и особенностей вашего помещения.
|
||||
</p>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 15px;">Бесплатно</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 30px; border-radius: 8px; border-left: 4px solid #453227;">
|
||||
<h3 style="color: #453227; margin-bottom: 15px;"><i class="fas fa-tools"></i> Сборка мебели</h3>
|
||||
<p style="color: #666; line-height: 1.6;">
|
||||
Профессиональная сборка мебели нашими специалистами с гарантией качества работ.
|
||||
</p>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 15px;">от 3 000 ₽</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 30px; border-radius: 8px; border-left: 4px solid #617365;">
|
||||
<h3 style="color: #453227; margin-bottom: 15px;"><i class="fas fa-truck"></i> Подъем на этаж</h3>
|
||||
<p style="color: #666; line-height: 1.6;">
|
||||
Услуга подъема мебели на любой этаж, включая помещения без лифта.
|
||||
</p>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 15px;">от 500 ₽ за этаж</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 30px; border-radius: 8px; border-left: 4px solid #453227;">
|
||||
<h3 style="color: #453227; margin-bottom: 15px;"><i class="fas fa-recycle"></i> Вывоз старой мебели</h3>
|
||||
<p style="color: #666; line-height: 1.6;">
|
||||
Демонтаж и вывоз старой мебели для освобождения пространства перед доставкой новой.
|
||||
</p>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 15px;">от 2 000 ₽</p>
|
||||
</div>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 30px; border-radius: 8px; border-left: 4px solid #617365;">
|
||||
<h3 style="color: #453227; margin-bottom: 15px;"><i class="fas fa-paint-roller"></i> Реставрация</h3>
|
||||
<p style="color: #666; line-height: 1.6;">
|
||||
Восстановление и обновление мебели: перетяжка, покраска, замена фурнитуры.
|
||||
</p>
|
||||
<p style="color: #617365; font-weight: bold; margin-top: 15px;">от 5 000 ₽</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="background: linear-gradient(135deg, #453227 0%, #617365 100%); color: white; padding: 40px; border-radius: 8px; text-align: center;">
|
||||
<h2>Нужна консультация?</h2>
|
||||
<p style="margin: 20px 0;">Позвоните нам или оставьте заявку, и мы свяжемся с вами в ближайшее время</p>
|
||||
<p style="font-size: 24px; font-weight: bold;">+7 (912) 999-12-23</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
76
app/Views/pages/warranty.php
Normal file
76
app/Views/pages/warranty.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php $title = 'Гарантия'; ?>
|
||||
|
||||
<main class="warranty-page">
|
||||
<div class="container">
|
||||
<div class="breadcrumbs">
|
||||
<a href="/cite_practica/">Главная</a> • <span class="current-page">Гарантия и возврат</span>
|
||||
</div>
|
||||
|
||||
<h1 style="color: #453227; margin: 30px 0;">Гарантия и возврат</h1>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px;">
|
||||
<div>
|
||||
<h2 style="color: #453227; margin-bottom: 20px;"><i class="fas fa-shield-alt"></i> Гарантийные обязательства</h2>
|
||||
|
||||
<div style="background: #f8f9fa; padding: 25px; border-radius: 8px; margin-bottom: 20px;">
|
||||
<h4 style="color: #617365; font-size: 36px; margin-bottom: 10px;">24 месяца</h4>
|
||||
<p style="color: #453227; font-weight: bold;">Гарантия на всю мебель</p>
|
||||
<p style="color: #666; margin-top: 10px;">Мы уверены в качестве нашей продукции и предоставляем расширенную гарантию на все изделия</p>
|
||||
</div>
|
||||
|
||||
<h3 style="color: #453227; margin-bottom: 15px;">Гарантия распространяется на:</h3>
|
||||
<ul style="color: #666; line-height: 2; padding-left: 20px;">
|
||||
<li>Производственные дефекты</li>
|
||||
<li>Дефекты материалов</li>
|
||||
<li>Неисправность механизмов</li>
|
||||
<li>Отклонения в размерах</li>
|
||||
</ul>
|
||||
|
||||
<h3 style="color: #453227; margin: 20px 0 15px;">Гарантия не распространяется на:</h3>
|
||||
<ul style="color: #666; line-height: 2; padding-left: 20px;">
|
||||
<li>Механические повреждения</li>
|
||||
<li>Повреждения от влаги/огня</li>
|
||||
<li>Неправильную эксплуатацию</li>
|
||||
<li>Естественный износ</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 style="color: #453227; margin-bottom: 20px;"><i class="fas fa-undo"></i> Возврат и обмен</h2>
|
||||
|
||||
<div style="background: #d4edda; padding: 20px; border-radius: 8px; margin-bottom: 20px;">
|
||||
<p style="color: #155724;"><i class="fas fa-check-circle"></i> <strong>14 дней</strong> на возврат товара надлежащего качества</p>
|
||||
</div>
|
||||
|
||||
<h3 style="color: #453227; margin-bottom: 15px;">Условия возврата:</h3>
|
||||
<ul style="color: #666; line-height: 2; padding-left: 20px;">
|
||||
<li>Товар не был в употреблении</li>
|
||||
<li>Сохранены товарный вид и упаковка</li>
|
||||
<li>Сохранены все ярлыки и бирки</li>
|
||||
<li>Есть документ, подтверждающий покупку</li>
|
||||
</ul>
|
||||
|
||||
<h3 style="color: #453227; margin: 20px 0 15px;">Как оформить возврат:</h3>
|
||||
<ol style="color: #666; line-height: 2; padding-left: 20px;">
|
||||
<li>Свяжитесь с нами по телефону или email</li>
|
||||
<li>Опишите причину возврата</li>
|
||||
<li>Получите номер заявки на возврат</li>
|
||||
<li>Отправьте товар или дождитесь курьера</li>
|
||||
<li>Получите деньги в течение 10 дней</li>
|
||||
</ol>
|
||||
|
||||
<div style="background: #fff3cd; padding: 15px; border-radius: 8px; margin-top: 20px;">
|
||||
<p style="color: #856404;"><i class="fas fa-exclamation-triangle"></i> Мебель, изготовленная по индивидуальному заказу, обмену и возврату не подлежит</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="background: linear-gradient(135deg, #453227 0%, #617365 100%); color: white; padding: 40px; border-radius: 8px; text-align: center;">
|
||||
<h2>Остались вопросы?</h2>
|
||||
<p style="margin: 20px 0;">Свяжитесь с нашей службой поддержки</p>
|
||||
<p style="font-size: 24px; font-weight: bold;">+7 (912) 999-12-23</p>
|
||||
<p style="margin-top: 10px;">aeterna@mail.ru</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user