modified: main_dc/yalarba/easySite/easySite/app/pages/index.vue

change main page easysite102.ru
This commit is contained in:
2025-11-02 05:24:44 +05:00
parent ebc3dd954c
commit f44b5f38d8
@@ -1,32 +1,70 @@
<template>
<div class="page-wrapper">
<!-- Хедер -->
<Header />
<!-- Hero Section - занимает всю видимую высоту -->
<!-- Обновленная Hero Section -->
<section class="hero-section">
<div class="container">
<div class="hero-content">
<div class="hero-text">
<nuxt-link to="/auth/register" class="T1 T">
<text>создавай</text>
<h1 class="hero-title">аккаунт</h1>
</nuxt-link>
<nuxt-link to="/profile" class="T2 T">
<text>добавляй</text>
<h1 class="hero-title">услуги</h1>
</nuxt-link>
<nuxt-link to="/objects/my-objects" class="T3 T">
<text>получай</text>
<h1 class="hero-title">сайт</h1>
</nuxt-link>
<p class="hero-subtitle T4">легко и доступно</p>
<div class="hero-main">
<h1 class="hero-title">
Создай свой сайт
<span class="gradient-text">за 3 шага</span>
</h1>
<p class="hero-description">
Простая платформа для быстрого создания сайтов.
Регистрируйся, добавляй услуги и получай готовый сайт.
</p>
<div class="steps-container">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h3>Создай аккаунт</h3>
<p>Быстрая регистрация</p>
</div>
<nuxt-link to="/auth/register" class="step-link">
Начать
</nuxt-link>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h3>Добавь услуги</h3>
<p>Опиши что предлагаешь</p>
</div>
<nuxt-link to="/profile" class="step-link">
Добавить
</nuxt-link>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h3>Получи сайт</h3>
<p>Автоматически сгенерированный</p>
</div>
<nuxt-link to="/objects/my-objects" class="step-link">
Посмотреть
</nuxt-link>
</div>
</div>
<div class="hero-actions">
<nuxt-link to="/auth/register" class="btn btn-primary btn-large">
Начать бесплатно
</nuxt-link>
<nuxt-link to="/about" class="btn btn-outline">
Узнать больше
</nuxt-link>
</div>
</div>
</div>
</div>
</section>
<!-- Футер - появляется только при прокрутке -->
<Footer />
</div>
</template>
@@ -35,28 +73,19 @@
import Header from '~/components/layout/Header.vue'
import Footer from '~/components/layout/Footer.vue'
definePageMeta({
title: 'EasySite'
})
</script>
<style scoped>
a:hover,
a:visited,
a:focus {
text-decoration: none;
color: var(--text-primary)
}
.page-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Hero секция занимает всю доступную высоту */
/* Обновленная Hero Section */
.hero-section {
background: var(--hero-gradient);
color: var(--text-inverse);
@@ -66,6 +95,7 @@ a:focus {
display: flex;
align-items: center;
min-height: calc(100vh - 80px);
padding: 2rem 0;
}
.hero-section::before {
@@ -76,197 +106,223 @@ a:focus {
right: 0;
bottom: 0;
background: var(--hero-pattern);
opacity: 0.1;
opacity: 0.05;
pointer-events: none;
}
.hero-content {
position: relative;
z-index: 10;
padding: 2rem 0;
width: 100%;
flex: 1;
display: flex;
align-items: center;
}
.hero-text {
.hero-main {
max-width: 800px;
min-width: 350px;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto auto auto auto;
grid-template-areas:
"item1"
"item2"
"item3"
"item4";
gap: 1rem;
width: 100%;
border: 1px solid #ffffff20;
border-radius: 1rem;
padding: 2rem;
box-shadow: 2px 2px 4px #42b7d19a;
margin: 0 auto;
text-align: center;
}
.hero-title {
font-size: 3rem;
font-weight: bold;
font-family: var(--font-heading);
font-size: clamp(2.5rem, 5vw, 4rem);
font-weight: var(--font-bold);
line-height: 1.1;
margin-bottom: 1.5rem;
color: var(--text-inverse);
}
.T {
color: var(--text-secondary);
font-family: var(--font-accent);
text-align: center;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
padding: 0 1rem;
border-radius: 1rem;
.gradient-text {
background: linear-gradient(135deg, var(--secondary-400), var(--accent-400));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.T:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.T1 {
grid-area: item1;
justify-self: start;
}
.T2 {
grid-area: item2;
justify-self: center;
}
.T3 {
grid-area: item3;
justify-self: end;
}
.T4 {
grid-area: item4;
justify-self: center;
}
/* Мобильная версия - элементы становятся шире */
@media (max-width: 767px) {
.waterfall-layout {
gap: 0.75rem;
}
.item {
justify-self: stretch !important;
max-width: none !important;
width: 100%;
margin: 0;
}
}
/* Еще более узкие экраны - меньше отступы */
@media (max-width: 480px) {
.waterfall-layout {
gap: 0.5rem;
}
.item {
padding: 1.5rem 1rem;
}
}
.hero-subtitle {
font-size: 1.25rem;
opacity: 0.9;
.hero-description {
font-size: clamp(1.125rem, 2vw, 1.25rem);
line-height: 1.6;
margin-bottom: 3rem;
opacity: 0.9;
max-width: 600px;
margin-left: auto;
margin-right: auto;
color: var(--text-inverse);
}
.search-container {
max-width: 800px;
margin: 0 auto;
}
.search-box {
/* Контейнер шагов */
.steps-container {
display: flex;
gap: 0.5rem;
background: var(--bg-primary);
border-radius: var(--radius-lg);
padding: 0.5rem;
flex-direction: column;
gap: 1.5rem;
margin-bottom: 3rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.step {
display: flex;
align-items: center;
gap: 1.5rem;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: var(--radius-xl);
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.step:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
box-shadow: var(--shadow-lg);
}
.search-input {
.step-number {
display: flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
background: var(--primary-500);
color: var(--text-inverse);
border-radius: 50%;
font-weight: var(--font-bold);
font-size: 1.25rem;
flex-shrink: 0;
}
.step-content {
flex: 1;
border: none;
text-align: left;
}
.step-content h3 {
font-size: 1.25rem;
font-weight: var(--font-semibold);
margin-bottom: 0.25rem;
color: var(--text-inverse);
}
.step-content p {
font-size: 0.9rem;
opacity: 0.8;
margin: 0;
color: var(--text-inverse);
}
.step-link {
color: var(--text-inverse);
text-decoration: none;
font-weight: var(--font-medium);
padding: 0.5rem 1rem;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: var(--radius-md);
padding: 1rem;
font-size: 1.125rem;
background: var(--bg-primary);
color: var(--text-primary);
min-width: 0;
transition: all 0.3s ease;
flex-shrink: 0;
}
.search-input:focus {
outline: none;
.step-link:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.5);
text-decoration: none;
transform: translateX(2px);
}
.search-input::placeholder {
color: var(--text-tertiary);
/* Кнопки действий */
.hero-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.search-button {
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 1rem 2rem;
border: none;
border-radius: var(--radius-lg);
font-weight: var(--font-medium);
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1rem;
}
.btn-large {
padding: 1.25rem 2.5rem;
font-size: 1.125rem;
white-space: nowrap;
flex-shrink: 0;
}
/* Футер остается внизу, но не влияет на высоту hero */
.footer {
flex-shrink: 0;
/* Не сжимается */
.btn-primary {
background: var(--primary-500);
color: var(--text-inverse);
}
.btn-primary:hover {
background: var(--primary-600);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
text-decoration: none;
}
.btn-outline {
background: transparent;
border: 2px solid rgba(255, 255, 255, 0.3);
color: var(--text-inverse);
}
.btn-outline:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-2px);
text-decoration: none;
}
/* Адаптивность */
@media (max-width: 768px) {
.hero-section {
min-height: calc(100vh - 70px);
padding: 1.5rem 0;
}
.hero-title {
font-size: 2rem;
}
.hero-subtitle {
font-size: 1rem;
margin-bottom: 2rem;
}
.search-box {
.step {
flex-direction: column;
text-align: center;
gap: 1rem;
}
.search-button {
.step-content {
text-align: center;
}
.hero-actions {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
}
.hero-content {
padding: 1rem 0;
max-width: 300px;
}
}
@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);
}
.step {
padding: 1.25rem;
}
.step-number {
width: 2.5rem;
height: 2.5rem;
font-size: 1rem;
}
}
</style>