|
|
@@ -106,8 +106,78 @@ h1.title{
|
|
|
background:linear-gradient(135deg,#fff,var(--accent2));
|
|
|
-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;}
|
|
|
.scene-sub{font-size:13px;color:var(--dim);margin-bottom:20px;}
|
|
|
-.scene svg{max-width:100%;height:auto;max-height:300px;}
|
|
|
+.scene-photo {
|
|
|
+ max-width: 100%;
|
|
|
+ max-height: 320px;
|
|
|
+ border-radius: 16px;
|
|
|
+ object-fit: contain;
|
|
|
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
|
|
|
+ border: 2px solid rgba(255, 255, 255, 0.1);
|
|
|
+ animation: fade .4s ease;
|
|
|
+}
|
|
|
+
|
|
|
+/* Контейнер для фото с подписями */
|
|
|
+.photo-container {
|
|
|
+ position: relative;
|
|
|
+ display: inline-block;
|
|
|
+ max-width: 100%;
|
|
|
+ border-radius: 16px;
|
|
|
+ overflow: visible; /* ВАЖНО: разрешаем подписям выходить за края фото */
|
|
|
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
|
|
|
+ border: 2px solid rgba(255, 255, 255, 0.1);
|
|
|
+ margin: 20px 0;
|
|
|
+ background: var(--card); /* Фон, чтобы подписи читались */
|
|
|
+}
|
|
|
+
|
|
|
+.photo-container img.scene-photo {
|
|
|
+ display: block;
|
|
|
+ max-width: 100%;
|
|
|
+ max-height: 320px;
|
|
|
+ object-fit: contain;
|
|
|
+ border-radius: 14px; /* Чуть скругляем само фото внутри рамки */
|
|
|
+}
|
|
|
|
|
|
+/* Точка на детали */
|
|
|
+.marker {
|
|
|
+ position: absolute;
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ background: var(--accent2);
|
|
|
+ border: 2px solid #fff;
|
|
|
+ border-radius: 50%;
|
|
|
+ box-shadow: 0 0 10px var(--accent2);
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ z-index: 5; /* Выше линий и подписей */
|
|
|
+}
|
|
|
+
|
|
|
+/* Подпись */
|
|
|
+.label {
|
|
|
+ position: absolute;
|
|
|
+ background: rgba(15, 15, 30, 0.95);
|
|
|
+ color: #fff;
|
|
|
+ padding: 6px 12px;
|
|
|
+ border-radius: 8px;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 600;
|
|
|
+ white-space: nowrap;
|
|
|
+ border: 1px solid var(--accent2);
|
|
|
+ box-shadow: 0 4px 15px rgba(0,0,0,0.5);
|
|
|
+ z-index: 4;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ pointer-events: none;
|
|
|
+ backdrop-filter: blur(4px);
|
|
|
+}
|
|
|
+
|
|
|
+/* Линия-указатель (палочка) */
|
|
|
+.marker-line {
|
|
|
+ position: absolute;
|
|
|
+ height: 2px;
|
|
|
+ background: var(--accent2);
|
|
|
+ transform-origin: 0 50%;
|
|
|
+ z-index: 1;
|
|
|
+ opacity: 0.7;
|
|
|
+ box-shadow: 0 0 5px var(--accent2);
|
|
|
+}
|
|
|
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
|
|
|
@media(max-width:600px){.cards{grid-template-columns:repeat(2,1fr);}}
|
|
|
.card{background:var(--card);border:2px solid var(--light);border-radius:14px;padding:14px 8px;cursor:pointer;transition:.25s;text-align:center;}
|
|
|
@@ -347,146 +417,91 @@ const scenes = {
|
|
|
<div style="width:110px;">${KATY}</div>
|
|
|
<div style="width:110px;">${SNEZHKA}</div></div>`,
|
|
|
|
|
|
- case: `<div class="scene-title">Корпус системного блока</div>
|
|
|
+ case: `<div class="scene-title">Корпус системного блока</div>
|
|
|
<div class="scene-sub">Металлический «дом» для компонентов</div>
|
|
|
- <svg viewBox="0 0 300 340">
|
|
|
- <rect x="50" y="20" width="200" height="300" rx="12" fill="#2a2a3e" stroke="#6c5ce7" stroke-width="2"/>
|
|
|
- <rect x="65" y="35" width="170" height="40" rx="6" fill="#1a1a2e"/>
|
|
|
- <circle cx="85" cy="55" r="6" fill="#00cec9"/>
|
|
|
- <rect x="65" y="90" width="170" height="8" rx="2" fill="#1a1a2e"/>
|
|
|
- <rect x="65" y="110" width="170" height="8" rx="2" fill="#1a1a2e"/>
|
|
|
- <rect x="65" y="140" width="170" height="80" rx="6" fill="#1a1a2e" stroke="#3a3a5e"/>
|
|
|
- <text x="150" y="185" fill="#6c5ce7" font-size="11" text-anchor="middle" font-weight="700">МАТ. ПЛАТА</text>
|
|
|
- <rect x="65" y="235" width="80" height="60" rx="6" fill="#1a1a2e" stroke="#3a3a5e"/>
|
|
|
- <text x="105" y="270" fill="#00cec9" font-size="10" text-anchor="middle" font-weight="700">БП</text>
|
|
|
- <rect x="155" y="235" width="80" height="60" rx="6" fill="#1a1a2e" stroke="#3a3a5e"/>
|
|
|
- <text x="195" y="270" fill="#00cec9" font-size="10" text-anchor="middle" font-weight="700">HDD</text>
|
|
|
- </svg>`,
|
|
|
+ <div class="photo-container" style="padding: 0 120px;">
|
|
|
+ <img src="case.jpg" alt="Системный блок" class="scene-photo">
|
|
|
+
|
|
|
+ <!-- 1. Материнская плата (слева) -->
|
|
|
+ <div class="marker" style="top: 45%; left: 35%;"></div>
|
|
|
+ <div class="label" style="top: 45%; left: -10%;">Материнская плата</div>
|
|
|
+ <div class="marker-line" style="top: 45%; left: 5%; width: 25%;"></div>
|
|
|
+
|
|
|
+ <!-- 2. Процессор (сверху, опущен ниже) -->
|
|
|
+ <div class="marker" style="top: 28%; left: 38%;"></div>
|
|
|
+ <div class="label" style="top: 2%; left: 38%;">Процессор</div>
|
|
|
+ <div class="marker-line" style="top: 10%; left: 38%; width: 2px; height: 18%;"></div>
|
|
|
+
|
|
|
+ <!-- 3. Оперативная память (справа) -->
|
|
|
+ <div class="marker" style="top: 25%; left: 50%;"></div>
|
|
|
+ <div class="label" style="top: 25%; left: 110%;">Оперативная память</div>
|
|
|
+ <div class="marker-line" style="top: 25%; left: 60%; width: 35%;"></div>
|
|
|
+
|
|
|
+ <!-- 4. Видеокарта (слева) -->
|
|
|
+ <div class="marker" style="top: 62%; left: 32%;"></div>
|
|
|
+ <div class="label" style="top: 62%; left: -10%;">Видеокарта</div>
|
|
|
+ <div class="marker-line" style="top: 62%; left: 5%; width: 23%;"></div>
|
|
|
+
|
|
|
+ <!-- 5. Блок питания (слева внизу) -->
|
|
|
+ <div class="marker" style="top: 85%; left: 22%;"></div>
|
|
|
+ <div class="label" style="top: 85%; left: -10%;">Блок питания</div>
|
|
|
+ <div class="marker-line" style="top: 85%; left: 5%; width: 13%;"></div>
|
|
|
+
|
|
|
+ <!-- 6. Накопители (справа внизу) -->
|
|
|
+ <div class="marker" style="top: 75%; left: 75%;"></div>
|
|
|
+ <div class="label" style="top: 75%; left: 110%;">Накопители</div>
|
|
|
+ <div class="marker-line" style="top: 75%; left: 80%; width: 25%;"></div>
|
|
|
+ </div>`,
|
|
|
|
|
|
motherboard: `<div class="scene-title">Материнская плата</div>
|
|
|
<div class="scene-sub">Главная плата компьютера</div>
|
|
|
- <svg viewBox="0 0 400 280">
|
|
|
- <rect x="20" y="20" width="360" height="240" rx="8" fill="#1a5c2a" stroke="#2a8a3e" stroke-width="2"/>
|
|
|
- <rect x="50" y="50" width="80" height="80" rx="4" fill="#2a2a3e" stroke="#6c5ce7" stroke-width="1.5"/>
|
|
|
- <text x="90" y="95" fill="#6c5ce7" font-size="11" text-anchor="middle" font-weight="700">CPU</text>
|
|
|
- <rect x="160" y="50" width="18" height="80" rx="3" fill="#00cec9" opacity=".7"/>
|
|
|
- <rect x="188" y="50" width="18" height="80" rx="3" fill="#00cec9" opacity=".7"/>
|
|
|
- <rect x="216" y="50" width="18" height="80" rx="3" fill="#00cec9" opacity=".7"/>
|
|
|
- <rect x="244" y="50" width="18" height="80" rx="3" fill="#00cec9" opacity=".7"/>
|
|
|
- <text x="210" y="145" fill="#00cec9" font-size="10" text-anchor="middle" font-weight="700">RAM</text>
|
|
|
- <rect x="50" y="160" width="200" height="18" rx="3" fill="#3a3a5e"/>
|
|
|
- <text x="150" y="173" fill="#a0a0b8" font-size="9" text-anchor="middle">PCIe слот</text>
|
|
|
- <rect x="50" y="190" width="200" height="18" rx="3" fill="#3a3a5e"/>
|
|
|
- <text x="150" y="203" fill="#a0a0b8" font-size="9" text-anchor="middle">PCIe слот</text>
|
|
|
- <rect x="280" y="160" width="80" height="80" rx="4" fill="#2a2a3e" stroke="#ffb3b3"/>
|
|
|
- <text x="320" y="205" fill="#ffb3b3" font-size="10" text-anchor="middle">SATA</text>
|
|
|
- </svg>`,
|
|
|
+ <div class="photo-container" style="padding: 0 120px;">
|
|
|
+ <img src="motherboard.jpg" alt="Материнская плата" class="scene-photo">
|
|
|
+
|
|
|
+ <!-- 1. Сокет CPU (слева) -->
|
|
|
+ <div class="marker" style="top: 35%; left: 45%;"></div>
|
|
|
+ <div class="label" style="top: 35%; left: -10%;">Сокет CPU</div>
|
|
|
+ <div class="marker-line" style="top: 35%; left: 5%; width: 36%;"></div>
|
|
|
+
|
|
|
+ <!-- 2. Слоты RAM (справа) -->
|
|
|
+ <div class="marker" style="top: 30%; left: 75%;"></div>
|
|
|
+ <div class="label" style="top: 30%; left: 110%;">Слоты RAM</div>
|
|
|
+ <div class="marker-line" style="top: 30%; left: 80%; width: 25%;"></div>
|
|
|
+
|
|
|
+ <!-- 3. Слот PCIe x16 (слева) -->
|
|
|
+ <div class="marker" style="top: 65%; left: 40%;"></div>
|
|
|
+ <div class="label" style="top: 65%; left: -10%;">Слот PCIe x16</div>
|
|
|
+ <div class="marker-line" style="top: 65%; left: 5%; width: 31%;"></div>
|
|
|
+
|
|
|
+ <!-- 4. SATA порты (справа внизу) -->
|
|
|
+ <div class="marker" style="top: 75%; left: 80%;"></div>
|
|
|
+ <div class="label" style="top: 75%; left: 110%;">SATA порты</div>
|
|
|
+ <div class="marker-line" style="top: 75%; left: 85%; width: 20%;"></div>
|
|
|
+ </div>`,
|
|
|
|
|
|
cpu: `<div class="scene-title">Процессор (CPU)</div>
|
|
|
<div class="scene-sub">«Мозг» компьютера</div>
|
|
|
- <svg viewBox="0 0 300 280">
|
|
|
- <rect x="70" y="70" width="160" height="160" rx="8" fill="#2a2a3e" stroke="#6c5ce7" stroke-width="3"/>
|
|
|
- <rect x="90" y="90" width="120" height="120" rx="4" fill="#1a1a2e" stroke="#6c5ce7" stroke-width="1.5"/>
|
|
|
- <text x="150" y="145" fill="#6c5ce7" font-size="22" text-anchor="middle" font-weight="800">CPU</text>
|
|
|
- <text x="150" y="170" fill="#a0a0b8" font-size="10" text-anchor="middle">Intel / AMD</text>
|
|
|
- <line x1="85" y1="70" x2="85" y2="50" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="115" y1="70" x2="115" y2="50" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="145" y1="70" x2="145" y2="50" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="175" y1="70" x2="175" y2="50" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="205" y1="70" x2="205" y2="50" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="85" y1="230" x2="85" y2="250" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="115" y1="230" x2="115" y2="250" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="145" y1="230" x2="145" y2="250" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="175" y1="230" x2="175" y2="250" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="205" y1="230" x2="205" y2="250" stroke="#00cec9" stroke-width="2"/>
|
|
|
- </svg>`,
|
|
|
+ <img src="cpu.jpg" alt="Процессор" class="scene-photo">`,
|
|
|
|
|
|
cooler: `<div class="scene-title">Кулер и термопаста</div>
|
|
|
<div class="scene-sub">Охлаждение процессора</div>
|
|
|
- <svg viewBox="0 0 300 280">
|
|
|
- <circle cx="150" cy="140" r="100" fill="#2a2a3e" stroke="#6c5ce7" stroke-width="2"/>
|
|
|
- <g stroke="#00cec9" stroke-width="8" stroke-linecap="round" opacity=".6">
|
|
|
- <line x1="150" y1="110" x2="150" y2="50"/>
|
|
|
- <line x1="150" y1="170" x2="150" y2="230"/>
|
|
|
- <line x1="120" y1="140" x2="60" y2="140"/>
|
|
|
- <line x1="180" y1="140" x2="240" y2="140"/>
|
|
|
- <line x1="129" y1="119" x2="86" y2="76"/>
|
|
|
- <line x1="171" y1="119" x2="214" y2="76"/>
|
|
|
- <line x1="129" y1="161" x2="86" y2="204"/>
|
|
|
- <line x1="171" y1="161" x2="214" y2="204"/>
|
|
|
- </g>
|
|
|
- <circle cx="150" cy="140" r="28" fill="#6c5ce7"/>
|
|
|
- <text x="150" y="145" fill="#fff" font-size="10" text-anchor="middle" font-weight="800">FAN</text>
|
|
|
- </svg>`,
|
|
|
+ <img src="cooler.jpg" alt="Кулер и термопаста" class="scene-photo">`,
|
|
|
|
|
|
ram: `<div class="scene-title">Оперативная память (RAM)</div>
|
|
|
<div class="scene-sub">Быстрая временная память</div>
|
|
|
- <svg viewBox="0 0 320 180">
|
|
|
- <rect x="30" y="50" width="260" height="80" rx="6" fill="#1a5c2a" stroke="#2a8a3e" stroke-width="2"/>
|
|
|
- <rect x="50" y="65" width="28" height="50" rx="3" fill="#2a2a3e" stroke="#00cec9"/>
|
|
|
- <rect x="88" y="65" width="28" height="50" rx="3" fill="#2a2a3e" stroke="#00cec9"/>
|
|
|
- <rect x="126" y="65" width="28" height="50" rx="3" fill="#2a2a3e" stroke="#00cec9"/>
|
|
|
- <rect x="164" y="65" width="28" height="50" rx="3" fill="#2a2a3e" stroke="#00cec9"/>
|
|
|
- <rect x="202" y="65" width="28" height="50" rx="3" fill="#2a2a3e" stroke="#00cec9"/>
|
|
|
- <rect x="240" y="65" width="28" height="50" rx="3" fill="#2a2a3e" stroke="#00cec9"/>
|
|
|
- <rect x="30" y="130" width="260" height="6" fill="#ffb347"/>
|
|
|
- <text x="160" y="165" fill="#00cec9" font-size="13" text-anchor="middle" font-weight="700">DDR4 / DDR5</text>
|
|
|
- </svg>`,
|
|
|
+ <img src="ram.jpg" alt="Оперативная память" class="scene-photo">`,
|
|
|
|
|
|
storage: `<div class="scene-title">Накопители данных</div>
|
|
|
<div class="scene-sub">HDD и SSD</div>
|
|
|
- <svg viewBox="0 0 400 220">
|
|
|
- <rect x="30" y="40" width="150" height="100" rx="8" fill="#2a2a3e" stroke="#a0a0b8" stroke-width="2"/>
|
|
|
- <circle cx="105" cy="90" r="35" fill="#1a1a2e" stroke="#6c5ce7" stroke-width="1.5"/>
|
|
|
- <circle cx="105" cy="90" r="6" fill="#6c5ce7"/>
|
|
|
- <line x1="105" y1="90" x2="130" y2="70" stroke="#00cec9" stroke-width="2.5"/>
|
|
|
- <text x="105" y="165" fill="#a0a0b8" font-size="13" text-anchor="middle" font-weight="700">HDD</text>
|
|
|
- <text x="105" y="183" fill="#6c5ce7" font-size="10" text-anchor="middle">Медленный, ёмкий</text>
|
|
|
- <rect x="220" y="40" width="150" height="100" rx="8" fill="#2a2a3e" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <rect x="240" y="60" width="22" height="60" rx="3" fill="#1a1a2e" stroke="#00cec9"/>
|
|
|
- <rect x="270" y="60" width="22" height="60" rx="3" fill="#1a1a2e" stroke="#00cec9"/>
|
|
|
- <rect x="300" y="60" width="22" height="60" rx="3" fill="#1a1a2e" stroke="#00cec9"/>
|
|
|
- <rect x="330" y="60" width="22" height="60" rx="3" fill="#1a1a2e" stroke="#00cec9"/>
|
|
|
- <text x="295" y="165" fill="#00cec9" font-size="13" text-anchor="middle" font-weight="700">SSD</text>
|
|
|
- <text x="295" y="183" fill="#6c5ce7" font-size="10" text-anchor="middle">Быстрый, дороже</text>
|
|
|
- </svg>`,
|
|
|
+ <img src="storage.jpg" alt="HDD и SSD" class="scene-photo">`,
|
|
|
|
|
|
gpu: `<div class="scene-title">Видеокарта (GPU)</div>
|
|
|
<div class="scene-sub">Отвечает за графику и игры</div>
|
|
|
- <svg viewBox="0 0 400 250">
|
|
|
- <rect x="40" y="40" width="320" height="140" rx="8" fill="#2a2a3e" stroke="#6c5ce7" stroke-width="2"/>
|
|
|
- <circle cx="140" cy="110" r="45" fill="#1a1a2e" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="140" y1="85" x2="140" y2="60" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <line x1="140" y1="135" x2="140" y2="160" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <line x1="115" y1="110" x2="90" y2="110" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <line x1="165" y1="110" x2="190" y2="110" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <circle cx="140" cy="110" r="10" fill="#6c5ce7"/>
|
|
|
- <circle cx="270" cy="110" r="45" fill="#1a1a2e" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="270" y1="85" x2="270" y2="60" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <line x1="270" y1="135" x2="270" y2="160" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <line x1="245" y1="110" x2="220" y2="110" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <line x1="295" y1="110" x2="320" y2="110" stroke="#00cec9" stroke-width="4" stroke-linecap="round" opacity=".7"/>
|
|
|
- <circle cx="270" cy="110" r="10" fill="#6c5ce7"/>
|
|
|
- <rect x="60" y="180" width="280" height="8" fill="#ffb347" rx="2"/>
|
|
|
- <text x="200" y="215" fill="#ffb347" font-size="11" text-anchor="middle" font-weight="700">Разъём PCIe</text>
|
|
|
- </svg>`,
|
|
|
+ <img src="gpu.jpg" alt="Видеокарта" class="scene-photo">`,
|
|
|
|
|
|
psu: `<div class="scene-title">Блок питания (PSU)</div>
|
|
|
<div class="scene-sub">Питает все компоненты</div>
|
|
|
- <svg viewBox="0 0 350 250">
|
|
|
- <rect x="40" y="30" width="270" height="180" rx="10" fill="#2a2a3e" stroke="#6c5ce7" stroke-width="2"/>
|
|
|
- <circle cx="120" cy="120" r="55" fill="#1a1a2e" stroke="#00cec9" stroke-width="2"/>
|
|
|
- <line x1="120" y1="90" x2="120" y2="70" stroke="#00cec9" stroke-width="6" stroke-linecap="round" opacity=".6"/>
|
|
|
- <line x1="120" y1="150" x2="120" y2="170" stroke="#00cec9" stroke-width="6" stroke-linecap="round" opacity=".6"/>
|
|
|
- <line x1="90" y1="120" x2="70" y2="120" stroke="#00cec9" stroke-width="6" stroke-linecap="round" opacity=".6"/>
|
|
|
- <line x1="150" y1="120" x2="170" y2="120" stroke="#00cec9" stroke-width="6" stroke-linecap="round" opacity=".6"/>
|
|
|
- <circle cx="120" cy="120" r="14" fill="#6c5ce7"/>
|
|
|
- <text x="225" y="90" fill="#00cec9" font-size="16" text-anchor="middle" font-weight="800">500W</text>
|
|
|
- <text x="225" y="115" fill="#a0a0b8" font-size="10" text-anchor="middle">Мощность</text>
|
|
|
- <path d="M310 70 Q340 70 340 100" stroke="#ffb347" stroke-width="3" fill="none"/>
|
|
|
- <path d="M310 120 Q340 120 340 140" stroke="#ff6b6b" stroke-width="3" fill="none"/>
|
|
|
- <path d="M310 170 Q340 170 340 180" stroke="#00cec9" stroke-width="3" fill="none"/>
|
|
|
- </svg>`,
|
|
|
+ <img src="psu.jpg" alt="Блок питания" class="scene-photo">`,
|
|
|
|
|
|
cleaning: `<div class="scene-title">🧹 Чистка системного блока</div>
|
|
|
<div class="scene-sub">Пошаговая инструкция</div>
|