TruePower2020 commited on
Commit
8b5f9f3
·
verified ·
1 Parent(s): 1852005

исправь ошибку с повторяющимся вторым видео на отображении

Browse files
Files changed (5) hide show
  1. README.md +8 -5
  2. components/social-links.js +51 -0
  3. index.html +105 -19
  4. script.js +32 -0
  5. style.css +32 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Sonic Canvas Symphony
3
- emoji: 🏆
4
- colorFrom: indigo
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Sonic Canvas Symphony 🎨🎼
3
+ colorFrom: gray
4
+ colorTo: red
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/social-links.js ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ class SocialLinks extends HTMLElement {
3
+ connectedCallback() {
4
+ this.attachShadow({ mode: 'open' });
5
+ this.shadowRoot.innerHTML = `
6
+ <style>
7
+ .social-links-container {
8
+ display: flex;
9
+ justify-content: center;
10
+ gap: 1.5rem;
11
+ padding: 1rem 0;
12
+ }
13
+ .social-icon {
14
+ width: 24px;
15
+ height: 24px;
16
+ color: #e5e5e5;
17
+ transition: color 0.3s ease;
18
+ }
19
+ .social-icon:hover {
20
+ color: #0f3460;
21
+ }
22
+ </style>
23
+ <div class="social-links-container">
24
+ <a href="#" class="social-icon">
25
+ <i data-feather="instagram"></i>
26
+ </a>
27
+ <a href="#" class="social-icon">
28
+ <i data-feather="facebook"></i>
29
+ </a>
30
+ <a href="#" class="social-icon">
31
+ <i data-feather="youtube"></i>
32
+ </a>
33
+ <a href="#" class="social-icon">
34
+ <i data-feather="music"></i>
35
+ </a>
36
+ <a href="#" class="social-icon">
37
+ <i data-feather="twitch"></i>
38
+ </a>
39
+ <a href="#" class="social-icon">
40
+ <i data-feather="cloud"></i>
41
+ </a>
42
+ <a href="#" class="social-icon">
43
+ <i data-feather="radio"></i>
44
+ </a>
45
+ </div>
46
+ `;
47
+ feather.replace();
48
+ }
49
+ }
50
+
51
+ customElements.define('social-links', SocialLinks);
index.html CHANGED
@@ -1,19 +1,105 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ru" class="scroll-smooth">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>PERVOTVOREC - THEIR CANVAS | Sonic Artistry</title>
7
+ <link rel="preconnect" href="https://fonts.googleapis.com">
8
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
+ <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
10
+ <script src="https://cdn.tailwindcss.com"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <link rel="stylesheet" href="style.css">
14
+ <script>
15
+ tailwind.config = {
16
+ theme: {
17
+ extend: {
18
+ fontFamily: {
19
+ oswald: ['Oswald', 'sans-serif'],
20
+ },
21
+ colors: {
22
+ primary: '#1a1a2e',
23
+ secondary: '#16213e',
24
+ accent: '#0f3460',
25
+ text: '#e5e5e5'
26
+ }
27
+ }
28
+ }
29
+ }
30
+ </script>
31
+ </head>
32
+ <body class="bg-primary text-text font-oswald min-h-screen flex flex-col">
33
+ <header class="bg-secondary py-6 px-4 shadow-lg">
34
+ <div class="container mx-auto flex justify-between items-center">
35
+ <h1 class="text-2xl md:text-3xl font-bold tracking-wider">PERVOTVOREC</h1>
36
+ <p class="text-sm md:text-base opacity-80">THEIR CANVAS / ИХ ХОЛСТ</p>
37
+ </div>
38
+ </header>
39
+
40
+ <main class="flex-grow container mx-auto px-4 py-8">
41
+ <section class="mb-12">
42
+ <div class="video-container relative w-full max-w-md mx-auto overflow-hidden rounded-lg shadow-2xl">
43
+ <video
44
+ src="https://7ya.fun/vid/crtum_vid_vert/6.mp4"
45
+ controls
46
+ class="w-full h-auto"
47
+ poster="http://static.photos/monochrome/640x360/42"
48
+ ></video>
49
+ </div>
50
+ </section>
51
+
52
+ <section class="max-w-2xl mx-auto">
53
+ <h2 class="text-2xl md:text-3xl font-bold mb-6 text-center tracking-wider border-b border-accent pb-2">ТВОРЧЕСКИЙ ОЧЕРК</h2>
54
+
55
+ <article class="space-y-6 text-lg leading-relaxed">
56
+ <p>Композиция "Their Canvas" Александра Семьянского (Pervotvorec) представляет собой глубокое погружение в мир звуковой живописи, где каждый элемент композиции - это мазок кисти на холсте музыкального полотна.</p>
57
+
58
+ <p>Трек открывается атмосферными синтезаторами, создающими ощущение пустого пространства - чистого холста, ожидающего творческого вмешательства. Постепенно добавляются перкуссионные элементы, напоминающие капли краски, падающие на поверхность.</p>
59
+
60
+ <p>Основная тема, вступающая после вступления, построена на контрасте между электронными и акустическими звучаниями, что символизирует диалог между традицией и современностью в искусстве. Мелодическая линия развивается как импрессионистская картина, где важны не столько четкие контуры, сколько общее впечатление.</p>
61
+
62
+ <p>Средняя часть композиции представляет собой кульминационный момент - "разбрызгивание красок" звуковым хаосом, который затем гармонично собирается в завершающий тему аккорд, оставляя ощущение законченного произведения.</p>
63
+
64
+ <p>Особого внимания заслуживает работа с прос��ранством в треке - панорамирование и реверберация создают эффект "обхода" вокруг художественного произведения, рассмотрения его с разных сторон.</p>
65
+ </article>
66
+
67
+ <div class="mt-10 bg-secondary p-6 rounded-lg shadow-inner">
68
+ <h3 class="text-xl font-semibold mb-4">КОМПОЗИТОРСКИЕ ОСОБЕННОСТИ:</h3>
69
+ <ul class="space-y-3">
70
+ <li class="flex items-start">
71
+ <i data-feather="chevron-right" class="mr-2 text-accent"></i>
72
+ <span>Полиритмическая структура (5/4 на фоне 4/4)</span>
73
+ </li>
74
+ <li class="flex items-start">
75
+ <i data-feather="chevron-right" class="mr-2 text-accent"></i>
76
+ <span>Модальная гармония с элементами джазовой импровизации</span>
77
+ </li>
78
+ <li class="flex items-start">
79
+ <i data-feather="chevron-right" class="mr-2 text-accent"></i>
80
+ <span>Использование нетемперированного строя в отдельных секциях</span>
81
+ </li>
82
+ <li class="flex items-start">
83
+ <i data-feather="chevron-right" class="mr-2 text-accent"></i>
84
+ <span>Гранулярный синтез для создания "размытых" текстур</span>
85
+ </li>
86
+ </ul>
87
+ </div>
88
+ </section>
89
+ </main>
90
+ <footer class="bg-secondary py-8 px-4">
91
+ <div class="container mx-auto">
92
+ <social-links></social-links>
93
+ <p class="text-center mt-6 text-sm opacity-75">
94
+ &copy; 2023 Александр Семьянский (Pervotvorec). Все права защищены.
95
+ </p>
96
+ </div>
97
+ </footer>
98
+ <script>
99
+ feather.replace();
100
+ </script>
101
+ <script src="components/social-links.js"></script>
102
+ <script src="script.js"></script>
103
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
104
+ </body>
105
+ </html>
script.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ // Video autoplay on scroll into view
3
+ const video = document.querySelector('video');
4
+ const observer = new IntersectionObserver((entries) => {
5
+ entries.forEach(entry => {
6
+ if (entry.isIntersecting) {
7
+ video.play();
8
+ } else {
9
+ video.pause();
10
+ }
11
+ });
12
+ }, { threshold: 0.5 });
13
+
14
+ if (video) {
15
+ observer.observe(video);
16
+ }
17
+
18
+ // Smooth scroll for anchor links
19
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
20
+ anchor.addEventListener('click', function (e) {
21
+ e.preventDefault();
22
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
23
+ behavior: 'smooth'
24
+ });
25
+ });
26
+ });
27
+ });
28
+
29
+ // Feather icons replacement for dynamic content
30
+ document.addEventListener('DOMContentLoaded', () => {
31
+ feather.replace();
32
+ });
style.css CHANGED
@@ -1,28 +1,42 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
28
  }
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ scroll-behavior: smooth;
5
+ }
6
+
7
+ .video-container {
8
+ aspect-ratio: 9/16;
9
  }
10
 
11
+ .social-icon {
12
+ width: 24px;
13
+ height: 24px;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
  }
18
 
19
+ @media (min-width: 768px) {
20
+ .social-icon {
21
+ width: 28px;
22
+ height: 28px;
23
+ }
24
  }
25
 
26
+ /* Custom scrollbar */
27
+ ::-webkit-scrollbar {
28
+ width: 8px;
 
 
 
29
  }
30
 
31
+ ::-webkit-scrollbar-track {
32
+ background: #16213e;
33
  }
34
+
35
+ ::-webkit-scrollbar-thumb {
36
+ background: #0f3460;
37
+ border-radius: 4px;
38
+ }
39
+
40
+ ::-webkit-scrollbar-thumb:hover {
41
+ background: #0a264e;
42
+ }