|
|
@@ -122,9 +122,11 @@ h1.title{
|
|
|
display: inline-block;
|
|
|
max-width: 100%;
|
|
|
border-radius: 16px;
|
|
|
- overflow: hidden; /* Чтобы подписи не вылезали за края фото */
|
|
|
+ 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 {
|
|
|
@@ -132,47 +134,49 @@ h1.title{
|
|
|
max-width: 100%;
|
|
|
max-height: 320px;
|
|
|
object-fit: contain;
|
|
|
+ border-radius: 14px; /* Чуть скругляем само фото внутри рамки */
|
|
|
}
|
|
|
|
|
|
-/* Стиль для маркера (точки на детали) */
|
|
|
+/* Точка на детали */
|
|
|
.marker {
|
|
|
position: absolute;
|
|
|
- width: 14px;
|
|
|
- height: 14px;
|
|
|
+ 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: 2;
|
|
|
+ z-index: 5; /* Выше линий и подписей */
|
|
|
}
|
|
|
|
|
|
-/* Стиль для всплывающей подписи */
|
|
|
+/* Подпись */
|
|
|
.label {
|
|
|
position: absolute;
|
|
|
- background: rgba(15, 15, 30, 0.9);
|
|
|
+ background: rgba(15, 15, 30, 0.95);
|
|
|
color: #fff;
|
|
|
- padding: 4px 10px;
|
|
|
+ padding: 6px 12px;
|
|
|
border-radius: 8px;
|
|
|
- font-size: 11px;
|
|
|
+ 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: 3;
|
|
|
+ z-index: 4;
|
|
|
transform: translate(-50%, -50%);
|
|
|
- pointer-events: none; /* Чтобы текст не мешал кликам */
|
|
|
+ pointer-events: none;
|
|
|
backdrop-filter: blur(4px);
|
|
|
}
|
|
|
|
|
|
-/* Линия-указатель от точки к подписи (опционально) */
|
|
|
+/* Линия-указатель (палочка) */
|
|
|
.marker-line {
|
|
|
position: absolute;
|
|
|
height: 2px;
|
|
|
background: var(--accent2);
|
|
|
- transform-origin: left center;
|
|
|
+ transform-origin: 0 50%; /* Линия растёт от первой точки к второй */
|
|
|
z-index: 1;
|
|
|
- opacity: 0.6;
|
|
|
+ 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);}}
|
|
|
@@ -413,61 +417,71 @@ 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>
|
|
|
- <div class="photo-container">
|
|
|
+ <div class="photo-container" style="padding: 0 140px;">
|
|
|
<img src="case.jpg" alt="Системный блок" class="scene-photo">
|
|
|
|
|
|
- <!-- Маркеры и подписи (координаты в %) -->
|
|
|
- <!-- Материнская плата (примерно по центру) -->
|
|
|
+ <!-- 1. Материнская плата -->
|
|
|
<div class="marker" style="top: 45%; left: 35%;"></div>
|
|
|
- <div class="label" style="top: 35%; left: 25%;">Материнская плата</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: 18%; left: 38%;">Процессор (под кулером)</div>
|
|
|
-
|
|
|
- <!-- Оперативная память (справа от кулера) -->
|
|
|
+ <div class="label" style="top: 15%; left: 35%;">Процессор</div>
|
|
|
+ <div class="marker-line" style="top: 28%; left: 35%; transform: rotate(-90deg); width: 15%;"></div>
|
|
|
+
|
|
|
+ <!-- 3. Оперативная память -->
|
|
|
<div class="marker" style="top: 25%; left: 50%;"></div>
|
|
|
- <div class="label" style="top: 15%; left: 62%;">Оперативная память</div>
|
|
|
-
|
|
|
- <!-- Видеокарта (ниже платы) -->
|
|
|
+ <div class="label" style="top: 25%; left: 110%;">Оперативная память</div>
|
|
|
+ <div class="marker-line" style="top: 25%; left: 70%; width: 20%;"></div>
|
|
|
+
|
|
|
+ <!-- 4. Видеокарта -->
|
|
|
<div class="marker" style="top: 62%; left: 32%;"></div>
|
|
|
- <div class="label" style="top: 72%; left: 22%;">Видеокарта</div>
|
|
|
-
|
|
|
- <!-- Блок питания (внизу слева) -->
|
|
|
+ <div class="label" style="top: 62%; left: -10%;">Видеокарта</div>
|
|
|
+ <div class="marker-line" style="top: 62%; left: 5%; width: 25%;"></div>
|
|
|
+
|
|
|
+ <!-- 5. Блок питания -->
|
|
|
<div class="marker" style="top: 85%; left: 22%;"></div>
|
|
|
- <div class="label" style="top: 92%; left: 15%;">Блок питания</div>
|
|
|
-
|
|
|
- <!-- Накопители (справа) -->
|
|
|
+ <div class="label" style="top: 90%; left: -5%;">Блок питания</div>
|
|
|
+ <div class="marker-line" style="top: 85%; left: 10%; width: 15%;"></div>
|
|
|
+
|
|
|
+ <!-- 6. Накопители (HDD/SSD) -->
|
|
|
<div class="marker" style="top: 75%; left: 75%;"></div>
|
|
|
- <div class="label" style="top: 65%; left: 82%;">Накопители (HDD/SSD)</div>
|
|
|
+ <div class="label" style="top: 75%; left: 110%;">Накопители</div>
|
|
|
+ <div class="marker-line" style="top: 75%; left: 80%; width: 15%;"></div>
|
|
|
</div>`,
|
|
|
|
|
|
motherboard: `<div class="scene-title">Материнская плата</div>
|
|
|
<div class="scene-sub">Главная плата компьютера</div>
|
|
|
- <div class="photo-container">
|
|
|
+ <div class="photo-container" style="padding: 0 140px;">
|
|
|
<img src="motherboard.jpg" alt="Материнская плата" class="scene-photo">
|
|
|
|
|
|
- <!-- Процессорный сокет (в центре, квадратный) -->
|
|
|
+ <!-- 1. Сокет CPU -->
|
|
|
<div class="marker" style="top: 35%; left: 45%;"></div>
|
|
|
- <div class="label" style="top: 25%; left: 45%;">Сокет CPU</div>
|
|
|
-
|
|
|
- <!-- Слоты RAM (справа, вертикальные полоски) -->
|
|
|
+ <div class="label" style="top: 35%; left: -10%;">Сокет CPU</div>
|
|
|
+ <div class="marker-line" style="top: 35%; left: 15%; width: 20%;"></div>
|
|
|
+
|
|
|
+ <!-- 2. Слоты RAM -->
|
|
|
<div class="marker" style="top: 30%; left: 75%;"></div>
|
|
|
- <div class="label" style="top: 20%; left: 85%;">Слоты RAM</div>
|
|
|
-
|
|
|
- <!-- Слот PCIe x16 (внизу, длинный) -->
|
|
|
+ <div class="label" style="top: 30%; left: 110%;">Слоты RAM</div>
|
|
|
+ <div class="marker-line" style="top: 30%; left: 70%; width: 15%;"></div>
|
|
|
+
|
|
|
+ <!-- 3. Слот PCIe x16 -->
|
|
|
<div class="marker" style="top: 65%; left: 40%;"></div>
|
|
|
- <div class="label" style="top: 75%; left: 30%;">Слот PCIe x16</div>
|
|
|
-
|
|
|
- <!-- Батарейка CMOS (круглая, слева внизу) -->
|
|
|
+ <div class="label" style="top: 65%; left: -10%;">Слот PCIe x16</div>
|
|
|
+ <div class="marker-line" style="top: 65%; left: 10%; width: 20%;"></div>
|
|
|
+
|
|
|
+ <!-- 4. Батарейка CMOS -->
|
|
|
<div class="marker" style="top: 70%; left: 20%;"></div>
|
|
|
- <div class="label" style="top: 80%; left: 15%;">Батарейка CMOS</div>
|
|
|
-
|
|
|
- <!-- SATA порты (справа внизу) -->
|
|
|
+ <div class="label" style="top: 85%; left: -5%;">Батарейка CMOS</div>
|
|
|
+ <div class="marker-line" style="top: 70%; left: 18%; transform: rotate(60deg); width: 10%;"></div>
|
|
|
+
|
|
|
+ <!-- 5. SATA порты -->
|
|
|
<div class="marker" style="top: 75%; left: 80%;"></div>
|
|
|
- <div class="label" style="top: 85%; left: 85%;">SATA порты</div>
|
|
|
+ <div class="label" style="top: 75%; left: 110%;">SATA порты</div>
|
|
|
+ <div class="marker-line" style="top: 75%; left: 85%; width: 10%;"></div>
|
|
|
</div>`,
|
|
|
|
|
|
cpu: `<div class="scene-title">Процессор (CPU)</div>
|