Download Test.html from Pritfort1/README: direct link, hf CLI and curl.
- Browser
- Download file 63.8 kB
-
https://huggingface.co/spaces/Pritfort1/README/resolve/main/Test.html
- Command line
-
hf download hf://spaces/Pritfort1/README/Test.html
-
curl -L -o Test.html https://huggingface.co/spaces/Pritfort1/README/resolve/main/Test.html
63.8 kB
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ArtSpace - Платформа для художников</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--secondary: #8b5cf6;
--accent: #ec4899;
--dark: #1e293b;
--light: #f8fafc;
--gray: #94a3b8;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
}
body {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: var(--light);
min-height: 100vh;
overflow-x: hidden;
}
/* Современное главное меню */
.navbar {
background: rgba(30, 41, 59, 0.95);
backdrop-filter: blur(20px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
padding: 0 5%;
height: 80px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
font-size: 2rem;
font-weight: 800;
background: linear-gradient(45deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.5px;
text-decoration: none;
}
.nav-links {
display: flex;
gap: 10px;
}
.nav-link {
text-decoration: none;
color: var(--gray);
font-weight: 600;
padding: 12px 20px;
border-radius: 12px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
font-size: 0.95rem;
letter-spacing: 0.3px;
display: flex;
align-items: center;
gap: 8px;
}
.nav-link:hover {
color: white;
background: rgba(99, 102, 241, 0.1);
}
.nav-link.active {
color: white;
background: linear-gradient(45deg, var(--primary), var(--secondary));
}
.cart-trigger {
position: relative;
background: rgba(99, 102, 241, 0.1);
border: 1px solid rgba(99, 102, 241, 0.3);
border-radius: 12px;
padding: 12px 20px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
gap: 10px;
}
.cart-trigger:hover {
background: rgba(99, 102, 241, 0.2);
transform: translateY(-2px);
}
.cart-count {
background: var(--accent);
color: white;
border-radius: 50%;
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: bold;
}
/* Главная страница */
.hero {
padding: 120px 5% 80px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
z-index: -1;
}
.hero h1 {
font-size: 4rem;
font-weight: 800;
margin-bottom: 25px;
background: linear-gradient(45deg, #fff, var(--primary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1.1;
}
.hero p {
font-size: 1.3rem;
max-width: 750px;
margin: 0 auto 40px;
color: var(--gray);
line-height: 1.7;
}
.hero-buttons {
display: flex;
gap: 20px;
justify-content: center;
margin-top: 30px;
}
.btn {
padding: 16px 35px;
border-radius: 16px;
font-weight: 600;
font-size: 1.1rem;
text-decoration: none;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border: none;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 10px;
}
.btn-primary {
background: linear-gradient(45deg, var(--primary), var(--secondary));
color: white;
box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}
.btn-outline {
background: transparent;
color: var(--primary);
border: 2px solid var(--primary);
}
.btn-outline:hover {
background: rgba(99, 102, 241, 0.1);
transform: translateY(-3px);
}
/* Описание галереи */
.gallery-description {
padding: 80px 5%;
max-width: 1200px;
margin: 0 auto;
text-align: center;
}
.section-title {
font-size: 3rem;
font-weight: 800;
margin-bottom: 30px;
background: linear-gradient(45deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.section-subtitle {
font-size: 1.4rem;
color: var(--gray);
max-width: 800px;
margin: 0 auto 50px;
line-height: 1.7;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 50px;
}
.feature-card {
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 40px 30px;
text-align: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
.feature-card:hover {
transform: translateY(-10px);
border-color: rgba(99, 102, 241, 0.3);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.feature-icon {
width: 80px;
height: 80px;
background: linear-gradient(45deg, var(--primary), var(--secondary));
border-radius: 25px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 25px;
font-size: 2rem;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 20px;
color: white;
}
.feature-card p {
color: var(--gray);
line-height: 1.7;
}
/* Блог */
.blog-section {
padding: 80px 5%;
max-width: 1200px;
margin: 0 auto;
display: none;
}
.upload-form {
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 25px;
padding: 50px;
margin-bottom: 60px;
backdrop-filter: blur(10px);
}
.form-title {
font-size: 2.2rem;
margin-bottom: 35px;
text-align: center;
color: white;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-bottom: 30px;
}
.form-group {
margin-bottom: 25px;
}
.form-group.full {
grid-column: 1 / -1;
}
.form-group label {
display: block;
margin-bottom: 12px;
font-weight: 600;
color: var(--gray);
}
.form-control {
width: 100%;
padding: 18px 20px;
background: rgba(15, 23, 42, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 15px;
color: white;
font-size: 1rem;
transition: all 0.3s ease;
}
.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.price-options {
display: flex;
gap: 20px;
margin-top: 15px;
}
.price-option {
flex: 1;
}
.radio-group {
display: flex;
gap: 15px;
align-items: center;
}
.radio-item {
display: flex;
align-items: center;
gap: 10px;
}
.radio-item input[type="radio"] {
width: 20px;
height: 20px;
accent-color: var(--primary);
}
.posts-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 35px;
margin-top: 50px;
}
.post-card {
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
position: relative;
}
.post-card:hover {
transform: translateY(-10px) rotate(1deg);
border-color: rgba(99, 102, 241, 0.3);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
.post-image {
width: 100%;
height: 280px;
object-fit: cover;
transition: transform 0.4s ease;
}
.post-card:hover .post-image {
transform: scale(1.05);
}
.post-badge {
position: absolute;
top: 20px;
right: 20px;
padding: 8px 16px;
border-radius: 20px;
font-weight: 700;
font-size: 0.85rem;
z-index: 2;
}
.badge-free {
background: var(--success);
color: white;
}
.badge-paid {
background: var(--accent);
color: white;
}
.post-content {
padding: 25px;
}
.post-title {
font-size: 1.4rem;
margin-bottom: 12px;
color: white;
}
.post-author {
color: var(--primary);
font-weight: 600;
margin-bottom: 15px;
display: block;
font-size: 0.95rem;
}
.post-description {
color: var(--gray);
margin-bottom: 20px;
line-height: 1.6;
font-size: 0.95rem;
}
.post-price {
font-weight: 700;
font-size: 1.3rem;
margin-bottom: 20px;
}
.action-button {
width: 100%;
background: linear-gradient(45deg, var(--primary), var(--secondary));
color: white;
border: none;
padding: 15px;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1rem;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.action-button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}
/* Галерея */
.gallery-section {
padding: 80px 5%;
max-width: 1400px;
margin: 0 auto;
display: none;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 25px;
margin-top: 50px;
}
.gallery-item {
position: relative;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
aspect-ratio: 1/1;
}
.gallery-item:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}
.gallery-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-image {
transform: scale(1.1);
}
.gallery-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
color: white;
padding: 25px 20px 20px;
transform: translateY(100%);
transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
transform: translateY(0);
}
.gallery-overlay h4 {
font-size: 1.2rem;
margin-bottom: 8px;
}
.gallery-overlay p {
font-size: 0.9rem;
opacity: 0.8;
}
/* Помощь */
.help-section {
padding: 80px 5%;
max-width: 900px;
margin: 0 auto;
display: none;
}
.contact-cards {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-bottom: 50px;
}
.contact-card {
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 40px 30px;
text-align: center;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.contact-card:hover {
transform: translateY(-5px);
border-color: rgba(99, 102, 241, 0.3);
}
.contact-icon {
width: 70px;
height: 70px;
background: linear-gradient(45deg, var(--primary), var(--secondary));
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 25px;
font-size: 1.8rem;
}
.contact-card h3 {
font-size: 1.4rem;
margin-bottom: 15px;
color: white;
}
.contact-card p {
color: var(--gray);
line-height: 1.6;
}
.help-form {
background: rgba(30, 41, 59, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 25px;
padding: 50px;
backdrop-filter: blur(10px);
}
/* Модальное окно поста */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
display: none;
align-items: center;
justify-content: center;
z-index: 2000;
padding: 20px;
}
.modal.active {
display: flex;
}
.modal-content {
background: rgba(30, 41, 59, 0.95);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 25px;
width: 90%;
max-width: 800px;
max-height: 90vh;
overflow-y: auto;
position: relative;
backdrop-filter: blur(20px);
}
.modal-close {
position: absolute;
top: 20px;
right: 20px;
background: none;
border: none;
color: var(--gray);
font-size: 2rem;
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.modal-close:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}
.modal-image {
width: 100%;
height: 400px;
object-fit: cover;
border-radius: 25px 25px 0 0;
}
.modal-body {
padding: 40px;
}
.modal-title {
font-size: 2rem;
margin-bottom: 15px;
color: white;
}
.modal-author {
color: var(--primary);
font-weight: 600;
margin-bottom: 20px;
display: block;
font-size: 1.1rem;
}
.modal-description {
color: var(--gray);
margin-bottom: 30px;
line-height: 1.7;
font-size: 1.1rem;
}
.modal-price {
font-weight: 700;
font-size: 1.8rem;
margin-bottom: 30px;
}
.price-free {
color: var(--success);
}
.price-paid {
color: var(--accent);
}
.modal-action {
width: 100%;
padding: 18px;
border-radius: 15px;
font-weight: 600;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
border: none;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 15px;
}
.download-btn {
background: linear-gradient(45deg, var(--success), #059669);
color: white;
}
.buy-btn {
background: linear-gradient(45deg, var(--accent), #db2777);
color: white;
}
.order-btn {
background: linear-gradient(45deg, var(--primary), var(--secondary));
color: white;
}
.modal-action:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
/* Корзина */
.cart-sidebar {
position: fixed;
top: 0;
right: -450px;
width: 400px;
height: 100vh;
background: rgba(30, 41, 59, 0.95);
border-left: 1px solid rgba(255, 255, 255, 0.1);
transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1500;
padding: 30px;
overflow-y: auto;
backdrop-filter: blur(20px);
}
.cart-sidebar.active {
right: 0;
}
.cart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cart-header h3 {
font-size: 1.8rem;
color: white;
}
.close-cart {
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: var(--gray);
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.close-cart:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}
.cart-items {
margin-bottom: 30px;
}
.cart-item {
display: flex;
gap: 15px;
padding: 20px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cart-item:last-child {
border-bottom: none;
}
.cart-item-image {
width: 80px;
height: 80px;
object-fit: cover;
border-radius: 12px;
}
.cart-item-details {
flex: 1;
}
.cart-item-title {
font-weight: 600;
margin-bottom: 8px;
color: white;
}
.cart-item-author {
color: var(--primary);
font-size: 0.9rem;
margin-bottom: 10px;
}
.cart-item-price {
color: var(--accent);
font-weight: 700;
}
.remove-item {
background: none;
border: none;
color: var(--danger);
cursor: pointer;
font-size: 1.2rem;
width: 35px;
height: 35px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.remove-item:hover {
background: rgba(239, 68, 68, 0.1);
}
.cart-total {
font-size: 1.5rem;
font-weight: 700;
text-align: center;
margin: 25px 0;
color: white;
}
.checkout-button {
width: 100%;
background: linear-gradient(45deg, var(--success), #059669);
color: white;
border: none;
padding: 18px;
border-radius: 15px;
font-weight: 600;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.checkout-button:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}
/* Оформление заказа */
.checkout-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
display: none;
align-items: center;
justify-content: center;
z-index: 2500;
padding: 20px;
}
.checkout-modal.active {
display: flex;
}
.checkout-content {
background: rgba(30, 41, 59, 0.95);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 25px;
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
position: relative;
backdrop-filter: blur(20px);
padding: 40px;
}
.checkout-title {
font-size: 2rem;
margin-bottom: 30px;
text-align: center;
color: white;
}
.checkout-items {
margin-bottom: 30px;
}
.checkout-item {
display: flex;
justify-content: space-between;
padding: 15px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.checkout-item:last-child {
border-bottom: none;
}
.checkout-item-info {
color: var(--gray);
}
.checkout-item-price {
color: white;
font-weight: 600;
}
.checkout-total {
display: flex;
justify-content: space-between;
font-size: 1.3rem;
font-weight: 700;
margin: 25px 0;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.checkout-total-label {
color: var(--gray);
}
.checkout-total-value {
color: white;
}
.form-group-checkout {
margin-bottom: 20px;
}
.form-group-checkout label {
display: block;
margin-bottom: 10px;
color: var(--gray);
font-weight: 600;
}
.checkout-actions {
display: flex;
gap: 15px;
margin-top: 30px;
}
.cancel-checkout {
flex: 1;
background: rgba(255, 255, 255, 0.1);
color: white;
border: none;
padding: 15px;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.cancel-checkout:hover {
background: rgba(255, 255, 255, 0.2);
}
.confirm-checkout {
flex: 2;
background: linear-gradient(45deg, var(--success), #059669);
color: white;
border: none;
padding: 15px;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.confirm-checkout:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 1400;
display: none;
}
.overlay.active {
display: block;
}
/* Футер */
footer {
background: rgba(15, 23, 42, 0.8);
border-top: 1px solid rgba(255, 255, 255, 0.05);
text-align: center;
padding: 60px 20px 40px;
margin-top: 100px;
}
.footer-logo {
font-size: 2.5rem;
font-weight: 800;
background: linear-gradient(45deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 20px;
text-decoration: none;
}
.footer-text {
color: var(--gray);
max-width: 600px;
margin: 0 auto 30px;
line-height: 1.7;
}
.social-links {
display: flex;
justify-content: center;
gap: 20px;
margin: 30px 0;
}
.social-link {
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
display: flex;
align-items: center;
justify-content: center;
color: var(--gray);
text-decoration: none;
transition: all 0.3s ease;
font-size: 1.2rem;
}
.social-link:hover {
background: var(--primary);
color: white;
transform: translateY(-5px);
}
.copyright {
color: var(--gray);
font-size: 0.9rem;
margin-top: 30px;
}
/* Адаптивность */
@media (max-width: 992px) {
.hero h1 {
font-size: 3rem;
}
.form-row {
grid-template-columns: 1fr;
}
.contact-cards {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.navbar {
padding: 0 3%;
height: 70px;
}
.nav-links {
gap: 5px;
}
.nav-link {
padding: 10px 15px;
font-size: 0.85rem;
}
.hero {
padding: 80px 3% 60px;
}
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1.1rem;
}
.hero-buttons {
flex-direction: column;
gap: 15px;
}
.btn {
width: 100%;
justify-content: center;
}
.section-title {
font-size: 2.2rem;
}
.section-subtitle {
font-size: 1.1rem;
}
.upload-form, .help-form, .checkout-content {
padding: 30px 20px;
}
.cart-sidebar {
width: 100%;
right: -100%;
}
.posts-container {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.logo {
font-size: 1.5rem;
}
.nav-link span {
display: none;
}
.nav-link i {
margin-right: 0;
}
.cart-trigger span {
display: none;
}
}
</style>
</head>
<body>
<!-- Современное главное меню -->
<nav class="navbar">
<a href="#" class="logo">ArtSpace</a>
<div class="nav-links">
<a href="#" class="nav-link active" data-page="home">
<i class="fas fa-home"></i>
<span>Главная</span>
</a>
<a href="#" class="nav-link" data-page="blog">
<i class="fas fa-blog"></i>
<span>Блог</span>
</a>
<a href="#" class="nav-link" data-page="gallery">
<i class="fas fa-images"></i>
<span>Галерея</span>
</a>
<a href="#" class="nav-link" data-page="help">
<i class="fas fa-question-circle"></i>
<span>Помощь</span>
</a>
</div>
<div class="cart-trigger" id="cartTrigger">
<i class="fas fa-shopping-cart"></i>
<span>Корзина</span>
<span class="cart-count">0</span>
</div>
</nav>
<!-- Главная страница -->
<section id="home-page">
<div class="hero">
<h1>Творческая платформа для художников</h1>
<p>Публикуйте свои работы, продавайте арт и вдохновляйте других. Присоединяйтесь к сообществу талантливых художников уже сегодня!</p>
<div class="hero-buttons">
<a href="#" class="btn btn-primary" onclick="showPage('blog')">
<i class="fas fa-plus-circle"></i>
Добавить работу
</a>
<a href="#" class="btn btn-outline" onclick="showPage('gallery')">
<i class="fas fa-search"></i>
Просмотреть галерею
</a>
</div>
</div>
<!-- Описание галереи -->
<div class="gallery-description">
<h2 class="section-title">Галерея работ</h2>
<p class="section-subtitle">Откройте для себя уникальные произведения искусства от талантливых художников со всего мира. Каждая работа имеет свою историю и смысл.</p>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-paint-brush"></i>
</div>
<h3>Публикация работ</h3>
<p>Загружайте свои произведения искусства с описанием и информацией об авторских правах. Делитесь своим творчеством с миром.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-shopping-cart"></i>
</div>
<h3>Продажа арта</h3>
<p>Устанавливайте цены на свои работы и получайте доход от продаж. Поддерживайте свободный доступ к части своих работ.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-users"></i>
</div>
<h3>Сообщество</h3>
<p>Общайтесь с другими художниками, получайте обратную связь и вдохновляйтесь творчеством коллег.</p>
</div>
</div>
</div>
</section>
<!-- Блог -->
<section id="blog-page" class="blog-section">
<h2 class="section-title">Публикация работ</h2>
<div class="upload-form">
<h3 class="form-title">Добавить новую работу</h3>
<form id="artForm">
<div class="form-row">
<div class="form-group">
<label for="artImage">Изображение работы</label>
<input type="file" id="artImage" class="form-control" accept="image/*" required>
</div>
<div class="form-group">
<label for="artTitle">Название работы</label>
<input type="text" id="artTitle" class="form-control" placeholder="Введите название работы" required>
</div>
</div>
<div class="form-group full">
<label for="artDescription">Описание</label>
<textarea id="artDescription" class="form-control" placeholder="Опишите вашу работу..." rows="4" required></textarea>
</div>
<div class="form-row">
<div class="form-group">
<label for="artAuthor">Автор</label>
<input type="text" id="artAuthor" class="form-control" placeholder="Ваше имя или псевдоним" required>
</div>
<div class="form-group">
<label>Тип работы</label>
<div class="price-options">
<div class="price-option">
<div class="radio-group">
<div class="radio-item">
<input type="radio" id="free" name="priceType" value="free" checked>
<label for="free">Бесплатная</label>
</div>
</div>
</div>
<div class="price-option">
<div class="radio-group">
<div class="radio-item">
<input type="radio" id="paid" name="priceType" value="paid">
<label for="paid">Платная</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group" id="priceField" style="display: none;">
<label for="artPrice">Цена (₽)</label>
<input type="number" id="artPrice" class="form-control" placeholder="Укажите цену" min="1">
</div>
<button type="submit" class="btn btn-primary" style="width: 100%;">
<i class="fas fa-upload"></i>
Опубликовать работу
</button>
</form>
</div>
<h2 class="section-title">Опубликованные работы</h2>
<div class="posts-container" id="postsContainer">
<!-- Работы будут добавляться сюда -->
</div>
</section>
<!-- Галерея -->
<section id="gallery-page" class="gallery-section">
<h2 class="section-title">Галерея работ</h2>
<p class="section-subtitle">Просматривайте работы, опубликованные пользователями платформы. Каждая работа уникальна и представляет собой творческое выражение автора.</p>
<div class="gallery-grid" id="galleryGrid">
<!-- Изображения будут добавляться сюда -->
</div>
</section>
<!-- Помощь -->
<section id="help-page" class="help-section">
<h2 class="section-title">Помощь и поддержка</h2>
<p class="section-subtitle">Если у вас есть вопросы или вам нужна помощь, не стесняйтесь обращаться к нам. Мы всегда рады помочь!</p>
<div class="contact-cards">
<div class="contact-card">
<div class="contact-icon">
<i class="fas fa-envelope"></i>
</div>
<h3>Email поддержки</h3>
<p>grisukkostik229@gmail.com</p>
</div>
<div class="contact-card">
<div class="contact-icon">
<i class="fab fa-telegram"></i>
</div>
<h3>Telegram</h3>
<p>@pritfort</p>
</div>
</div>
<div class="help-form">
<h3 class="form-title">Отправить сообщение разработчику</h3>
<form id="helpForm">
<div class="form-row">
<div class="form-group">
<label for="helpName">Ваше имя</label>
<input type="text" id="helpName" class="form-control" placeholder="Введите ваше имя" required>
</div>
<div class="form-group">
<label for="helpEmail">Email</label>
<input type="email" id="helpEmail" class="form-control" placeholder="Ваш email" required>
</div>
</div>
<div class="form-group full">
<label for="helpMessage">Сообщение</label>
<textarea id="helpMessage" class="form-control" placeholder="Опишите ваш вопрос или проблему..." rows="5" required></textarea>
</div>
<button type="submit" class="btn btn-primary" style="width: 100%;">
<i class="fas fa-paper-plane"></i>
Отправить сообщение
</button>
</form>
</div>
</section>
<!-- Модальное окно поста -->
<div class="modal" id="postModal">
<div class="modal-content">
<button class="modal-close" id="modalClose">×</button>
<img src="" alt="" class="modal-image" id="modalImage">
<div class="modal-body">
<h2 class="modal-title" id="modalTitle"></h2>
<span class="modal-author" id="modalAuthor"></span>
<p class="modal-description" id="modalDescription"></p>
<div class="modal-price" id="modalPrice"></div>
<button class="modal-action" id="modalAction"></button>
<button class="modal-action order-btn" id="orderBtn">
<i class="fas fa-envelope"></i>
Заказать у автора персональную работу
</button>
</div>
</div>
</div>
<!-- Корзина -->
<div class="cart-sidebar" id="cartSidebar">
<div class="cart-header">
<h3>Корзина</h3>
<button class="close-cart" id="closeCart">×</button>
</div>
<div class="cart-items" id="cartItems">
<!-- Товары в корзине -->
</div>
<div class="cart-total" id="cartTotal">Итого: 0 ₽</div>
<button class="checkout-button" id="checkoutBtn">
<i class="fas fa-credit-card"></i>
Оформить заказ
</button>
</div>
<!-- Оформление заказа -->
<div class="checkout-modal" id="checkoutModal">
<div class="checkout-content">
<h2 class="checkout-title">Оформление заказа</h2>
<div class="checkout-items" id="checkoutItems">
<!-- Товары в заказе -->
</div>
<div class="checkout-total">
<span class="checkout-total-label">Итого:</span>
<span class="checkout-total-value" id="checkoutTotalValue">0 ₽</span>
</div>
<div class="form-group-checkout">
<label for="customerName">Ваше имя</label>
<input type="text" id="customerName" class="form-control" placeholder="Введите ваше имя" required>
</div>
<div class="form-group-checkout">
<label for="customerEmail">Email</label>
<input type="email" id="customerEmail" class="form-control" placeholder="Ваш email для связи" required>
</div>
<div class="form-group-checkout">
<label for="customerPhone">Телефон</label>
<input type="tel" id="customerPhone" class="form-control" placeholder="Ваш номер телефона" required>
</div>
<div class="form-group-checkout">
<label for="deliveryAddress">Адрес доставки</label>
<textarea id="deliveryAddress" class="form-control" placeholder="Укажите адрес доставки" rows="3" required></textarea>
</div>
<div class="checkout-actions">
<button class="cancel-checkout" id="cancelCheckout">Отмена</button>
<button class="confirm-checkout" id="confirmCheckout">
<i class="fas fa-check"></i>
Подтвердить заказ
</button>
</div>
</div>
</div>
<div class="overlay" id="overlay"></div>
<footer>
<a href="#" class="footer-logo">ArtSpace</a>
<p class="footer-text">Платформа для художников и ценителей искусства. Здесь вы можете делиться своими работами, находить вдохновение и общаться с единомышленниками.</p>
<div class="social-links">
<a href="#" class="social-link"><i class="fab fa-instagram"></i></a>
<a href="#" class="social-link"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
<a href="#" class="social-link"><i class="fab fa-pinterest"></i></a>
</div>
<p class="copyright">© 2023 ArtSpace. Все права защищены.</p>
</footer>
<script>
// Переменные
let currentPage = 'home';
let cart = [];
let posts = [
{
id: 1,
title: "Закат над озером",
description: "Пейзажная живопись, передающая спокойствие заката. Создана с использованием масляных красок на холсте.",
author: "Анна Петрова",
price: 0,
image: "https://placehold.co/600x400/3498db/ffffff?text=Закат+над+озером"
},
{
id: 2,
title: "Абстрактный портрет",
description: "Современная интерпретация человеческих эмоций. Акриловые краски на холсте, 2023 год.",
author: "Михаил Сидоров",
price: 2500,
image: "https://placehold.co/600x400/e74c3c/ffffff?text=Абстрактный+портрет"
},
{
id: 3,
title: "Лесная тропа",
description: "Акварельная работа, передающая атмосферу утреннего леса. Вдохновлена прогулками по Карпатам.",
author: "Елена Коваленко",
price: 1800,
image: "https://placehold.co/600x400/2ecc71/ffffff?text=Лесная+тропа"
},
{
id: 4,
title: "Городские огни",
description: "Ночной пейзаж большого города. Уголь и пастель на бумаге.",
author: "Дмитрий Иванов",
price: 0,
image: "https://placehold.co/600x400/f39c12/ffffff?text=Городские+огни"
}
];
// DOM элементы
const pages = {
home: document.getElementById('home-page'),
blog: document.getElementById('blog-page'),
gallery: document.getElementById('gallery-page'),
help: document.getElementById('help-page')
};
const navLinks = document.querySelectorAll('.nav-link');
const cartTrigger = document.getElementById('cartTrigger');
const cartSidebar = document.getElementById('cartSidebar');
const closeCart = document.getElementById('closeCart');
const overlay = document.getElementById('overlay');
const cartCount = document.querySelector('.cart-count');
const cartItems = document.getElementById('cartItems');
const cartTotal = document.getElementById('cartTotal');
const postsContainer = document.getElementById('postsContainer');
const galleryGrid = document.getElementById('galleryGrid');
const postModal = document.getElementById('postModal');
const modalClose = document.getElementById('modalClose');
const modalImage = document.getElementById('modalImage');
const modalTitle = document.getElementById('modalTitle');
const modalAuthor = document.getElementById('modalAuthor');
const modalDescription = document.getElementById('modalDescription');
const modalPrice = document.getElementById('modalPrice');
const modalAction = document.getElementById('modalAction');
const orderBtn = document.getElementById('orderBtn');
const checkoutBtn = document.getElementById('checkoutBtn');
const checkoutModal = document.getElementById('checkoutModal');
const checkoutItems = document.getElementById('checkoutItems');
const checkoutTotalValue = document.getElementById('checkoutTotalValue');
const cancelCheckout = document.getElementById('cancelCheckout');
const confirmCheckout = document.getElementById('confirmCheckout');
// Навигация
navLinks.forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const page = this.getAttribute('data-page');
showPage(page);
});
});
function showPage(page) {
// Скрыть все страницы
Object.values(pages).forEach(p => p.style.display = 'none');
// Показать выбранную страницу
pages[page].style.display = 'block';
// Обновить активную ссылку
navLinks.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('data-page') === page) {
link.classList.add('active');
}
});
currentPage = page;
// Обновить контент страниц
if (page === 'blog') {
renderPosts();
} else if (page === 'gallery') {
renderGallery();
}
}
// Корзина
cartTrigger.addEventListener('click', function() {
cartSidebar.classList.add('active');
overlay.classList.add('active');
document.body.style.overflow = 'hidden';
renderCart();
});
closeCart.addEventListener('click', function() {
cartSidebar.classList.remove('active');
overlay.classList.remove('active');
document.body.style.overflow = 'auto';
});
overlay.addEventListener('click', function() {
cartSidebar.classList.remove('active');
postModal.classList.remove('active');
checkoutModal.classList.remove('active');
overlay.classList.remove('active');
document.body.style.overflow = 'auto';
});
modalClose.addEventListener('click', function() {
postModal.classList.remove('active');
overlay.classList.remove('active');
document.body.style.overflow = 'auto';
});
// Оформление заказа
checkoutBtn.addEventListener('click', function() {
if (cart.length === 0) {
alert('Корзина пуста!');
return;
}
cartSidebar.classList.remove('active');
checkoutModal.classList.add('active');
renderCheckout();
});
cancelCheckout.addEventListener('click', function() {
checkoutModal.classList.remove('active');
overlay.classList.remove('active');
document.body.style.overflow = 'auto';
});
confirmCheckout.addEventListener('click', function() {
const name = document.getElementById('customerName').value;
const email = document.getElementById('customerEmail').value;
const phone = document.getElementById('customerPhone').value;
const address = document.getElementById('deliveryAddress').value;
if (!name || !email || !phone || !address) {
alert('Пожалуйста, заполните все поля!');
return;
}
alert(`Спасибо за заказ, ${name}!\n\nВаш заказ будет обработан в ближайшее время.\nМы свяжемся с вами по указанному телефону или email.`);
// Очистить корзину
cart = [];
updateCartCount();
renderCart();
// Закрыть модальное окно
checkoutModal.classList.remove('active');
overlay.classList.remove('active');
document.body.style.overflow = 'auto';
// Очистить форму
document.getElementById('customerName').value = '';
document.getElementById('customerEmail').value = '';
document.getElementById('customerPhone').value = '';
document.getElementById('deliveryAddress').value = '';
});
// Добавление в корзину
function addToCart(post) {
const existingItem = cart.find(item => item.id === post.id);
if (existingItem) {
existingItem.quantity += 1;
} else {
cart.push({...post, quantity: 1});
}
updateCartCount();
alert(`"${post.title}" добавлено в корзину!`);
}
function removeFromCart(id) {
cart = cart.filter(item => item.id !== id);
updateCartCount();
renderCart();
}
function updateCartCount() {
const count = cart.reduce((sum, item) => sum + item.quantity, 0);
cartCount.textContent = count;
}
function renderCart() {
cartItems.innerHTML = '';
let total = 0;
cart.forEach(item => {
const itemTotal = item.price * item.quantity;
total += itemTotal;
const cartItem = document.createElement('div');
cartItem.className = 'cart-item';
cartItem.innerHTML = `
<img src="${item.image}" alt="${item.title}" class="cart-item-image">
<div class="cart-item-details">
<div class="cart-item-title">${item.title}</div>
<div class="cart-item-author">${item.author}</div>
<div class="cart-item-price">${item.price > 0 ? item.price + ' ₽' : 'Бесплатно'} × ${item.quantity}</div>
</div>
<button class="remove-item" onclick="removeFromCart(${item.id})">
<i class="fas fa-times"></i>
</button>
`;
cartItems.appendChild(cartItem);
});
cartTotal.textContent = `Итого: ${total} ₽`;
}
function renderCheckout() {
checkoutItems.innerHTML = '';
let total = 0;
cart.forEach(item => {
const itemTotal = item.price * item.quantity;
total += itemTotal;
const checkoutItem = document.createElement('div');
checkoutItem.className = 'checkout-item';
checkoutItem.innerHTML = `
<div class="checkout-item-info">
<div>${item.title}</div>
<div style="font-size: 0.9rem; color: var(--gray);">${item.author}</div>
</div>
<div class="checkout-item-price">${item.price > 0 ? item.price + ' ₽' : 'Бесплатно'} × ${item.quantity}</div>
`;
checkoutItems.appendChild(checkoutItem);
});
checkoutTotalValue.textContent = `${total} ₽`;
}
// Рендер постов
function renderPosts() {
postsContainer.innerHTML = '';
posts.forEach(post => {
const postCard = document.createElement('div');
postCard.className = 'post-card';
postCard.innerHTML = `
<img src="${post.image}" alt="${post.title}" class="post-image">
<span class="post-badge ${post.price > 0 ? 'badge-paid' : 'badge-free'}">
${post.price > 0 ? 'Платно' : 'Бесплатно'}
</span>
<div class="post-content">
<h3 class="post-title">${post.title}</h3>
<span class="post-author">Автор: ${post.author}</span>
<p class="post-description">${post.description.substring(0, 100)}...</p>
${post.price > 0 ?
`<div class="post-price">${post.price} ₽</div>` :
`<div class="post-price" style="color: var(--success);">Бесплатно</div>`
}
<button class="action-button" onclick='openPostModal(${JSON.stringify(post).replace(/'/g, "\\'")})'>
<i class="fas fa-eye"></i>
Посмотреть подробнее
</button>
</div>
`;
postsContainer.appendChild(postCard);
});
}
// Рендер галереи
function renderGallery() {
galleryGrid.innerHTML = '';
posts.forEach(post => {
const galleryItem = document.createElement('div');
galleryItem.className = 'gallery-item';
galleryItem.innerHTML = `
<img src="${post.image}" alt="${post.title}" class="gallery-image">
<div class="gallery-overlay">
<h4>${post.title}</h4>
<p>${post.author}</p>
</div>
`;
galleryItem.addEventListener('click', () => openPostModal(post));
galleryGrid.appendChild(galleryItem);
});
}
// Модальное окно поста
function openPostModal(post) {
modalImage.src = post.image;
modalImage.alt = post.title;
modalTitle.textContent = post.title;
modalAuthor.textContent = `Автор: ${post.author}`;
modalDescription.textContent = post.description;
if (post.price > 0) {
modalPrice.textContent = `${post.price} ₽`;
modalPrice.className = 'modal-price price-paid';
modalAction.textContent = 'Купить работу';
modalAction.className = 'modal-action buy-btn';
modalAction.innerHTML = '<i class="fas fa-shopping-cart"></i> Купить работу';
modalAction.onclick = () => addToCart(post);
} else {
modalPrice.textContent = 'Бесплатно';
modalPrice.className = 'modal-price price-free';
modalAction.textContent = 'Скачать изображение';
modalAction.className = 'modal-action download-btn';
modalAction.innerHTML = '<i class="fas fa-download"></i> Скачать изображение';
modalAction.onclick = () => {
alert('Изображение скачано! (В демонстрационных целях)');
};
}
// Настройка кнопки заказа
orderBtn.onclick = () => {
alert(`Заказ персональной работы у автора "${post.author}" отправлен!\nКонтактная информация: grisukkostik229@gmail.com, @pritfort`);
};
postModal.classList.add('active');
overlay.classList.add('active');
document.body.style.overflow = 'hidden';
}
// Обработка формы загрузки
document.getElementById('artForm').addEventListener('submit', function(e) {
e.preventDefault();
const title = document.getElementById('artTitle').value;
const description = document.getElementById('artDescription').value;
const author = document.getElementById('artAuthor').value;
const priceType = document.querySelector('input[name="priceType"]:checked').value;
const price = priceType === 'paid' ? parseFloat(document.getElementById('artPrice').value) || 0 : 0;
const newPost = {
id: posts.length + 1,
title: title,
description: description,
author: author,
price: price,
image: "https://placehold.co/600x400/a29bfe/ffffff?text=" + encodeURIComponent(title.substring(0, 20))
};
posts.unshift(newPost);
renderPosts();
renderGallery();
// Сброс формы
this.reset();
document.getElementById('priceField').style.display = 'none';
alert('Работа успешно опубликована!');
});
// Обработка формы помощи
document.getElementById('helpForm').addEventListener('submit', function(e) {
e.preventDefault();
const name = document.getElementById('helpName').value;
const email = document.getElementById('helpEmail').value;
const message = document.getElementById('helpMessage').value;
// Здесь должна быть логика отправки сообщения
// В демо версии просто показываем сообщение
alert(`Спасибо, ${name}! Ваше сообщение отправлено разработчику.\n\nКонтактная информация:\nEmail: grisukkostik229@gmail.com\nTelegram: @pritfort`);
this.reset();
});
// Переключение типа цены
document.querySelectorAll('input[name="priceType"]').forEach(radio => {
radio.addEventListener('change', function() {
const priceField = document.getElementById('priceField');
if (this.value === 'paid') {
priceField.style.display = 'block';
} else {
priceField.style.display = 'none';
}
});
});
// Инициализация
showPage('home');
updateCartCount();
renderPosts();
renderGallery();
</script>
</body>
</html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ArtSpace - Платформа для художников</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--secondary: #8b5cf6;
--accent: #ec4899;
--dark: #1e293b;
--light: #f8fafc;
--gray: #94a3b8;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
}
body {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: var(--light);
min-height: 100vh;
overflow-x: hidden;
}
/* Современное главное меню */
.navbar {
background: rgba(30, 41, 59, 0.95);
backdrop-filter: blur(20px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
padding: 0 5%;
height: 80px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
font-size: 2rem;
font-weight: 800;
background: linear-gradient(45deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.5px;
text-decoration: none;
}
.nav-links {
display: flex;
gap: 10px;
}
.nav-link {
text-decoration: none;
color: var(--gray);
font-weight: 600;
padding: 12px 20px;
border-radius: 12px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
font-size: 0.95rem;
letter-spacing: 0.3px;
display: flex;
align-items: center;
gap: 8px;
}
.nav-link:hover {
color: white;
background: rgba(99, 102, 241, 0.1);
}
.nav-link.active {
color: white;
background: linear-gradient(45deg, var(--primary), var(--secondary));
}
.cart-trigger {
position: relative;
background: rgba(99, 102, 241, 0.1);
border: 1px solid rgba(99, 102, 241, 0.3);
border-radius: 12px;
padding: 12px 20px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;