This commit is contained in:
Professional 2025-05-23 21:11:31 +07:00
parent 5915e66a2b
commit eafad3da8d

View File

@ -76,38 +76,154 @@
</div> </div>
<!-- Экран для авторизованных пользователей --> <!-- Экран для авторизованных пользователей -->
<div v-else class="home-view"> <div v-else class="auth-home-view">
<div class="container"> <div class="auth-bg-gradient">
<div class="welcome-card"> <div class="auth-header">
<h1>С возвращением, {{ user?.name || 'Пользователь' }}!</h1> <div class="auth-logo">
<p class="subtitle">Готовы продолжить поиск своей половинки?</p> <span class="logo-letter">R</span>
<span class="logo-letter">E</span>
<span class="logo-letter">F</span>
<span class="logo-letter">L</span>
<span class="logo-letter">E</span>
<span class="logo-letter">X</span>
</div>
</div>
<div class="action-tiles"> <div class="auth-container">
<router-link to="/profile" class="action-tile"> <div class="welcome-banner">
<div class="tile-icon"> <div class="welcome-avatar">
<i class="bi-person-circle"></i> <i class="bi-person-circle"></i>
</div> </div>
<h3>Мой профиль</h3> <h1 class="welcome-heading">С возвращением, <span class="user-name">{{ user?.name || 'Пользователь' }}</span>!</h1>
<p>Управление личными данными</p> <p class="welcome-message">Рады видеть вас снова в REFLEX. Найдите свою идеальную пару сегодня.</p>
</router-link>
<router-link to="/swipe" class="action-tile">
<div class="tile-icon">
<i class="bi-suit-heart"></i>
</div> </div>
<h3>Поиск пары</h3>
<p>Находите интересных людей рядом</p>
</router-link>
<router-link to="/chats" class="action-tile"> <div class="stats-cards">
<div class="tile-icon"> <div class="stat-card">
<div class="stat-icon">
<i class="bi-eye"></i>
</div>
<div class="stat-info">
<h3>25</h3>
<p>Просмотров профиля</p>
</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<i class="bi-heart"></i>
</div>
<div class="stat-info">
<h3>8</h3>
<p>Лайков</p>
</div>
</div>
<div class="stat-card">
<div class="stat-icon">
<i class="bi-chat-dots"></i> <i class="bi-chat-dots"></i>
</div> </div>
<div class="stat-info">
<h3>3</h3>
<p>Новых сообщения</p>
</div>
</div>
</div>
<div class="action-section">
<h2 class="section-title">Что вы хотите сделать сегодня?</h2>
<div class="action-cards">
<router-link to="/swipe" class="action-card">
<div class="action-card-content">
<div class="action-icon">
<i class="bi-suit-heart-fill"></i>
</div>
<h3>Искать пару</h3>
<p>Находите совпадения с интересными людьми вокруг вас</p>
</div>
<div class="card-glare"></div>
</router-link>
<router-link to="/profile" class="action-card">
<div class="action-card-content">
<div class="action-icon">
<i class="bi-person-fill"></i>
</div>
<h3>Мой профиль</h3>
<p>Обновите информацию и фотографии в своем профиле</p>
</div>
<div class="card-glare"></div>
</router-link>
<router-link to="/chats" class="action-card">
<div class="action-card-content">
<div class="action-icon">
<i class="bi-chat-text-fill"></i>
</div>
<h3>Сообщения</h3> <h3>Сообщения</h3>
<p>Общайтесь с вашими совпадениями</p> <p>Проверьте новые сообщения и продолжите беседы</p>
</div>
<div class="card-glare"></div>
</router-link> </router-link>
</div> </div>
</div> </div>
<div class="suggestions-section">
<h2 class="section-title">Предлагаем познакомиться</h2>
<div class="user-suggestions">
<div class="suggestion-card">
<div class="suggestion-photo" style="background-image: url('https://randomuser.me/api/portraits/women/12.jpg')"></div>
<div class="suggestion-info">
<h3>Анна, 26</h3>
<p>На расстоянии 2 км</p>
<div class="suggestion-tags">
<span>Музыка</span>
<span>Путешествия</span>
</div>
</div>
<div class="suggestion-match-percent">87%</div>
</div>
<div class="suggestion-card">
<div class="suggestion-photo" style="background-image: url('https://randomuser.me/api/portraits/women/33.jpg')"></div>
<div class="suggestion-info">
<h3>Мария, 24</h3>
<p>На расстоянии 5 км</p>
<div class="suggestion-tags">
<span>Спорт</span>
<span>Книги</span>
</div>
</div>
<div class="suggestion-match-percent">78%</div>
</div>
<div class="suggestion-card">
<div class="suggestion-photo" style="background-image: url('https://randomuser.me/api/portraits/women/65.jpg')"></div>
<div class="suggestion-info">
<h3>Елена, 29</h3>
<p>На расстоянии 3 км</p>
<div class="suggestion-tags">
<span>Кино</span>
<span>Искусство</span>
</div>
</div>
<div class="suggestion-match-percent">71%</div>
</div>
</div>
<router-link to="/swipe" class="see-more-btn">
Смотреть больше
<i class="bi-arrow-right"></i>
</router-link>
</div>
</div>
<div class="wave-container-auth">
<div class="wave-auth"></div>
<div class="wave-auth"></div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -518,159 +634,549 @@ onMounted(async () => {
font-size: 0.9rem; font-size: 0.9rem;
} }
/* Медиа-запросы для улучшения адаптивности */ /* Новые стили для авторизованного интерфейса */
.auth-home-view {
/* Планшеты и небольшие ноутбуки */
@media (max-width: 1100px) {
.landing-content {
padding-left: 3%;
}
.phone-mockup {
width: 240px;
height: 480px;
}
.app-name {
font-size: 4rem;
}
}
/* Планшеты */
@media (max-width: 992px) {
.landing-page {
flex-direction: column;
height: auto;
min-height: 100vh; min-height: 100vh;
color: #333;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} }
.landing-content, .auth-bg-gradient {
.mobile-showcase { min-height: 100vh;
width: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 2rem 1rem; position: relative;
overflow: hidden;
} }
.landing-content { .auth-header {
padding-top: 4rem; padding: 1.5rem 2rem;
padding-bottom: 0; display: flex;
justify-content: center;
align-items: center;
position: relative;
z-index: 2;
} }
.mobile-showcase { .auth-logo {
height: 350px; display: flex;
order: 1; align-items: center;
margin-top: 2rem; font-size: 2rem;
font-weight: 800;
letter-spacing: 1px;
} }
.phone-mockup { .logo-letter {
transform: rotate(-5deg) scale(0.9); display: inline-block;
animation: gradientShift 8s infinite;
background: linear-gradient(45deg, #ffffff, #64b5f6, #7e57c2, #ff6e40);
background-size: 300% 300%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
} }
.wave-container { .logo-letter:nth-child(1) { animation-delay: 0s; }
height: 100px; .logo-letter:nth-child(2) { animation-delay: 0.25s; }
.logo-letter:nth-child(3) { animation-delay: 0.5s; }
.logo-letter:nth-child(4) { animation-delay: 0.75s; }
.logo-letter:nth-child(5) { animation-delay: 1s; }
.logo-letter:nth-child(6) { animation-delay: 1.25s; }
.auth-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem 6rem;
position: relative;
z-index: 2;
} }
.wave { .welcome-banner {
height: 100px; background: rgba(255, 255, 255, 0.15);
background-size: 1200px 100px; backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2.5rem;
margin-bottom: 2rem;
text-align: center;
color: white;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
animation: fadeIn 0.8s ease;
} }
.action-tiles { .welcome-avatar {
width: 90px;
height: 90px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
border: 3px solid rgba(255, 255, 255, 0.3);
}
.welcome-avatar i {
font-size: 3rem;
color: white;
}
.welcome-heading {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
color: white;
}
.user-name {
background: linear-gradient(45deg, #FFD700, #FFA500);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 800;
}
.welcome-message {
font-size: 1.2rem;
opacity: 0.9;
max-width: 600px;
margin: 0 auto;
}
.stats-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin-bottom: 3rem;
}
.stat-card {
background: white;
border-radius: 16px;
padding: 1.5rem;
display: flex;
align-items: center;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.stat-icon {
width: 60px;
height: 60px;
border-radius: 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
margin-right: 1.5rem;
color: white;
flex-shrink: 0;
}
.stat-icon i {
font-size: 1.8rem;
}
.stat-info {
flex-grow: 1;
}
.stat-info h3 {
font-size: 2rem;
font-weight: 700;
margin: 0 0 0.2rem;
background: linear-gradient(45deg, #667eea, #764ba2);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.stat-info p {
font-size: 0.9rem;
color: #6c757d;
margin: 0;
line-height: 1.4;
}
.section-title {
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 1.5rem;
color: white;
position: relative;
display: inline-block;
}
.section-title::after {
content: '';
position: absolute;
left: 0;
bottom: -10px;
height: 4px;
width: 60px;
background: linear-gradient(90deg, #FFD700, #FFA500);
border-radius: 2px;
}
.action-section {
margin-bottom: 3rem;
}
.action-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem; gap: 1.5rem;
} }
.action-card {
background: white;
border-radius: 16px;
overflow: hidden;
position: relative;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
text-decoration: none;
color: #333;
height: 100%;
} }
/* Мобильные устройства */ .action-card:hover {
@media (max-width: 768px) { transform: translateY(-10px);
.landing-features { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
grid-template-columns: 1fr;
} }
.welcome-card { .action-card:hover .card-glare {
padding: 2rem 1.5rem; transform: translateX(150%) translateY(-50%) skew(-20deg, 0);
} }
.welcome-card h1 { .action-card-content {
padding: 2rem;
height: 100%;
position: relative;
z-index: 1;
}
.action-icon {
width: 70px;
height: 70px;
border-radius: 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
color: white;
}
.action-icon i {
font-size: 2rem; font-size: 2rem;
} }
.action-tiles { .action-card h3 {
grid-template-columns: 1fr; font-size: 1.4rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: #333;
}
.action-card p {
font-size: 0.95rem;
color: #6c757d;
line-height: 1.6;
}
.card-glare {
position: absolute;
width: 40%;
height: 200%;
top: 50%;
left: -120%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transform: translateY(-50%) skew(-20deg, 0);
transition: transform 0.7s ease;
z-index: 1;
}
.suggestions-section {
color: white;
}
.user-suggestions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem; gap: 1.5rem;
}
.action-tile {
padding: 1.5rem;
}
.app-name {
font-size: 3.5rem;
}
.tagline {
font-size: 1.2rem;
}
.feature {
padding: 1.5rem;
}
.cta-buttons {
flex-direction: column;
gap: 1rem;
width: 100%;
}
.action-btn {
width: 100%;
justify-content: center;
}
}
/* Мелкие мобильные устройства */
@media (max-width: 480px) {
.app-name {
font-size: 2.5rem;
justify-content: center;
}
.feature-icon {
width: 50px;
height: 50px;
}
.feature-icon i {
font-size: 1.5rem;
}
.mobile-showcase {
height: 300px;
}
.phone-mockup {
transform: rotate(-5deg) scale(0.7);
}
.welcome-card h1 {
font-size: 1.7rem;
}
.welcome-card .subtitle {
font-size: 1rem;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
.action-tile { .suggestion-card {
padding: 1.2rem; background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border-radius: 16px;
overflow: hidden;
position: relative;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
border: 1px solid rgba(255, 255, 255, 0.2);
} }
.tile-icon { .suggestion-card:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.suggestion-photo {
height: 180px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.suggestion-info {
padding: 1.5rem;
flex-grow: 1;
}
.suggestion-info h3 {
font-size: 1.2rem;
font-weight: 600;
margin: 0 0 0.5rem;
}
.suggestion-info p {
font-size: 0.85rem;
opacity: 0.8;
margin: 0 0 1rem;
}
.suggestion-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.suggestion-tags span {
padding: 0.3rem 0.8rem;
background: rgba(255, 255, 255, 0.2);
border-radius: 50px;
font-size: 0.75rem;
white-space: nowrap;
}
.suggestion-match-percent {
position: absolute;
top: 10px;
right: 10px;
background: linear-gradient(45deg, #FF416C, #FF4B2B);
color: white;
border-radius: 50px;
padding: 0.3rem 0.8rem;
font-size: 0.85rem;
font-weight: 600;
box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}
.see-more-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.8rem 1.5rem;
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
}
.see-more-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateX(5px);
}
.see-more-btn i {
transition: transform 0.3s ease;
}
.see-more-btn:hover i {
transform: translateX(5px);
}
.wave-container-auth {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 150px;
overflow: hidden;
z-index: 1;
}
.wave-auth {
position: absolute;
bottom: 0;
left: 0;
width: 200%;
height: 150px;
background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" opacity=".25" fill="white"/><path d="M0 0v15.81c13 21.11 27.64 41.05 47.69 56.24C99.41 111.27 165 111 224.58 91.58c31.15-10.15 60.09-26.07 89.67-39.8 40.92-19 84.73-46 130.83-49.67 36.26-2.85 70.9 9.42 98.6 31.56 31.77 25.39 62.32 62 103.63 73 40.44 10.79 81.35-6.69 119.13-24.28s75.16-39 116.92-43.05c59.73-5.85 113.28 22.88 168.9 38.84 30.2 8.66 59 6.17 87.09-7.5 22.43-10.89 48-26.93 60.65-49.24V0z" opacity=".5" fill="white"/><path d="M0 0v5.63C149.93 59 314.09 71.32 475.83 42.57c43-7.64 84.23-20.12 127.61-26.46 59-8.63 112.48 12.24 165.56 35.4C827.93 77.22 886 95.24 951.2 90c86.53-7 172.46-45.71 248.8-84.81V0z" fill="white"/></svg>') repeat-x;
background-size: 1200px 150px;
animation: wave 10s linear infinite;
opacity: 0.6;
}
.wave-auth:nth-child(2) {
bottom: 10px;
animation: wave 16s linear reverse infinite;
opacity: 0.3;
}
/* Медиа-запросы для авторизованного интерфейса */
@media (max-width: 1100px) {
.stats-cards,
.action-cards,
.user-suggestions {
gap: 1rem;
}
.welcome-heading {
font-size: 2.2rem;
}
.action-icon,
.stat-icon {
width: 60px; width: 60px;
height: 60px; height: 60px;
} }
.tile-icon i { .action-card-content {
padding: 1.5rem;
}
}
@media (max-width: 992px) {
.stats-cards,
.action-cards,
.user-suggestions {
grid-template-columns: repeat(2, 1fr);
}
.welcome-banner {
padding: 2rem;
}
.welcome-heading {
font-size: 2rem;
}
.section-title {
font-size: 1.6rem;
}
.welcome-message {
font-size: 1.1rem;
}
}
@media (max-width: 768px) {
.stats-cards,
.action-cards,
.user-suggestions {
grid-template-columns: 1fr;
gap: 1rem;
}
.welcome-heading {
font-size: 1.8rem;
}
.welcome-message {
font-size: 1rem;
}
.welcome-avatar {
width: 70px;
height: 70px;
}
.welcome-avatar i {
font-size: 2.2rem;
}
.section-title {
font-size: 1.4rem;
}
.welcome-banner,
.stat-card,
.action-card-content,
.suggestion-info {
padding: 1.5rem;
}
.auth-container {
padding: 0 1rem 5rem;
}
.auth-header {
padding: 1rem;
}
.auth-logo {
font-size: 1.7rem;
}
}
@media (max-width: 480px) {
.welcome-heading {
font-size: 1.6rem;
}
.welcome-avatar {
width: 60px;
height: 60px;
margin-bottom: 1rem;
}
.welcome-avatar i {
font-size: 1.8rem;
}
.section-title {
font-size: 1.3rem;
}
.welcome-banner,
.stat-card,
.action-card-content,
.suggestion-info {
padding: 1.2rem;
}
.stat-info h3 {
font-size: 1.6rem;
}
.action-icon,
.stat-icon {
width: 50px;
height: 50px;
margin-right: 1rem;
}
.action-icon i,
.stat-icon i {
font-size: 1.5rem; font-size: 1.5rem;
} }
.suggestion-photo {
height: 150px;
}
} }
/* Исправления Safari */ /* Исправления Safari */