Files
tp/main_dc/yalarba/easySite/easySite/app/pages/index.vue
T
valitovgaziz beecbb3b86 modified: main_dc/yalarba/easySite/easySite/app/assets/css/components.css
modified:   main_dc/yalarba/easySite/easySite/app/assets/css/main.css
	modified:   main_dc/yalarba/easySite/easySite/app/assets/css/travel.css
	modified:   main_dc/yalarba/easySite/easySite/app/assets/css/typography.css
	modified:   main_dc/yalarba/easySite/easySite/app/assets/css/variables.css
	modified:   main_dc/yalarba/easySite/easySite/app/components/layout/Footer.vue
	modified:   main_dc/yalarba/easySite/easySite/app/components/layout/Header.vue
	new file:   main_dc/yalarba/easySite/easySite/app/composables/useTheme.ts
	modified:   main_dc/yalarba/easySite/easySite/app/pages/index.vue
	new file:   main_dc/yalarba/easySite/easySite/app/plugins/theme.client.ts
add dark theme for easysite
2025-10-30 00:22:00 +05:00

190 lines
3.5 KiB
Vue

<template>
<div class="page-wrapper">
<!-- Хедер -->
<Header />
<!-- Hero Section - занимает всю видимую высоту -->
<section class="hero-section">
<div class="container">
<div class="hero-content">
<div class="hero-text">
<h1 class="hero-title">Создавай аккаунт</h1>
<h1 class="hero-title">Добавляй услуги</h1>
<h1 class="hero-title">Получи сайт</h1>
<p class="hero-subtitle">Диджитал присутвие в интернете легко и доступно</p>
</div>
</div>
</div>
</section>
<!-- Футер - появляется только при прокрутке -->
<Footer />
</div>
</template>
<script setup lang="ts">
import Header from '~/components/layout/Header.vue'
import Footer from '~/components/layout/Footer.vue'
const searchQuery = ref('')
const handleSearch = () => {
if (searchQuery.value.trim()) {
navigateTo(`/objects?search=${encodeURIComponent(searchQuery.value)}`)
} else {
navigateTo('/objects')
}
}
</script>
<style scoped>
.page-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Hero секция занимает всю доступную высоту */
.hero-section {
background: var(--hero-gradient);
color: var(--text-inverse);
position: relative;
overflow: hidden;
flex: 1 0 auto;
display: flex;
align-items: center;
min-height: calc(100vh - 80px);
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--hero-pattern);
opacity: 0.1;
}
.hero-content {
position: relative;
z-index: 10;
padding: 2rem 0;
width: 100%;
flex: 1;
display: flex;
align-items: center;
}
.hero-text {
max-width: 800px;
margin: 0 auto;
text-align: center;
width: 100%;
}
.hero-title {
font-size: 3rem;
font-weight: bold;
margin-bottom: 1.5rem;
line-height: 1.2;
}
.hero-subtitle {
font-size: 1.25rem;
opacity: 0.9;
margin-bottom: 3rem;
}
.search-container {
max-width: 800px;
margin: 0 auto;
}
.search-box {
display: flex;
gap: 0.5rem;
background: var(--bg-primary);
border-radius: var(--radius-lg);
padding: 0.5rem;
box-shadow: var(--shadow-lg);
}
.search-input {
flex: 1;
border: none;
border-radius: var(--radius-md);
padding: 1rem;
font-size: 1.125rem;
background: var(--bg-primary);
color: var(--text-primary);
min-width: 0;
}
.search-input:focus {
outline: none;
}
.search-input::placeholder {
color: var(--text-tertiary);
}
.search-button {
padding: 1rem 2rem;
font-size: 1.125rem;
white-space: nowrap;
flex-shrink: 0;
}
/* Футер остается внизу, но не влияет на высоту hero */
.footer {
flex-shrink: 0; /* Не сжимается */
}
@media (max-width: 768px) {
.hero-section {
min-height: calc(100vh - 70px);
}
.hero-title {
font-size: 2rem;
}
.hero-subtitle {
font-size: 1rem;
margin-bottom: 2rem;
}
.search-box {
flex-direction: column;
}
.search-button {
width: 100%;
}
.hero-content {
padding: 1rem 0;
}
}
@media (max-width: 480px) {
.hero-title {
font-size: 1.75rem;
}
.hero-subtitle {
font-size: 0.9rem;
}
.search-input {
padding: 0.75rem;
font-size: 1rem;
}
.hero-section {
min-height: calc(100vh - 60px);
}
}
</style>