modified: main_dc/yalarba/easySite/easySite/app/components/layout/Footer.vue
modified: main_dc/yalarba/easySite/easySite/app/components/layout/Header.vue modified: main_dc/yalarba/easySite/easySite/app/layouts/default.vue modified: main_dc/yalarba/easySite/easySite/app/pages/index.vue add footer into main page for easysite
This commit is contained in:
@@ -0,0 +1,361 @@
|
|||||||
|
<template>
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<!-- Основное содержимое футера -->
|
||||||
|
<div class="footer-content">
|
||||||
|
|
||||||
|
<!-- Информация о компании -->
|
||||||
|
<div class="footer-section">
|
||||||
|
<div class="footer-logo">
|
||||||
|
<div class="logo-icon">
|
||||||
|
<span class="logo-text">T</span>
|
||||||
|
</div>
|
||||||
|
<span class="logo-name">TravelEasy</span>
|
||||||
|
</div>
|
||||||
|
<p class="footer-description">
|
||||||
|
Платформа для агрегации туристических объектов и создания маршрутов путешествий.
|
||||||
|
</p>
|
||||||
|
<div class="social-links">
|
||||||
|
<a href="#" class="social-link" aria-label="ВКонтакте">
|
||||||
|
<span class="social-icon">📘</span>
|
||||||
|
</a>
|
||||||
|
<a href="#" class="social-link" aria-label="Telegram">
|
||||||
|
<span class="social-icon">📧</span>
|
||||||
|
</a>
|
||||||
|
<a href="#" class="social-link" aria-label="YouTube">
|
||||||
|
<span class="social-icon">📺</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Реквизиты -->
|
||||||
|
<div class="footer-section">
|
||||||
|
<h3 class="footer-title">Реквизиты</h3>
|
||||||
|
<div class="footer-info">
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-label">ОГРН:</span>
|
||||||
|
<span class="info-value">1234567890123</span>
|
||||||
|
</div>
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-label">ИНН:</span>
|
||||||
|
<span class="info-value">7712345678</span>
|
||||||
|
</div>
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-label">КПП:</span>
|
||||||
|
<span class="info-value">771201001</span>
|
||||||
|
</div>
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-label">Юр. адрес:</span>
|
||||||
|
<span class="info-value">г. Москва, ул. Примерная, д. 123</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Контакты -->
|
||||||
|
<div class="footer-section">
|
||||||
|
<h3 class="footer-title">Контакты</h3>
|
||||||
|
<div class="footer-info">
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-icon">📞</span>
|
||||||
|
<a href="tel:+78001234567" class="info-link">8 (800) 123-45-67</a>
|
||||||
|
</div>
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-icon">✉️</span>
|
||||||
|
<a href="mailto:info@traveleasy.ru" class="info-link">info@traveleasy.ru</a>
|
||||||
|
</div>
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-icon">🕒</span>
|
||||||
|
<span class="info-value">Пн-Пт: 9:00-18:00</span>
|
||||||
|
</div>
|
||||||
|
<div class="info-item">
|
||||||
|
<span class="info-icon">📍</span>
|
||||||
|
<span class="info-value">г. Москва, ул. Контактная, д. 45</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Вакансии и навигация -->
|
||||||
|
<div class="footer-section">
|
||||||
|
<h3 class="footer-title">Карьера</h3>
|
||||||
|
<div class="footer-links">
|
||||||
|
<a href="#" class="footer-link">💼 Открытые вакансии</a>
|
||||||
|
<a href="#" class="footer-link">👥 Стать партнером</a>
|
||||||
|
<a href="#" class="footer-link">🏢 О компании</a>
|
||||||
|
<a href="#" class="footer-link">📰 Новости</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h3 class="footer-title footer-title-margin">Полезное</h3>
|
||||||
|
<div class="footer-links">
|
||||||
|
<NuxtLink to="/objects" class="footer-link">🔍 Все объекты</NuxtLink>
|
||||||
|
<NuxtLink to="/objects/create" class="footer-link">➕ Добавить объект</NuxtLink>
|
||||||
|
<a href="#" class="footer-link">❓ Помощь</a>
|
||||||
|
<a href="#" class="footer-link">📋 Правила использования</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Нижняя часть футера -->
|
||||||
|
<div class="footer-bottom">
|
||||||
|
<div class="footer-bottom-content">
|
||||||
|
<div class="copyright">
|
||||||
|
© 2024 TravelEasy. Все права защищены.
|
||||||
|
</div>
|
||||||
|
<div class="footer-bottom-links">
|
||||||
|
<a href="#" class="footer-bottom-link">Политика конфиденциальности</a>
|
||||||
|
<a href="#" class="footer-bottom-link">Пользовательское соглашение</a>
|
||||||
|
<a href="#" class="footer-bottom-link">Карта сайта</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
// Компонент футера
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.footer {
|
||||||
|
background: var(--gray-900);
|
||||||
|
color: var(--text-inverse);
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-content {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 2fr 1fr 1fr 1.5fr;
|
||||||
|
gap: 3rem;
|
||||||
|
padding: 3rem 0 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-logo {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-icon {
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
background: var(--primary-500);
|
||||||
|
border-radius: var(--radius-lg);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-text {
|
||||||
|
color: var(--text-inverse);
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-name {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-description {
|
||||||
|
color: var(--gray-400);
|
||||||
|
line-height: 1.6;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-link {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
background: var(--gray-700);
|
||||||
|
border-radius: 50%;
|
||||||
|
transition: all 0.3s;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-link:hover {
|
||||||
|
background: var(--primary-500);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-icon {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-title {
|
||||||
|
font-size: 1.125rem;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
color: var(--text-inverse);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-title-margin {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 0.5rem;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-label {
|
||||||
|
color: var(--gray-400);
|
||||||
|
min-width: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-value {
|
||||||
|
color: var(--gray-300);
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-icon {
|
||||||
|
font-size: 1rem;
|
||||||
|
min-width: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-link {
|
||||||
|
color: var(--gray-300);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-link:hover {
|
||||||
|
color: var(--primary-400);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-links {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-link {
|
||||||
|
color: var(--gray-400);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-link:hover {
|
||||||
|
color: var(--primary-400);
|
||||||
|
transform: translateX(4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom {
|
||||||
|
border-top: 1px solid var(--gray-700);
|
||||||
|
padding: 1.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copyright {
|
||||||
|
color: var(--gray-500);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom-links {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom-link {
|
||||||
|
color: var(--gray-500);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
transition: color 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom-link:hover {
|
||||||
|
color: var(--gray-300);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Адаптивность */
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.footer-content {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.footer-content {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 2rem;
|
||||||
|
padding: 2rem 0 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom-content {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-bottom-links {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-logo {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-section {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-links {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.footer-content {
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-title {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-name {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-description {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="logo-icon">
|
<div class="logo-icon">
|
||||||
<span class="logo-text">T</span>
|
<span class="logo-text">T</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="logo-name">TravelEasy</span>
|
<span class="logo-name">EasySite</span>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
<!-- Навигация -->
|
<!-- Навигация -->
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="min-h-screen bg-gray-50">
|
<div class="layout">
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<main>
|
<main class="main-content">
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
@@ -11,5 +11,18 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// Основной layout с хедером и футером
|
import Header from '~/components/layout/Header.vue'
|
||||||
</script>
|
import Footer from '~/components/layout/Footer.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.layout {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<!-- Хедер -->
|
<!-- Хедер -->
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<!-- Hero Section -->
|
<!-- Hero Section - занимает всю видимую высоту -->
|
||||||
<section class="hero-section">
|
<section class="hero-section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="hero-content">
|
<div class="hero-content">
|
||||||
@@ -30,11 +30,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<!-- Футер - появляется только при прокрутке -->
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Header from '~/components/layout/Header.vue'
|
import Header from '~/components/layout/Header.vue'
|
||||||
|
import Footer from '~/components/layout/Footer.vue'
|
||||||
|
|
||||||
const searchQuery = ref('')
|
const searchQuery = ref('')
|
||||||
|
|
||||||
@@ -54,14 +58,16 @@ const handleSearch = () => {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hero секция занимает всю доступную высоту */
|
||||||
.hero-section {
|
.hero-section {
|
||||||
background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
|
background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
|
||||||
color: var(--text-inverse);
|
color: var(--text-inverse);
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex: 1;
|
flex: 1 0 auto; /* Занимает всё доступное пространство */
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-height: calc(100vh - 80px); /* Минимальная высота минус хедер */
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-section::before {
|
.hero-section::before {
|
||||||
@@ -80,12 +86,16 @@ const handleSearch = () => {
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-text {
|
.hero-text {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-title {
|
||||||
@@ -123,7 +133,7 @@ const handleSearch = () => {
|
|||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
background: var(--bg-primary);
|
background: var(--bg-primary);
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
min-width: 0; /* Важно для правильного сжатия в flex */
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input:focus {
|
.search-input:focus {
|
||||||
@@ -141,7 +151,16 @@ const handleSearch = () => {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Футер остается внизу, но не влияет на высоту hero */
|
||||||
|
.footer {
|
||||||
|
flex-shrink: 0; /* Не сжимается */
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
.hero-section {
|
||||||
|
min-height: calc(100vh - 70px);
|
||||||
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-title {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
@@ -177,5 +196,9 @@ const handleSearch = () => {
|
|||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero-section {
|
||||||
|
min-height: calc(100vh - 60px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user