Download index.html from Stovgen/auction: direct link, hf CLI and curl.
- Browser
- Download file 68.1 kB
-
https://huggingface.co/spaces/Stovgen/auction/resolve/main/index.html
- Command line
-
hf download hf://spaces/Stovgen/auction/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Stovgen/auction/resolve/main/index.html
68.1 kB
<script>
// Глобальные переменные
let isUserLoggedIn = false;
let currentUser = null;
// Система аутентификации
function loginUser() {
const email = document.getElementById('loginEmail').value;
const password = document.getElementById('loginPassword').value;
if (!email || !password) {
alert('Пожалуйста, заполните все поля');
return;
}
// Имитация проверки логина (в реальном приложении здесь был бы API запрос)
if (email && password.length >= 6) {
isUserLoggedIn = true;
currentUser = {
name: email.split('@')[0].charAt(0).toUpperCase() + email.split('@')[0].slice(1),
email: email,
balance: 5670000,
totalBids: 15,
wonBids: 7
};
updateUserInterface();
showNotification('Вход выполнен успешно!', 'success');
} else {
alert('Неверный email или пароль слишком короткий (минимум 6 символов)');
}
}
function logoutUser() {
isUserLoggedIn = false;
currentUser = null;
updateUserInterface();
toggleCabinet();
showNotification('Вы вышли из аккаунта', 'info');
}
function showRegistration() {
alert('Функция регистрации будет доступна в следующей версии. Для демонстрации используйте любой email и пароль (мин. 6 символов).');
}
function updateUserInterface() {
const authForm = document.getElementById('authForm');
const userProfile = document.getElementById('userProfile');
const cabinetContent = document.getElementById('cabinetContent');
const loginButton = document.querySelector('.login-button');
if (isUserLoggedIn) {
authForm.style.display = 'none';
userProfile.style.display = 'block';
cabinetContent.style.display = 'block';
// Обновляем данные пользователя
document.getElementById('userName').textContent = `Добро пожаловать, ${currentUser.name}!`;
document.getElementById('userEmail').textContent = currentUser.email;
document.getElementById('userBalance').textContent = `₽${currentUser.balance.toLocaleString()}`;
document.getElementById('totalBids').textContent = currentUser.totalBids;
document.getElementById('wonBids').textContent = currentUser.wonBids;
document.getElementById('profileName').value = currentUser.name;
loginButton.textContent = currentUser.name;
loginButton.style.background = 'linear-gradient(135deg, #28a745, #20c997)';
// Разблокируем ставки
document.querySelectorAll('.lot-card').forEach(card => {
card.classList.remove('user-not-logged');
const overlay = card.querySelector('.login-required-overlay');
if (overlay) overlay.remove();
});
} else {
authForm.style.display = 'block';
userProfile.style.display = 'none';
cabinetContent.style.display = 'none';
loginButton.textContent = 'Личный кабинет';
loginButton.style.background = 'linear-gradient(135deg, #4ecdc4, #44a08d)';
// Блокируем ставки
blockBiddingForNonUsers();
}
}
function blockBiddingForNonUsers() {
document.querySelectorAll('.lot-card').forEach(card => {
card.classList.add('user-not-logged');
// Удаляем старый overlay если есть
const existingOverlay = card.querySelector('.login-required-overlay');
if (existingOverlay) existingOverlay.remove();
// Добавляем новый overlay
const overlay = document.createElement('div');
overlay.className = 'login-required-overlay';
overlay.textContent = 'Войдите для участия в торгах';
overlay.onclick = (e) => {
e.stopPropagation();
toggleCabinet();
};
card.appendChild(overlay);
});
}
function saveProfile() {
if (!isUserLoggedIn) return;
const newName = document.getElementById('profileName').value;
const newPhone = document.getElementById('profilePhone').value;
currentUser.name = newName;
currentUser.phone = newPhone;
document.getElementById('userName').textContent = `Добро пожаловать, ${newName}!`;
document.querySelector('.login-button').textContent = newName;
showNotification('Профиль обновлен!', 'success');
}
function showNotification(message, type) {
const notification = document.createElement('div');
notification.style.cssText = `
position: fixed;
top: 20px;
right: 20px;
padding: 15px 25px;
border-radius: 10px;
color: white;
font-weight: bold;
z-index: 10000;
transition: all 0.3s ease;
max-width: 300px;
`;
const colors = {
success: 'linear-gradient(135deg, #28a745, #20c997)',
error: 'linear-gradient(135deg, #dc3545, #c82333)',
info: 'linear-gradient(135deg, #17a2b8, #138496)'
};
notification.style.background = colors[type] || colors.info;
notification.textContent = message;
document.body.appendChild(notification);
setTimeout(() => {
notification.style.transform = 'translateX(400px)';
notification.style.opacity = '0';
setTimeout(() => document.body.removeChild(notification), 300);
}, 3000);
}
// Анимированный таймер с реальной датой окончания
function updateTimer() {
// Установим дату окончания аукциона (например, через 5 дней от текущего момента)
const now = new Date();
const auctionEnd = new Date();
auctionEnd.setDate(now.getDate() + 5);
auctionEnd.setHours(14, 23, 45, 0); // Устанавливаем время 14:23:45
const distance = auctionEnd - now;
if (distance <= 0) {
// Аукцион завершен
document.getElementById('days').textContent = '00';
document.getElementById('hours').textContent = '00';
document.getElementById('minutes').textContent = '00';
document.getElementById('seconds').textContent = '00';
document.querySelector('.auction-timer h3').textContent = 'Аукцион завершен!';
return;
}
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById('days').textContent = days.toString().padStart(2, '0');
document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');
// Добавляем анимацию при изменении секунд
if (seconds === 59) {
const secondsElement = document.getElementById('seconds');
secondsElement.style.transform = 'scale(1.2)';
setTimeout(() => {
secondsElement.style.transform = 'scale(1)';
}, 300);
}
}
// Запускаем таймер сразу и каждую секунду
updateTimer();
const timerInterval = setInterval(updateTimer, 1000);
// Личный кабинет
function toggleCabinet() {
const cabinet = document.getElementById('personalCabinet');
const overlay = document.querySelector('.cabinet-overlay');
cabinet.classList.toggle('active');
overlay.classList.toggle('active');
}
// Анимация курсора
const cursorFollower = document.getElementById('cursorFollower');
const trails = [];
// Создаем следы за курсором
for (let i = 0; i < 8; i++) {
const trail = document.createElement('div');
trail.className = 'cursor-trail';
document.body.appendChild(trail);
trails.push({
element: trail,
x: 0,
y: 0,
delay: i * 0.05
});
}
let mouseX = 0, mouseY = 0;
document.addEventListener('mousemove', (e) => {
mouseX = e.clientX;
mouseY = e.clientY;
// Основной курсор
cursorFollower.style.left = mouseX - 10 + 'px';
cursorFollower.style.top = mouseY - 10 + 'px';
});
// Анимация следов
function animateTrails() {
trails.forEach((trail, index) => {
const delay = index * 0.1;
const targetX = mouseX - 3;
const targetY = mouseY - 3;
trail.x += (targetX - trail.x) * (0.3 - delay);
trail.y += (targetY - trail.y) * (0.3 - delay);
trail.element.style.left = trail.x + 'px';
trail.element.style.top = trail.y + 'px';
trail.element.style.opacity = 1 - (index * 0.12);
trail.element.style.transform = `scale(${1 - index * 0.1})`;
});
requestAnimationFrame(animateTrails);
}
animateTrails();
// Специальные эффекты при наведении на интерактивные элементы
const interactiveElements = document.querySelectorAll('.cta-button, .bid-button, .lot-card, .login-button');
interactiveElements.forEach(element => {
element.addEventListener('mouseenter', () => {
cursorFollower.style.width = '40px';
cursorFollower.style.height = '40px';
cursorFollower.style.background = 'radial-gradient(circle, rgba(255, 215, 0, 0.6), rgba(255, 215, 0, 0))';
});
element.addEventListener('mouseleave', () => {
cursorFollower.style.width = '20px';
cursorFollower.style.height = '20px';
cursorFollower.style.background = 'radial-gradient(circle, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0))';
});
});
// Плавная прокрутка
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
});
});
// Эффект параллакса для навигации
window.addEventListener('scroll', () => {
const nav = document.querySelector('.nav');
if (window.scrollY > 100) {
nav.style.background = 'rgba(0, 0, 0, 0.95)';
} else {
nav.style.background = 'rgba(0, 0, 0, 0.8)';
}
});
// Анимация появления карточек при скролле
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, observerOptions);
document.querySelectorAll('.lot-card, .feature, .review-card').forEach(el => {
el.style.opacity = '0';
el.style.transform = 'translateY(30px)';
el.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
observer.observe(el);
});
// Интерактивность кнопок ставок
document.querySelectorAll('.bid-button').forEach(button => {
button.addEventListener('click', function(e) {
e.preventDefault();
this.textContent = 'Ставка принята!';
this.style.background = 'linear-gradient(135deg, #28a745, #20c997)';
// Добавляем конфетти эффект
createConfetti(e.target);
setTimeout(() => {
this.textContent = 'Сделать ставку';
this.style.background = 'linear-gradient(135deg, #4ecdc4, #44a08d)';
}, 2000);
});
});
// Функция создания конфетти
function createConfetti(element) {
const rect = element.getBoundingClientRect();
const centerX = rect.left + rect.width / 2;
const centerY = rect.top + rect.height / 2;
for (let i = 0; i < 10; i++) {
const confetti = document.createElement('div');
confetti.style.position = 'fixed';
confetti.style.left = centerX + 'px';
confetti.style.top = centerY + 'px';
confetti.style.width = '6px';
confetti.style.height = '6px';
confetti.style.background = ['#ffd700', '#4ecdc4', '#ff6b35'][Math.floor(Math.random() * 3)];
confetti.style.borderRadius = '50%';
confetti.style.pointerEvents = 'none';
confetti.style.zIndex = '10000';
document.body.appendChild(confetti);
const angle = (Math.PI * 2 * i) / 10;
const velocity = 50 + Math.random() * 50;
const vx = Math.cos(angle) * velocity;
const vy = Math.sin(angle) * velocity;
let x = 0, y = 0;
let opacity = 1;
const animate = () => {
x += vx * 0.02;
y += vy * 0.02 + 0.5; // гравитация
opacity -= 0.02;
confetti.style.transform = `translate(${x}px, ${y}px)`;
confetti.style.opacity = opacity;
if (opacity > 0) {
requestAnimationFrame(animate);
} else {
document.body.removeChild(confetti);
}
};
animate();
}
}
// Закрытие личного кабинета по Escape
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
const cabinet = document.getElementById('personalCabinet');
const overlay = document.querySelector('.cabinet-overlay');
if (cabinet.classList.contains('active')) {
cabinet.classList.remove('active');
overlay.classList.remove('active');
}
}
});
// Дополнительные эффекты для отзывов
document.querySelectorAll('.review-card').forEach(card => {
card.addEventListener('mouseenter', () => {
card.style.transform = 'translateY(-8px) scale(1.02) rotateY(2deg)';
});
card.addEventListener('mouseleave', () => {
card.style.transform = 'translateY(0) scale(1) rotateY(0deg)';
});
});
// Партикл эффект для фона
function createBackgroundParticles() {
const particleCount = 50;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.style.position = 'fixed';
particle.style.width = Math.random() * 4 + 1 + 'px';
particle.style.height = particle.style.width;
particle.style.background = `rgba(${255}, ${215}, ${0}, ${Math.random() * 0.3})`;
particle.style.borderRadius = '50%';
particle.style.pointerEvents = 'none';
particle.style.zIndex = '1';
particle.style.left = Math.random() * window.innerWidth + 'px';
particle.style.top = Math.random() * window.innerHeight + 'px';
document.body.appendChild(particle);
const duration = Math.random() * 3000 + 2000;
const startY = parseFloat(particle.style.top);
const endY = startY - Math.random() * 100 - 50;
const startTime = Date.now();
const animateParticle = () => {
const elapsed = Date.now() - startTime;
const progress = elapsed / duration;
if (progress < 1) {
const currentY = startY + (endY - startY) * progress;
particle.style.top = currentY + 'px';
particle.style.opacity = 1 - progress;
requestAnimationFrame(animateParticle);
} else {
document.body.removeChild(particle);
}
};
setTimeout(() => animateParticle(), Math.random() * 2000);
}
}
// Запуск фоновых частиц каждые 5 секунд
setInterval(createBackgroundParticles, 5000);
createBackgroundParticles();
// Анимация логотипа при клике
document.querySelector('.nav-logo').addEventListener('click', function() {
this.style.transform = 'scale(1.1) rotate(360deg)';
this.style.transition = 'transform 0.5s ease';
setTimeout(() => {
this.style.transform = 'scale(1) rotate(0deg)';
}, 500);
});
// Добавляем пульсацию к активным ставкам в личном кабинете
document.querySelectorAll('.bid-active').forEach(badge => {
badge.style.animation = 'pulse 2s infinite';
});
// CSS анимация для пульсации (добавляется динамически)
const style = document.createElement('style');
style.textContent = `
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
`;
document.head.appendChild(style);<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ArtElite - Аукцион элитных картин</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Georgia', serif;
line-height: 1.6;
background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
color: white;
overflow-x: hidden;
}
.hero {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect width="1200" height="800" fill="%23000"/><circle cx="200" cy="150" r="80" fill="%23ffd700" opacity="0.1"/><circle cx="800" cy="300" r="120" fill="%23ff6b35" opacity="0.1"/><circle cx="1000" cy="600" r="90" fill="%234ecdc4" opacity="0.1"/></svg>');
background-size: cover;
background-position: center;
position: relative;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg,
rgba(255, 215, 0, 0.1) 0%,
rgba(255, 107, 53, 0.1) 35%,
rgba(78, 205, 196, 0.1) 100%);
animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
0%, 100% { opacity: 0.1; }
50% { opacity: 0.3; }
}
.hero-content {
text-align: center;
z-index: 2;
position: relative;
animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.logo {
font-size: 3.5rem;
font-weight: bold;
background: linear-gradient(135deg, #ffd700, #ff6b35, #4ecdc4);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 1rem;
animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
0%, 100% { filter: brightness(1); }
50% { filter: brightness(1.3); }
}
.hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.hero p {
font-size: 1.3rem;
margin-bottom: 2rem;
opacity: 0.9;
}
.cta-button {
display: inline-block;
padding: 15px 40px;
background: linear-gradient(135deg, #ffd700, #ff6b35);
color: white;
text-decoration: none;
border-radius: 50px;
font-size: 1.1rem;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
text-transform: uppercase;
letter-spacing: 1px;
}
.cta-button:hover {
transform: translateY(-3px);
box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
background: linear-gradient(135deg, #ff6b35, #ffd700);
}
.auction-timer {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 2rem;
border-radius: 20px;
margin-top: 3rem;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.timer-display {
display: flex;
justify-content: center;
gap: 2rem;
margin-top: 1rem;
}
.time-unit {
text-align: center;
background: rgba(0, 0, 0, 0.3);
padding: 1rem;
border-radius: 10px;
min-width: 80px;
}
.time-number {
font-size: 2rem;
font-weight: bold;
color: #ffd700;
display: block;
}
.time-label {
font-size: 0.9rem;
opacity: 0.8;
text-transform: uppercase;
}
.featured-lots {
padding: 5rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
background: linear-gradient(135deg, #ffd700, #4ecdc4);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.lots-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.lot-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 20px;
overflow: hidden;
transition: all 0.5s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
cursor: pointer;
}
.lot-card:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
border-color: rgba(255, 215, 0, 0.5);
}
.lot-image {
height: 250px;
background: linear-gradient(45deg, #ffd700, #ff6b35, #4ecdc4);
position: relative;
overflow: hidden;
}
.lot-image::before {
content: '🎨';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 4rem;
opacity: 0.7;
}
.lot-info {
padding: 1.5rem;
}
.lot-title {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: #ffd700;
}
.lot-artist {
opacity: 0.8;
margin-bottom: 1rem;
}
.lot-price {
font-size: 1.5rem;
font-weight: bold;
color: #4ecdc4;
margin-bottom: 1rem;
}
.bid-button {
width: 100%;
padding: 12px;
background: linear-gradient(135deg, #4ecdc4, #44a08d);
border: none;
border-radius: 10px;
color: white;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
}
.bid-button:hover {
background: linear-gradient(135deg, #44a08d, #4ecdc4);
transform: translateY(-2px);
}
.about-section {
background: rgba(255, 255, 255, 0.05);
padding: 5rem 2rem;
text-align: center;
}
.about-content {
max-width: 800px;
margin: 0 auto;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.feature {
padding: 2rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.1);
}
.feature-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.footer {
text-align: center;
padding: 3rem 2rem;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.floating-elements {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.floating-art {
position: absolute;
font-size: 2rem;
opacity: 0.1;
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(5deg); }
}
.nav {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 1rem 2rem;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
z-index: 100;
transition: all 0.3s ease;
}
.nav-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.nav-logo {
font-size: 1.5rem;
font-weight: bold;
color: #ffd700;
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-links a {
color: white;
text-decoration: none;
transition: color 0.3s ease;
}
.nav-links a:hover {
color: #ffd700;
}
.login-button {
background: linear-gradient(135deg, #4ecdc4, #44a08d);
color: white;
padding: 8px 20px;
border: none;
border-radius: 25px;
text-decoration: none;
font-size: 0.9rem;
font-weight: bold;
transition: all 0.3s ease;
cursor: pointer;
}
.login-button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}
.reviews-section {
padding: 5rem 2rem;
background: rgba(255, 255, 255, 0.02);
}
.reviews-content {
max-width: 1200px;
margin: 0 auto;
}
.reviews-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.review-card {
background: rgba(255, 255, 255, 0.08);
padding: 2rem;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(15px);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}
.review-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
transform: rotate(45deg);
transition: all 0.5s ease;
opacity: 0;
}
.review-card:hover::before {
opacity: 1;
animation: shimmerEffect 1s ease-in-out;
}
@keyframes shimmerEffect {
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.review-card:hover {
transform: translateY(-8px) scale(1.02);
border-color: rgba(255, 215, 0, 0.3);
box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}
.review-header {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
position: relative;
z-index: 2;
}
.reviewer-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #ffd700, #ff6b35);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
margin-right: 1rem;
position: relative;
overflow: hidden;
}
.reviewer-avatar::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: avatarShine 3s ease-in-out infinite;
}
@keyframes avatarShine {
0%, 100% { transform: translateX(-100%); }
50% { transform: translateX(100%); }
}
.reviewer-info h4 {
color: #ffd700;
margin-bottom: 0.3rem;
font-size: 1.1rem;
}
.reviewer-info p {
opacity: 0.7;
font-size: 0.9rem;
}
.stars {
color: #ffd700;
font-size: 1.2rem;
margin-bottom: 1rem;
position: relative;
z-index: 2;
}
.review-text {
line-height: 1.6;
opacity: 0.9;
font-style: italic;
position: relative;
z-index: 2;
}
.review-text::before {
content: '"';
font-size: 3rem;
color: #ffd700;
opacity: 0.3;
position: absolute;
top: -10px;
left: -10px;
}
.personal-cabinet {
position: fixed;
top: 0;
right: -400px;
width: 400px;
height: 100vh;
background: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(20px);
border-left: 1px solid rgba(255, 215, 0, 0.3);
transition: all 0.4s ease;
z-index: 1000;
overflow-y: auto;
}
.personal-cabinet.active {
right: 0;
}
.cabinet-header {
padding: 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(78, 205, 196, 0.1));
}
.cabinet-close {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.cabinet-close:hover {
background: rgba(255, 255, 255, 0.1);
transform: rotate(90deg);
}
.user-profile {
text-align: center;
}
.user-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
background: linear-gradient(135deg, #ffd700, #4ecdc4);
margin: 0 auto 1rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
}
.cabinet-content {
padding: 2rem;
}
.cabinet-section {
margin-bottom: 2rem;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.cabinet-section h3 {
color: #ffd700;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.my-bids {
list-style: none;
}
.bid-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.8rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bid-item:last-child {
border-bottom: none;
}
.bid-status {
padding: 0.3rem 0.8rem;
border-radius: 15px;
font-size: 0.8rem;
font-weight: bold;
}
.bid-active {
background: rgba(78, 205, 196, 0.3);
color: #4ecdc4;
}
.bid-won {
background: rgba(255, 215, 0, 0.3);
color: #ffd700;
}
.cursor-follower {
position: fixed;
width: 20px;
height: 20px;
border-radius: 50%;
background: radial-gradient(circle, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0));
pointer-events: none;
z-index: 9999;
transition: all 0.1s ease;
mix-blend-mode: screen;
}
.cursor-trail {
position: fixed;
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(78, 205, 196, 0.6);
pointer-events: none;
z-index: 9998;
transition: all 0.3s ease;
}
.cabinet-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transition: all 0.4s ease;
z-index: 999;
}
.cabinet-overlay.active {
opacity: 1;
visibility: visible;
}
.auth-form {
background: rgba(255, 255, 255, 0.1);
padding: 2rem;
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
text-align: center;
}
.form-group {
margin-bottom: 1.5rem;
text-align: left;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #ffd700;
font-weight: bold;
}
.form-group input {
width: 100%;
padding: 12px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
color: white;
font-size: 1rem;
transition: all 0.3s ease;
}
.form-group input:focus {
outline: none;
border-color: #ffd700;
box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.form-group input::placeholder {
color: rgba(255, 255, 255, 0.6);
}
.auth-buttons {
display: flex;
gap: 1rem;
margin-top: 2rem;
}
.auth-button {
flex: 1;
padding: 12px;
border: none;
border-radius: 8px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
}
.auth-button.primary {
background: linear-gradient(135deg, #ffd700, #ff6b35);
color: white;
}
.auth-button.secondary {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
}
.auth-button:hover {
transform: translateY(-2px);
}
.user-not-logged {
opacity: 0.6;
pointer-events: none;
position: relative;
}
.login-required-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(255, 215, 0, 0.9);
color: black;
padding: 10px 20px;
border-radius: 25px;
font-weight: bold;
z-index: 10;
white-space: nowrap;
}
.parallax-bg {
position: fixed;
top: 0;
left: 0;
width: 120%;
height: 120%;
background-image:
url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="painting1" patternUnits="userSpaceOnUse" width="300" height="200"><rect width="300" height="200" fill="%23654321"/><rect x="20" y="20" width="260" height="160" fill="%23f4e4bc" stroke="%23b8860b" stroke-width="8"/><circle cx="80" cy="80" r="30" fill="%23ff6b47" opacity="0.8"/><circle cx="220" cy="120" r="25" fill="%234ecdc4" opacity="0.8"/><path d="M50 150 Q150 100 250 150" stroke="%238B4513" stroke-width="4" fill="none"/></pattern><pattern id="painting2" patternUnits="userSpaceOnUse" width="250" height="300"><rect width="250" height="300" fill="%232F4F2F"/><rect x="15" y="15" width="220" height="270" fill="%23f5f5dc" stroke="%23daa520" stroke-width="6"/><ellipse cx="125" cy="100" rx="80" ry="60" fill="%2387ceeb" opacity="0.7"/><rect x="50" y="180" width="150" height="80" fill="%2332cd32" opacity="0.6"/><circle cx="125" cy="80" r="40" fill="%23ffd700" opacity="0.8"/></pattern></defs><rect width="1200" height="800" fill="url(%23painting1)" opacity="0.15"/><rect x="600" y="200" width="600" height="600" fill="url(%23painting2)" opacity="0.12"/></svg>');
background-size: 400px 300px, 350px 400px;
background-repeat: repeat;
z-index: -1;
will-change: transform;
}
@media (max-width: 768px) {
.hero h1 { font-size: 2rem; }
.logo { font-size: 2.5rem; }
.timer-display { flex-wrap: wrap; gap: 1rem; }
.nav-links { display: none; }
.lots-grid { grid-template-columns: 1fr; }
.reviews-grid { grid-template-columns: 1fr; }
.personal-cabinet { width: 100%; right: -100%; }
.timer-display { justify-content: center; }
}
</style>
</head>
<body>
<!-- Параллакс фон -->
<div class="parallax-bg" id="parallaxBg"></div>
<div class="floating-elements">
<div class="floating-art" style="top: 10%; left: 10%; animation-delay: 0s;">🖼️</div>
<div class="floating-art" style="top: 20%; right: 15%; animation-delay: 2s;">🎨</div>
<div class="floating-art" style="bottom: 30%; left: 20%; animation-delay: 4s;">✨</div>
<div class="floating-art" style="bottom: 20%; right: 10%; animation-delay: 1s;">🖌️</div>
</div>
<nav class="nav">
<div class="nav-content">
<div class="nav-logo">ArtElite</div>
<div style="display: flex; align-items: center; gap: 2rem;">
<ul class="nav-links">
<li><a href="#lots">Лоты</a></li>
<li><a href="#reviews">Отзывы</a></li>
<li><a href="#about">О нас</a></li>
<li><a href="#contact">Контакты</a></li>
</ul>
<button class="login-button" onclick="toggleCabinet()">Личный кабинет</button>
</div>
</div>
</nav>
<section class="hero">
<div class="hero-content">
<div class="logo">ArtElite</div>
<h1>Эксклюзивный аукцион картин</h1>
<p>Откройте для себя шедевры мирового искусства</p>
<a href="#lots" class="cta-button">Смотреть лоты</a>
<div class="auction-timer">
<h3>До окончания аукциона:</h3>
<div class="timer-display">
<div class="time-unit">
<span class="time-number" id="days">05</span>
<span class="time-label">дней</span>
</div>
<div class="time-unit">
<span class="time-number" id="hours">14</span>
<span class="time-label">часов</span>
</div>
<div class="time-unit">
<span class="time-number" id="minutes">23</span>
<span class="time-label">минут</span>
</div>
<div class="time-unit">
<span class="time-number" id="seconds">45</span>
<span class="time-label">секунд</span>
</div>
</div>
</div>
</div>
</section>
<section class="featured-lots" id="lots">
<h2 class="section-title">Премиальные лоты</h2>
<div class="lots-grid">
<div class="lot-card">
<div class="lot-image"></div>
<div class="lot-info">
<h3 class="lot-title">"Закат над морем"</h3>
<p class="lot-artist">Иван Айвазовский</p>
<div class="lot-price">₽2,500,000</div>
<button class="bid-button">Сделать ставку</button>
</div>
</div>
<div class="lot-card">
<div class="lot-image"></div>
<div class="lot-info">
<h3 class="lot-title">"Портрет неизвестной"</h3>
<p class="lot-artist">Иван Крамской</p>
<div class="lot-price">₽1,800,000</div>
<button class="bid-button">Сделать ставку</button>
</div>
</div>
<div class="lot-card">
<div class="lot-image"></div>
<div class="lot-info">
<h3 class="lot-title">"Московский дворик"</h3>
<p class="lot-artist">Василий Поленов</p>
<div class="lot-price">₽3,200,000</div>
<button class="bid-button">Сделать ставку</button>
</div>
</div>
</div>
</section>
<section class="reviews-section" id="reviews">
<div class="reviews-content">
<h2 class="section-title">Отзывы наших клиентов</h2>
<div class="reviews-grid">
<div class="review-card">
<div class="review-header">
<div class="reviewer-avatar">👨</div>
<div class="reviewer-info">
<h4>Александр Петров</h4>
<p>Коллекционер, Москва</p>
</div>
</div>
<div class="stars">★★★★★</div>
<div class="review-text">
Потрясающий сервис! Приобрел картину Левитана через ArtElite. Все прошло идеально - от экспертизы до доставки. Профессионалы своего дела!
</div>
</div>
<div class="review-card">
<div class="review-header">
<div class="reviewer-avatar">👩</div>
<div class="reviewer-info">
<h4>Екатерина Смирнова</h4>
<p>Искусствовед, СПб</p>
</div>
</div>
<div class="stars">★★★★★</div>
<div class="review-text">
Участвую в аукционах ArtElite уже третий год. Всегда качественные лоты, честная атрибуция и справедливые цены. Рекомендую всем коллегам!
</div>
</div>
<div class="review-card">
<div class="review-header">
<div class="reviewer-avatar">👨💼</div>
<div class="reviewer-info">
<h4>Дмитрий Козлов</h4>
<p>Инвестор, Новосибирск</p>
</div>
</div>
<div class="stars">★★★★★</div>
<div class="review-text">
Отличная инвестиционная площадка! За два года мои вложения в искусство через ArtElite показали доходность 40%. Команда профессионалов!
</div>
</div>
<div class="review-card">
<div class="review-header">
<div class="reviewer-avatar">👩🎨</div>
<div class="reviewer-info">
<h4>Мария Васильева</h4>
<p>Галерист, Екатеринбург</p>
</div>
</div>
<div class="stars">★★★★★</div>
<div class="review-text">
Современный подход к аукционам! Удобная платформа, прозрачная система торгов. Приобрела несколько работ для своей галереи. Очень довольна!
</div>
</div>
<div class="review-card">
<div class="review-header">
<div class="reviewer-avatar">👨🏫</div>
<div class="reviewer-info">
<h4>Игорь Федоров</h4>
<p>Преподаватель, МГУ</p>
</div>
</div>
<div class="stars">★★★★★</div>
<div class="review-text">
Как преподаватель истории искусств, ценю качество экспертизы ArtElite. Каталоги составлены на высочайшем уровне. Настоящие профессионалы!
</div>
</div>
<div class="review-card">
<div class="review-header">
<div class="reviewer-avatar">👩💻</div>
<div class="reviewer-info">
<h4>Анна Королева</h4>
<p>IT-директор, Казань</p>
</div>
</div>
<div class="stars">★★★★★</div>
<div class="review-text">
Впечатляет техническая сторона! Удобный интерфейс, быстрые торги онлайн, отличная поддержка. Современные технологии на службе искусства!
</div>
</div>
</div>
</div>
</section>
<section class="about-section" id="about">
<div class="about-content">
<h2 class="section-title">Почему выбирают нас</h2>
<p>ArtElite — ведущий аукционный дом России, специализирующийся на продаже произведений искусства высочайшего качества. Мы гарантируем подлинность каждого лота и предоставляем экспертную оценку.</p>
<div class="features">
<div class="feature">
<div class="feature-icon">🏆</div>
<h3>Экспертиза</h3>
<p>Команда ведущих искусствоведов и оценщиков</p>
</div>
<div class="feature">
<div class="feature-icon">🔒</div>
<h3>Безопасность</h3>
<p>Гарантия подлинности и защищенные транзакции</p>
</div>
<div class="feature">
<div class="feature-icon">🌍</div>
<h3>География</h3>
<p>Международные связи и доставка по всему миру</p>
</div>
</div>
</div>
</section>
<footer class="footer" id="contact">
<h3>Свяжитесь с нами</h3>
<p>Телефон: +7 (495) 123-45-67 | Email: info@artelite.ru</p>
<p>© 2025 ArtElite. Все права защищены.</p>
</footer>
<!-- Личный кабинет -->
<div class="cabinet-overlay" onclick="toggleCabinet()"></div>
<div class="personal-cabinet" id="personalCabinet">
<!-- Форма входа (показывается когда пользователь не авторизован) -->
<div id="authForm" class="cabinet-header">
<button class="cabinet-close" onclick="toggleCabinet()">×</button>
<div class="auth-form">
<h3 style="margin-bottom: 2rem; color: #ffd700;">Вход в аккаунт</h3>
<div class="form-group">
<label>Email:</label>
<input type="email" id="loginEmail" placeholder="Введите ваш email">
</div>
<div class="form-group">
<label>Пароль:</label>
<input type="password" id="loginPassword" placeholder="Введите пароль">
</div>
<div class="auth-buttons">
<button class="auth-button primary" onclick="loginUser()">Войти</button>
<button class="auth-button secondary" onclick="showRegistration()">Регистрация</button>
</div>
</div>
</div>
<!-- Профиль пользователя (показывается после входа) -->
<div id="userProfile" class="cabinet-header" style="display: none;">
<button class="cabinet-close" onclick="toggleCabinet()">×</button>
<div class="user-profile">
<div class="user-avatar">👤</div>
<h3 id="userName">Добро пожаловать!</h3>
<p id="userEmail">user@example.com</p>
<button onclick="logoutUser()" style="margin-top: 1rem; padding: 8px 16px; background: rgba(255,255,255,0.1); border: none; border-radius: 5px; color: white; cursor: pointer;">Выйти</button>
</div>
</div>
<div class="cabinet-content" id="cabinetContent" style="display: none;">
<div class="cabinet-section">
<h3>📊 Мои ставки</h3>
<ul class="my-bids">
<li class="bid-item">
<div>
<strong>"Закат над морем"</strong><br>
<small>Ставка: ₽2,600,000</small>
</div>
<span class="bid-status bid-active">Активна</span>
</li>
<li class="bid-item">
<div>
<strong>"Зимний лес"</strong><br>
<small>Ставка: ₽890,000</small>
</div>
<span class="bid-status bid-won">Выиграна</span>
</li>
<li class="bid-item">
<div>
<strong>"Портрет неизвестной"</strong><br>
<small>Ставка: ₽1,900,000</small>
</div>
<span class="bid-status bid-active">Активна</span>
</li>
</ul>
</div>
<div class="cabinet-section">
<h3>💰 Баланс счета</h3>
<div style="font-size: 1.5rem; color: #4ecdc4; font-weight: bold;" id="userBalance">₽5,670,000</div>
<button style="margin-top: 1rem; width: 100%; padding: 10px; background: linear-gradient(135deg, #ffd700, #ff6b35); border: none; border-radius: 10px; color: white; font-weight: bold; cursor: pointer;">
Пополнить счет
</button>
</div>
<div class="cabinet-section">
<h3>📈 Статистика</h3>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center;">
<div>
<div style="font-size: 1.5rem; color: #ffd700; font-weight: bold;" id="totalBids">15</div>
<small>Участий в торгах</small>
</div>
<div>
<div style="font-size: 1.5rem; color: #4ecdc4; font-weight: bold;" id="wonBids">7</div>
<small>Выигранных лотов</small>
</div>
</div>
</div>
<div class="cabinet-section">
<h3>🛒 История покупок</h3>
<div id="purchaseHistory">
<div style="padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);">
<strong>"Березовая роща"</strong> - И.И. Левитан<br>
<small style="color: #4ecdc4;">Куплена 15.03.2024 за ₽1,200,000</small>
</div>
<div style="padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);">
<strong>"Лунная ночь"</strong> - А.И. Куинджи<br>
<small style="color: #4ecdc4;">Куплена 08.02.2024 за ₽2,800,000</small>
</div>
</div>
</div>
<div class="cabinet-section">
<h3>🔔 Уведомления</h3>
<div id="notifications">
<div style="padding: 0.8rem; background: rgba(255,215,0,0.1); border-radius: 8px; margin-bottom: 0.5rem; border-left: 3px solid #ffd700;">
<strong>Новый лот:</strong> "Золотая осень" добавлен в каталог
</div>
<div style="padding: 0.8rem; background: rgba(78,205,196,0.1); border-radius: 8px; margin-bottom: 0.5rem; border-left: 3px solid #4ecdc4;">
<strong>Ставка принята:</strong> Ваша ставка на "Закат над морем" активна
</div>
</div>
</div>
<div class="cabinet-section">
<h3>⚙️ Настройки профиля</h3>
<div style="display: flex; flex-direction: column; gap: 1rem;">
<div class="form-group">
<label>Имя:</label>
<input type="text" id="profileName" value="Александр Петров" style="width: 100%; padding: 8px; border: 1px solid rgba(255,255,255,0.3); border-radius: 5px; background: rgba(255,255,255,0.1); color: white;">
</div>
<div class="form-group">
<label>Телефон:</label>
<input type="tel" id="profilePhone" value="+7 (900) 123-45-67" style="width: 100%; padding: 8px; border: 1px solid rgba(255,255,255,0.3); border-radius: 5px; background: rgba(255,255,255,0.1); color: white;">
</div>
<label style="display: flex; align-items: center; gap: 0.5rem; cursor: pointer;">
<input type="checkbox" checked style="accent-color: #ffd700;">
Уведомления о новых лотах
</label>
<label style="display: flex; align-items: center; gap: 0.5rem; cursor: pointer;">
<input type="checkbox" checked style="accent-color: #ffd700;">
SMS о статусе ставок
</label>
<button onclick="saveProfile()" style="padding: 10px; background: linear-gradient(135deg, #4ecdc4, #44a08d); border: none; border-radius: 8px; color: white; font-weight: bold; cursor: pointer;">
Сохранить изменения
</button>
</div>
</div>
</div>
</div>
<!-- Анимация курсора -->
<div class="cursor-follower" id="cursorFollower"></div>
<script>
// Анимированный таймер
function updateTimer() {
const now = new Date().getTime();
const auctionEnd = new Date(now + 5*24*60*60*1000 + 14*60*60*1000 + 23*60*1000 + 45*1000).getTime();
const distance = auctionEnd - now;
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById('days').textContent = days.toString().padStart(2, '0');
document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');
}
setInterval(updateTimer, 1000);
updateTimer();
// Плавная прокрутка
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
});
});
// Эффект параллакса для навигации
window.addEventListener('scroll', () => {
const nav = document.querySelector('.nav');
if (window.scrollY > 100) {
nav.style.background = 'rgba(0, 0, 0, 0.95)';
} else {
nav.style.background = 'rgba(0, 0, 0, 0.8)';
}
});
// Анимация появления карточек при скролле
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, observerOptions);
document.querySelectorAll('.lot-card, .feature').forEach(el => {
el.style.opacity = '0';
el.style.transform = 'translateY(30px)';
el.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
observer.observe(el);
});
// Интерактивность кнопок ставок
document.querySelectorAll('.bid-button').forEach(button => {
button.addEventListener('click', function(e) {
e.preventDefault();
this.textContent = 'Ставка принята!';
this.style.background = 'linear-gradient(135deg, #28a745, #20c997)';
setTimeout(() => {
this.textContent = 'Сделать ставку';
this.style.background = 'linear-gradient(135deg, #4ecdc4, #44a08d)';
}, 2000);
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Stovgen/auction" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>
<script>