[img]https://upforme.ru/uploads/001c/c6/54/3/142445.png[/img]
[img]https://upforme.ru/uploads/001c/c6/54/3/41438.png[/img]
[img]https://upforme.ru/uploads/001c/c6/54/3/353569.png[/img]
https://upforme.ru/uploads/001c/c6/54/3/622236.png
DOKKAEBI |
Привет, Гость! Войдите или зарегистрируйтесь.
Вы здесь » DOKKAEBI » Новый форум » Коды картинки фигинки
[img]https://upforme.ru/uploads/001c/c6/54/3/142445.png[/img]
[img]https://upforme.ru/uploads/001c/c6/54/3/41438.png[/img]
[img]https://upforme.ru/uploads/001c/c6/54/3/353569.png[/img]
https://upforme.ru/uploads/001c/c6/54/3/622236.png
/* =========================================================
DOKKAEBI — ЛИЧНОЕ ЗВАНИЕ
========================================================= */
.dk-lz-name {
color: #d5ae6d !important;
font-family: Georgia, "Times New Roman", serif !important;
font-size: 12px !important;
font-weight: 700 !important;
line-height: 1.2 !important;
letter-spacing: 0.5px !important;
text-decoration: none !important;
}
.dk-lz-name:hover {
color: #f0d39e !important;
}
.dk-lz {
max-width: 210px;
color: #9e896d !important;
font-family: Arial, sans-serif !important;
font-size: 9px !important;
line-height: 1.45 !important;
text-align: center !important;
}Код:
/* =========================================================
DOKKAEBI — ЛИЧНОЕ ЗВАНИЕ
========================================================= */
Проба
[html]
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOKKAEBI · анкета с огоньками</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');
*{box-sizing:border-box;margin:0;padding:0;}
body{background:#0a0805;padding:40px 20px;font-family:'Jost',sans-serif;color:#e8d5a8;}
.page-title{text-align:center;font-family:'Cormorant Garamond',serif;font-size:34px;
font-weight:600;color:#f0c65a;letter-spacing:5px;text-transform:uppercase;margin-bottom:6px;}
.page-sub{text-align:center;color:#a9884e;font-size:12px;letter-spacing:3px;
text-transform:uppercase;margin-bottom:40px;}
.anketa{
max-width:600px;margin:0 auto;
background:#15100a;border:1px solid #6b5227;border-radius:20px;overflow:hidden;
position:relative;
}
/* слой огоньков — на всю карточку, поверх фона, под текстом */
.sparks{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1;}
.spark{
position:absolute;bottom:-10px;border-radius:50%;
background:radial-gradient(circle,#fadc9f 0%,#f0c65a 40%,rgba(240,198,90,0) 70%);
animation:rise linear infinite;
opacity:0;
}
@keyframes rise{
0%{transform:translateY(0) translateX(0) scale(1);opacity:0;}
10%{opacity:1;}
90%{opacity:.8;}
100%{transform:translateY(-620px) translateX(var(--drift)) scale(.3);opacity:0;}
}
.hero{
position:relative;z-index:2;padding:40px 30px 26px;text-align:center;
background:linear-gradient(rgba(10,8,5,.55),rgba(10,8,5,.9)),
url('https://picsum.photos/seed/dokk/640/360') center/cover;
}
.ava{width:110px;height:110px;border-radius:14px;object-fit:cover;
border:2px solid #d4a94e;box-shadow:0 6px 24px rgba(0,0,0,.6);margin-bottom:16px;}
.name{font-family:'Cormorant Garamond',serif;font-size:42px;font-weight:600;color:#f0c65a;
letter-spacing:2px;line-height:1;text-shadow:0 2px 14px rgba(240,198,90,.4);}
.face{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:16px;color:#e8d5a8;margin-top:8px;}
.pills{display:flex;justify-content:center;gap:12px;margin-top:20px;flex-wrap:wrap;}
.pill{border:1px solid #d4a94e;border-radius:20px;padding:6px 18px;
font-family:'Cormorant Garamond',serif;font-style:italic;font-size:14px;color:#d4a94e;
background:rgba(10,8,5,.4);}
.vals{display:flex;justify-content:center;gap:36px;margin-top:10px;font-size:12px;color:#c9b896;}
.body{position:relative;z-index:2;padding:26px 34px;font-size:14px;line-height:1.8;
color:#d8c9a0;text-align:justify;background:#15100a;}
</style>
</head>
<body>
<div class="page-title">Dokkaebi</div>
<div class="page-sub">анкета с летящими огоньками</div>
<div class="anketa">
<div class="sparks" id="sparks"></div>
<div class="hero">
<img class="ava" src="https://picsum.photos/seed/face1/200/200">
<div class="name">seo-yeon</div>
<div class="face">im yoona (aespa)</div>
<div class="pills">
<span class="pill">возраст</span>
<span class="pill">место</span>
<span class="pill">занятость</span>
</div>
<div class="vals"><span>24 года</span><span>сеул</span><span>переводчик</span></div>
</div>
<div class="body">Текст анкеты с любой нужной информацией о персонаже: характер, привычки, тайны прошлого. Огоньки поднимаются снизу вверх, создавая ощущение живой магии и звёздной пыли — как будто карточка дышит.</div>
</div>
<script>
(function(){
const box=document.getElementById('sparks');
const N=28;
for(let i=0;i<N;i++){
const s=document.createElement('div');
s.className='spark';
const size=2+Math.random()*5;
s.style.width=size+'px';
s.style.height=size+'px';
s.style.left=(Math.random()*100)+'%';
s.style.setProperty('--drift',(Math.random()*80-40)+'px');
const dur=5+Math.random()*7;
s.style.animationDuration=dur+'s';
s.style.animationDelay=(-Math.random()*dur)+'s';
box.appendChild(s);
}
})();
</script>
</body>
</html>
[/html]
[html]
<div class="dk-profile-builder" id="dkProfileBuilder">
<div class="dk-builder-heading">
Книга имён
</div>
<div class="dk-builder-intro">
Заполните поля под анкетой — все изменения сразу появятся
в предварительном просмотре. Готовый код можно перенести
в новую тему одним нажатием.
</div>
<div class="dk-profile-card dk-profile-card-clean">
<!-- Убираем ТОЛЬКО внешний звёздный фон под всей анкетой.
Внутренние тёмные панели, фото, рамки и искры остаются. -->
<style>
.dk-profile-card.dk-profile-card-clean {
background: transparent !important;
background-image: none !important;
background-color: transparent !important;
}
.dk-profile-card.dk-profile-card-clean::before,
.dk-profile-card.dk-profile-card-clean::after {
background: none !important;
background-image: none !important;
background-color: transparent !important;
}
</style>
<div class="dk-sparks" aria-hidden="true">
<i style="left:5%;width:4px;height:4px;animation-duration:7s;animation-delay:0s"></i>
<i style="left:12%;width:3px;height:3px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:19%;width:5px;height:5px;animation-duration:6s;animation-delay:4s"></i>
<i style="left:27%;width:2px;height:2px;animation-duration:10s;animation-delay:1s"></i>
<i style="left:34%;width:4px;height:4px;animation-duration:8s;animation-delay:5s"></i>
<i style="left:41%;width:3px;height:3px;animation-duration:7s;animation-delay:3s"></i>
<i style="left:48%;width:5px;height:5px;animation-duration:11s;animation-delay:0s"></i>
<i style="left:55%;width:2px;height:2px;animation-duration:6s;animation-delay:6s"></i>
<i style="left:62%;width:4px;height:4px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:69%;width:3px;height:3px;animation-duration:8s;animation-delay:4s"></i>
<i style="left:76%;width:5px;height:5px;animation-duration:7s;animation-delay:1s"></i>
<i style="left:83%;width:2px;height:2px;animation-duration:10s;animation-delay:5s"></i>
<i style="left:90%;width:4px;height:4px;animation-duration:9s;animation-delay:3s"></i>
<i style="left:96%;width:3px;height:3px;animation-duration:6s;animation-delay:0s"></i>
<i style="left:9%;width:2px;height:2px;animation-duration:12s;animation-delay:7s"></i>
<i style="left:23%;width:4px;height:4px;animation-duration:8s;animation-delay:6s"></i>
<i style="left:44%;width:3px;height:3px;animation-duration:10s;animation-delay:8s"></i>
<i style="left:58%;width:5px;height:5px;animation-duration:7s;animation-delay:4s"></i>
<i style="left:73%;width:2px;height:2px;animation-duration:11s;animation-delay:2s"></i>
<i style="left:88%;width:4px;height:4px;animation-duration:9s;animation-delay:6s"></i>
</div>
<div class="dk-profile-ornament">
<span>✦</span>
</div>
<div class="dk-profile-quote" data-preview="quote">
«У каждой маски есть имя, которое она скрывает»
</div>
<div class="dk-profile-main">
<div class="dk-profile-photo-box">
<div class="dk-profile-lotus dk-profile-lotus-top">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
<img
class="dk-profile-photo"
data-preview="photo"
src="https://r2.syntx.ai/user_6630003087/generated/ea68ab862a555b0f3f109034cd1e7fb6_00e475f7-bfde-479a-bdb4-8f7d2f5ad4c3_500.jpg"
alt="Фотография персонажа"
>
<div class="dk-profile-lotus dk-profile-lotus-bottom">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
</div>
<div class="dk-profile-info">
<div class="dk-profile-caption">
имя под маской
</div>
<div class="dk-profile-name-en" data-preview="nameEn">
NAME SURNAME
</div>
<div class="dk-profile-name-ru" data-preview="nameRu">
Имя Фамилия
</div>
<div class="dk-profile-divider">
<span>◆</span>
</div>
<div class="dk-profile-caption">
внешность
</div>
<div class="dk-profile-face" data-preview="face">
Имя Фамилия внешности
</div>
<div class="dk-profile-facts">
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
возраст
</span>
<span
class="dk-profile-fact-value"
data-preview="age"
>
00 лет
</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
сущность
</span>
<span
class="dk-profile-fact-value"
data-preview="race"
>
Раса или сущность
</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
занятие
</span>
<span
class="dk-profile-fact-value"
data-preview="job"
>
Профессия персонажа
</span>
</div>
</div>
</div>
</div>
<div class="dk-profile-story">
<div class="dk-profile-story-title">
<span>история под маской</span>
</div>
<div
class="dk-profile-story-text"
data-preview="story"
>
Здесь появится история вашего персонажа.
</div>
</div>
<div class="dk-profile-footer">
DOKKAEBI · ПО ТУ СТОРОНУ ЗАВЕСЫ
</div>
</div>
<div class="dk-builder-panel">
<div class="dk-builder-section">
<div class="dk-builder-section-title">
I. Образ персонажа
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field dk-builder-field-wide">
<span>Прямая ссылка на фотографию</span>
<input
type="url"
data-field="photo"
value="https://r2.syntx.ai/user_6630003087/generated/ea68ab862a555b0f3f109034cd1e7fb6_00e475f7-bfde-479a-bdb4-8f7d2f5ad4c3_500.jpg"
placeholder="https://адрес-изображения.jpg"
>
</label>
<label class="dk-builder-field dk-builder-field-wide">
<span>Цитата или строка из песни</span>
<textarea
data-field="quote"
placeholder="Введите цитату персонажа"
>«У каждой маски есть имя, которое она скрывает»</textarea>
</label>
</div>
</div>
<div class="dk-builder-section">
<div class="dk-builder-section-title">
II. Имя под маской
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field">
<span>Имя на английском</span>
<input
type="text"
data-field="nameEn"
value="NAME SURNAME"
>
</label>
<label class="dk-builder-field">
<span>Имя на русском</span>
<input
type="text"
data-field="nameRu"
value="Имя Фамилия"
>
</label>
<label class="dk-builder-field dk-builder-field-wide">
<span>Внешность</span>
<input
type="text"
data-field="face"
value="Имя Фамилия внешности"
>
</label>
</div>
</div>
<div class="dk-builder-section">
<div class="dk-builder-section-title">
III. Краткие сведения
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field">
<span>Возраст</span>
<input
type="text"
data-field="age"
value="00 лет"
>
</label>
<label class="dk-builder-field">
<span>Раса или сущность</span>
<input
type="text"
data-field="race"
value="Раса или сущность"
>
</label>
<label class="dk-builder-field dk-builder-field-wide">
<span>Профессия или занятие</span>
<input
type="text"
data-field="job"
value="Профессия персонажа"
>
</label>
</div>
</div>
<div class="dk-builder-section">
<div class="dk-builder-section-title">
IV. История персонажа
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field dk-builder-field-wide">
<span>Биография, характер и важные факты</span>
<textarea
data-field="story"
placeholder="Расскажите историю персонажа..."
>Здесь напишите историю персонажа, расскажите о его прошлом, характере, привычках и целях.</textarea>
</label>
</div>
</div>
<div class="dk-builder-actions">
<div
class="dk-builder-status"
data-builder-status
>
Вставьте свою ссылку на фотографию — изображение сменится автоматически.
</div>
<div class="dk-builder-buttons">
<button
class="dk-builder-button dk-builder-button-secondary"
type="button"
data-action="reset"
>
Вернуть пример
</button>
<button
class="dk-builder-button dk-builder-button-secondary"
type="button"
data-action="clear"
>
Очистить
</button>
<button
class="dk-builder-button"
type="button"
data-action="copy"
>
Скопировать анкету
</button>
</div>
</div>
</div>
<script>
(function () {
var root = document.getElementById('dkProfileBuilder');
if (!root || root.getAttribute('data-ready') === '1') {
return;
}
root.setAttribute('data-ready', '1');
/* =========================
ЭЛЕМЕНТЫ
========================= */
var fields = Array.prototype.slice.call(
root.querySelectorAll('[data-field]')
);
var previews = {};
Array.prototype.slice.call(
root.querySelectorAll('[data-preview]')
).forEach(function (el) {
previews[el.getAttribute('data-preview')] = el;
});
var status = root.querySelector('[data-builder-status]');
/* =========================
ИСХОДНЫЕ ЗНАЧЕНИЯ
========================= */
var initialValues = {};
fields.forEach(function (field) {
initialValues[field.getAttribute('data-field')] = field.value;
});
var initialPreview = {};
Object.keys(previews).forEach(function (key) {
if (key !== 'photo') {
initialPreview[key] = previews[key].textContent;
}
});
/* =========================
СТАТУС
========================= */
function setStatus(text) {
if (status) {
status.textContent = text;
}
}
/* =========================
ФОТО
========================= */
function setPhoto(url) {
var img = previews.photo;
if (!img) return;
url = (url || '').trim();
if (!url) {
img.removeAttribute('src');
img.style.visibility = 'hidden';
setStatus(
'Вставьте прямую ссылку на фотографию.'
);
return;
}
img.style.visibility = 'visible';
img.src = url;
}
if (previews.photo) {
previews.photo.addEventListener(
'error',
function () {
setStatus(
'Не удалось загрузить изображение. Проверьте прямую ссылку.'
);
}
);
previews.photo.addEventListener(
'load',
function () {
setStatus(
'Фотография загружена ✦'
);
}
);
}
/* =========================
ОБНОВЛЕНИЕ ПРЕДПРОСМОТРА
========================= */
function updateField(field) {
var key = field.getAttribute('data-field');
var value = (field.value || '').trim();
if (key === 'photo') {
setPhoto(value);
return;
}
var preview = previews[key];
if (!preview) return;
preview.textContent =
value ||
initialPreview[key] ||
'';
}
function updateAll() {
fields.forEach(function (field) {
updateField(field);
});
}
/* =========================
ВВОД
========================= */
fields.forEach(function (field) {
field.addEventListener(
'input',
function () {
updateField(field);
}
);
});
/* =========================
ВЕРНУТЬ ПРИМЕР
========================= */
function resetForm() {
fields.forEach(function (field) {
var key = field.getAttribute('data-field');
field.value =
initialValues[key] || '';
});
updateAll();
setStatus(
'Пример восстановлен.'
);
}
/* =========================
ОЧИСТИТЬ
========================= */
function clearForm() {
fields.forEach(function (field) {
field.value = '';
});
Object.keys(previews).forEach(
function (key) {
if (key === 'photo') {
return;
}
previews[key].textContent = '';
}
);
setPhoto('');
setStatus(
'Поля очищены.'
);
}
/* =========================
ЗАПАСНОЕ КОПИРОВАНИЕ
========================= */
function fallbackCopy(text) {
var textarea =
document.createElement('textarea');
textarea.value = text;
textarea.setAttribute(
'readonly',
''
);
textarea.style.position =
'fixed';
textarea.style.left =
'-99999px';
textarea.style.top =
'0';
document.body.appendChild(
textarea
);
textarea.focus();
textarea.select();
var success = false;
try {
success =
document.execCommand('copy');
} catch (error) {}
textarea.remove();
return success;
}
/* =========================
СКОПИРОВАТЬ АНКЕТУ
========================= */
function copyProfile() {
var card =
root.querySelector(
'.dk-profile-card'
);
if (!card) {
setStatus(
'Не удалось найти анкету.'
);
return;
}
/*
BBCode-теги намеренно собираются из частей.
Так форум не закрывает текущий HTML-блок
прямо внутри JavaScript.
*/
var openTag =
'[' + 'html]';
var closeTag =
'[/' + 'html]';
var code =
openTag +
'\n' +
card.outerHTML +
'\n' +
closeTag;
if (
navigator.clipboard &&
window.isSecureContext
) {
navigator.clipboard
.writeText(code)
.then(function () {
setStatus(
'Анкета скопирована ✦ Теперь вставьте код в новую тему.'
);
})
.catch(function () {
if (fallbackCopy(code)) {
setStatus(
'Анкета скопирована ✦'
);
} else {
setStatus(
'Браузер не разрешил автоматическое копирование.'
);
}
});
} else {
if (fallbackCopy(code)) {
setStatus(
'Анкета скопирована ✦'
);
} else {
setStatus(
'Не удалось скопировать код.'
);
}
}
}
/* =========================
КНОПКИ
========================= */
root.addEventListener(
'click',
function (event) {
var button =
event.target.closest(
'[data-action]'
);
if (!button) return;
var action =
button.getAttribute(
'data-action'
);
if (action === 'reset') {
resetForm();
}
if (action === 'clear') {
clearForm();
}
if (action === 'copy') {
copyProfile();
}
}
);
/* Первый запуск */
updateAll();
})();
</script>
</div>
[/html]
[html]
<div class="dk-profile-card dk-profile-card-clean">
<!---— Убираем ТОЛЬКО внешний звёздный фон под всей анкетой.
Внутренние тёмные панели, фото, рамки и искры остаются. ---->
<style>
.dk-profile-card.dk-profile-card-clean {
background: transparent !important;
background-image: none !important;
background-color: transparent !important;
}
.dk-profile-card.dk-profile-card-clean::before,
.dk-profile-card.dk-profile-card-clean::after {
background: none !important;
background-image: none !important;
background-color: transparent !important;
}
</style>
<div class="dk-sparks" aria-hidden="true">
<i style="left:5%;width:4px;height:4px;animation-duration:7s;animation-delay:0s"></i>
<i style="left:12%;width:3px;height:3px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:19%;width:5px;height:5px;animation-duration:6s;animation-delay:4s"></i>
<i style="left:27%;width:2px;height:2px;animation-duration:10s;animation-delay:1s"></i>
<i style="left:34%;width:4px;height:4px;animation-duration:8s;animation-delay:5s"></i>
<i style="left:41%;width:3px;height:3px;animation-duration:7s;animation-delay:3s"></i>
<i style="left:48%;width:5px;height:5px;animation-duration:11s;animation-delay:0s"></i>
<i style="left:55%;width:2px;height:2px;animation-duration:6s;animation-delay:6s"></i>
<i style="left:62%;width:4px;height:4px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:69%;width:3px;height:3px;animation-duration:8s;animation-delay:4s"></i>
<i style="left:76%;width:5px;height:5px;animation-duration:7s;animation-delay:1s"></i>
<i style="left:83%;width:2px;height:2px;animation-duration:10s;animation-delay:5s"></i>
<i style="left:90%;width:4px;height:4px;animation-duration:9s;animation-delay:3s"></i>
<i style="left:96%;width:3px;height:3px;animation-duration:6s;animation-delay:0s"></i>
<i style="left:9%;width:2px;height:2px;animation-duration:12s;animation-delay:7s"></i>
<i style="left:23%;width:4px;height:4px;animation-duration:8s;animation-delay:6s"></i>
<i style="left:44%;width:3px;height:3px;animation-duration:10s;animation-delay:8s"></i>
<i style="left:58%;width:5px;height:5px;animation-duration:7s;animation-delay:4s"></i>
<i style="left:73%;width:2px;height:2px;animation-duration:11s;animation-delay:2s"></i>
<i style="left:88%;width:4px;height:4px;animation-duration:9s;animation-delay:6s"></i>
</div>
<div class="dk-profile-ornament">
<span>✦</span>
</div>
<div class="dk-profile-quote" data-preview="quote">«У каждой маски есть имя, которое она скрывает»</div>
<div class="dk-profile-main">
<div class="dk-profile-photo-box">
<div class="dk-profile-lotus dk-profile-lotus-top">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
<img class="dk-profile-photo" data-preview="photo" src="https://upforme.ru/uploads/001c/c6/54/3/534211.png" alt="Фотография персонажа" style="visibility: visible;">
<div class="dk-profile-lotus dk-profile-lotus-bottom">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
</div>
<div class="dk-profile-info">
<div class="dk-profile-caption">
имя под маской
</div>
<div class="dk-profile-name-en" data-preview="nameEn">Скай</div>
<div class="dk-profile-name-ru" data-preview="nameRu">Моро</div>
<div class="dk-profile-divider">
<span>◆</span>
</div>
<div class="dk-profile-caption">
внешность
</div>
<div class="dk-profile-face" data-preview="face">АИ</div>
<div class="dk-profile-facts">
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
возраст
</span>
<span class="dk-profile-fact-value" data-preview="age">21 год</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
сущность
</span>
<span class="dk-profile-fact-value" data-preview="race">русалка</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
занятие
</span>
<span class="dk-profile-fact-value" data-preview="job">студентка</span>
</div>
</div>
</div>
</div>
<div class="dk-profile-story">
<div class="dk-profile-story-title">
<span>история под маской</span>
</div>
<div class="dk-profile-story-text" data-preview="story">Заебу</div>
</div>
<div class="dk-profile-footer">
DOKKAEBI · ПО ТУ СТОРОНУ ЗАВЕСЫ
</div>
</div>
[/html]
[html]
<div class="dk-profile-builder" id="dkProfileBuilder">
<div class="dk-builder-heading">
Книга имён
</div>
<div class="dk-builder-intro">
Заполните поля под анкетой — все изменения сразу появятся
в предварительном просмотре. Готовый код можно перенести
в новую тему одним нажатием.
</div>
<div class="dk-profile-card dk-profile-card-sideclip">
<!-- Звёздный фон сохраняем внутри большой золотой рамки,
но обрезаем лишние полосы по бокам. -->
<style>
.dk-profile-card.dk-profile-card-sideclip {
position: relative !important;
/* Не трогаем родной фон анкеты.
Только срезаем примерно по 52px слева и справа —
именно ту область, которая торчала за большой рамкой. */
-webkit-clip-path: inset(0 52px 0 52px round 30px);
clip-path: inset(0 52px 0 52px round 30px);
}
/* На узком экране не режем карточку по бокам. */
@media (max-width: 760px) {
.dk-profile-card.dk-profile-card-sideclip {
-webkit-clip-path: none !important;
clip-path: none !important;
}
}
</style>
<div class="dk-sparks" aria-hidden="true">
<i style="left:5%;width:4px;height:4px;animation-duration:7s;animation-delay:0s"></i>
<i style="left:12%;width:3px;height:3px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:19%;width:5px;height:5px;animation-duration:6s;animation-delay:4s"></i>
<i style="left:27%;width:2px;height:2px;animation-duration:10s;animation-delay:1s"></i>
<i style="left:34%;width:4px;height:4px;animation-duration:8s;animation-delay:5s"></i>
<i style="left:41%;width:3px;height:3px;animation-duration:7s;animation-delay:3s"></i>
<i style="left:48%;width:5px;height:5px;animation-duration:11s;animation-delay:0s"></i>
<i style="left:55%;width:2px;height:2px;animation-duration:6s;animation-delay:6s"></i>
<i style="left:62%;width:4px;height:4px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:69%;width:3px;height:3px;animation-duration:8s;animation-delay:4s"></i>
<i style="left:76%;width:5px;height:5px;animation-duration:7s;animation-delay:1s"></i>
<i style="left:83%;width:2px;height:2px;animation-duration:10s;animation-delay:5s"></i>
<i style="left:90%;width:4px;height:4px;animation-duration:9s;animation-delay:3s"></i>
<i style="left:96%;width:3px;height:3px;animation-duration:6s;animation-delay:0s"></i>
<i style="left:9%;width:2px;height:2px;animation-duration:12s;animation-delay:7s"></i>
<i style="left:23%;width:4px;height:4px;animation-duration:8s;animation-delay:6s"></i>
<i style="left:44%;width:3px;height:3px;animation-duration:10s;animation-delay:8s"></i>
<i style="left:58%;width:5px;height:5px;animation-duration:7s;animation-delay:4s"></i>
<i style="left:73%;width:2px;height:2px;animation-duration:11s;animation-delay:2s"></i>
<i style="left:88%;width:4px;height:4px;animation-duration:9s;animation-delay:6s"></i>
</div>
<div class="dk-profile-ornament">
<span>✦</span>
</div>
<div class="dk-profile-quote" data-preview="quote">
«У каждой маски есть имя, которое она скрывает»
</div>
<div class="dk-profile-main">
<div class="dk-profile-photo-box">
<div class="dk-profile-lotus dk-profile-lotus-top">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
<img
class="dk-profile-photo"
data-preview="photo"
src="https://r2.syntx.ai/user_6630003087/generated/ea68ab862a555b0f3f109034cd1e7fb6_00e475f7-bfde-479a-bdb4-8f7d2f5ad4c3_500.jpg"
alt="Фотография персонажа"
>
<div class="dk-profile-lotus dk-profile-lotus-bottom">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
</div>
<div class="dk-profile-info">
<div class="dk-profile-caption">
имя под маской
</div>
<div class="dk-profile-name-en" data-preview="nameEn">
NAME SURNAME
</div>
<div class="dk-profile-name-ru" data-preview="nameRu">
Имя Фамилия
</div>
<div class="dk-profile-divider">
<span>◆</span>
</div>
<div class="dk-profile-caption">
внешность
</div>
<div class="dk-profile-face" data-preview="face">
Имя Фамилия внешности
</div>
<div class="dk-profile-facts">
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
возраст
</span>
<span
class="dk-profile-fact-value"
data-preview="age"
>
00 лет
</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
сущность
</span>
<span
class="dk-profile-fact-value"
data-preview="race"
>
Раса или сущность
</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
занятие
</span>
<span
class="dk-profile-fact-value"
data-preview="job"
>
Профессия персонажа
</span>
</div>
</div>
</div>
</div>
<div class="dk-profile-story">
<div class="dk-profile-story-title">
<span>история под маской</span>
</div>
<div
class="dk-profile-story-text"
data-preview="story"
>
Здесь появится история вашего персонажа.
</div>
</div>
<div class="dk-profile-footer">
DOKKAEBI · ПО ТУ СТОРОНУ ЗАВЕСЫ
</div>
</div>
<div class="dk-builder-panel">
<div class="dk-builder-section">
<div class="dk-builder-section-title">
I. Образ персонажа
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field dk-builder-field-wide">
<span>Прямая ссылка на фотографию</span>
<input
type="url"
data-field="photo"
value="https://r2.syntx.ai/user_6630003087/generated/ea68ab862a555b0f3f109034cd1e7fb6_00e475f7-bfde-479a-bdb4-8f7d2f5ad4c3_500.jpg"
placeholder="https://адрес-изображения.jpg"
>
</label>
<label class="dk-builder-field dk-builder-field-wide">
<span>Цитата или строка из песни</span>
<textarea
data-field="quote"
placeholder="Введите цитату персонажа"
>«У каждой маски есть имя, которое она скрывает»</textarea>
</label>
</div>
</div>
<div class="dk-builder-section">
<div class="dk-builder-section-title">
II. Имя под маской
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field">
<span>Имя на английском</span>
<input
type="text"
data-field="nameEn"
value="NAME SURNAME"
>
</label>
<label class="dk-builder-field">
<span>Имя на русском</span>
<input
type="text"
data-field="nameRu"
value="Имя Фамилия"
>
</label>
<label class="dk-builder-field dk-builder-field-wide">
<span>Внешность</span>
<input
type="text"
data-field="face"
value="Имя Фамилия внешности"
>
</label>
</div>
</div>
<div class="dk-builder-section">
<div class="dk-builder-section-title">
III. Краткие сведения
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field">
<span>Возраст</span>
<input
type="text"
data-field="age"
value="00 лет"
>
</label>
<label class="dk-builder-field">
<span>Раса или сущность</span>
<input
type="text"
data-field="race"
value="Раса или сущность"
>
</label>
<label class="dk-builder-field dk-builder-field-wide">
<span>Профессия или занятие</span>
<input
type="text"
data-field="job"
value="Профессия персонажа"
>
</label>
</div>
</div>
<div class="dk-builder-section">
<div class="dk-builder-section-title">
IV. История персонажа
</div>
<div class="dk-builder-fields">
<label class="dk-builder-field dk-builder-field-wide">
<span>Биография, характер и важные факты</span>
<textarea
data-field="story"
placeholder="Расскажите историю персонажа..."
>Здесь напишите историю персонажа, расскажите о его прошлом, характере, привычках и целях.</textarea>
</label>
</div>
</div>
<div class="dk-builder-actions">
<div
class="dk-builder-status"
data-builder-status
>
Вставьте свою ссылку на фотографию — изображение сменится автоматически.
</div>
<div class="dk-builder-buttons">
<button
class="dk-builder-button dk-builder-button-secondary"
type="button"
data-action="reset"
>
Вернуть пример
</button>
<button
class="dk-builder-button dk-builder-button-secondary"
type="button"
data-action="clear"
>
Очистить
</button>
<button
class="dk-builder-button"
type="button"
data-action="copy"
>
Скопировать анкету
</button>
</div>
</div>
</div>
<script>
(function () {
var root = document.getElementById('dkProfileBuilder');
if (!root || root.getAttribute('data-ready') === '1') {
return;
}
root.setAttribute('data-ready', '1');
/* =========================
ЭЛЕМЕНТЫ
========================= */
var fields = Array.prototype.slice.call(
root.querySelectorAll('[data-field]')
);
var previews = {};
Array.prototype.slice.call(
root.querySelectorAll('[data-preview]')
).forEach(function (el) {
previews[el.getAttribute('data-preview')] = el;
});
var status = root.querySelector('[data-builder-status]');
/* =========================
ИСХОДНЫЕ ЗНАЧЕНИЯ
========================= */
var initialValues = {};
fields.forEach(function (field) {
initialValues[field.getAttribute('data-field')] = field.value;
});
var initialPreview = {};
Object.keys(previews).forEach(function (key) {
if (key !== 'photo') {
initialPreview[key] = previews[key].textContent;
}
});
/* =========================
СТАТУС
========================= */
function setStatus(text) {
if (status) {
status.textContent = text;
}
}
/* =========================
ФОТО
========================= */
function setPhoto(url) {
var img = previews.photo;
if (!img) return;
url = (url || '').trim();
if (!url) {
img.removeAttribute('src');
img.style.visibility = 'hidden';
setStatus(
'Вставьте прямую ссылку на фотографию.'
);
return;
}
img.style.visibility = 'visible';
img.src = url;
}
if (previews.photo) {
previews.photo.addEventListener(
'error',
function () {
setStatus(
'Не удалось загрузить изображение. Проверьте прямую ссылку.'
);
}
);
previews.photo.addEventListener(
'load',
function () {
setStatus(
'Фотография загружена ✦'
);
}
);
}
/* =========================
ОБНОВЛЕНИЕ ПРЕДПРОСМОТРА
========================= */
function updateField(field) {
var key = field.getAttribute('data-field');
var value = (field.value || '').trim();
if (key === 'photo') {
setPhoto(value);
return;
}
var preview = previews[key];
if (!preview) return;
preview.textContent =
value ||
initialPreview[key] ||
'';
}
function updateAll() {
fields.forEach(function (field) {
updateField(field);
});
}
/* =========================
ВВОД
========================= */
fields.forEach(function (field) {
field.addEventListener(
'input',
function () {
updateField(field);
}
);
});
/* =========================
ВЕРНУТЬ ПРИМЕР
========================= */
function resetForm() {
fields.forEach(function (field) {
var key = field.getAttribute('data-field');
field.value =
initialValues[key] || '';
});
updateAll();
setStatus(
'Пример восстановлен.'
);
}
/* =========================
ОЧИСТИТЬ
========================= */
function clearForm() {
fields.forEach(function (field) {
field.value = '';
});
Object.keys(previews).forEach(
function (key) {
if (key === 'photo') {
return;
}
previews[key].textContent = '';
}
);
setPhoto('');
setStatus(
'Поля очищены.'
);
}
/* =========================
ЗАПАСНОЕ КОПИРОВАНИЕ
========================= */
function fallbackCopy(text) {
var textarea =
document.createElement('textarea');
textarea.value = text;
textarea.setAttribute(
'readonly',
''
);
textarea.style.position =
'fixed';
textarea.style.left =
'-99999px';
textarea.style.top =
'0';
document.body.appendChild(
textarea
);
textarea.focus();
textarea.select();
var success = false;
try {
success =
document.execCommand('copy');
} catch (error) {}
textarea.remove();
return success;
}
/* =========================
СКОПИРОВАТЬ АНКЕТУ
========================= */
function copyProfile() {
var card =
root.querySelector(
'.dk-profile-card'
);
if (!card) {
setStatus(
'Не удалось найти анкету.'
);
return;
}
/*
BBCode-теги намеренно собираются из частей.
Так форум не закрывает текущий HTML-блок
прямо внутри JavaScript.
*/
var openTag =
'[' + 'html]';
var closeTag =
'[/' + 'html]';
var code =
openTag +
'\n' +
card.outerHTML +
'\n' +
closeTag;
if (
navigator.clipboard &&
window.isSecureContext
) {
navigator.clipboard
.writeText(code)
.then(function () {
setStatus(
'Анкета скопирована ✦ Теперь вставьте код в новую тему.'
);
})
.catch(function () {
if (fallbackCopy(code)) {
setStatus(
'Анкета скопирована ✦'
);
} else {
setStatus(
'Браузер не разрешил автоматическое копирование.'
);
}
});
} else {
if (fallbackCopy(code)) {
setStatus(
'Анкета скопирована ✦'
);
} else {
setStatus(
'Не удалось скопировать код.'
);
}
}
}
/* =========================
КНОПКИ
========================= */
root.addEventListener(
'click',
function (event) {
var button =
event.target.closest(
'[data-action]'
);
if (!button) return;
var action =
button.getAttribute(
'data-action'
);
if (action === 'reset') {
resetForm();
}
if (action === 'clear') {
clearForm();
}
if (action === 'copy') {
copyProfile();
}
}
);
/* Первый запуск */
updateAll();
})();
</script>
</div>
[/html]
[html]
<div class="dk-profile-card dk-profile-card-clean">
<!---— Убираем ТОЛЬКО внешний звёздный фон под всей анкетой.
Внутренние тёмные панели, фото, рамки и искры остаются. ---->
<style>
.dk-profile-card.dk-profile-card-clean {
background: transparent !important;
background-image: none !important;
background-color: transparent !important;
}
.dk-profile-card.dk-profile-card-clean::before,
.dk-profile-card.dk-profile-card-clean::after {
background: none !important;
background-image: none !important;
background-color: transparent !important;
}
</style>
<div class="dk-sparks" aria-hidden="true">
<i style="left:5%;width:4px;height:4px;animation-duration:7s;animation-delay:0s"></i>
<i style="left:12%;width:3px;height:3px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:19%;width:5px;height:5px;animation-duration:6s;animation-delay:4s"></i>
<i style="left:27%;width:2px;height:2px;animation-duration:10s;animation-delay:1s"></i>
<i style="left:34%;width:4px;height:4px;animation-duration:8s;animation-delay:5s"></i>
<i style="left:41%;width:3px;height:3px;animation-duration:7s;animation-delay:3s"></i>
<i style="left:48%;width:5px;height:5px;animation-duration:11s;animation-delay:0s"></i>
<i style="left:55%;width:2px;height:2px;animation-duration:6s;animation-delay:6s"></i>
<i style="left:62%;width:4px;height:4px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:69%;width:3px;height:3px;animation-duration:8s;animation-delay:4s"></i>
<i style="left:76%;width:5px;height:5px;animation-duration:7s;animation-delay:1s"></i>
<i style="left:83%;width:2px;height:2px;animation-duration:10s;animation-delay:5s"></i>
<i style="left:90%;width:4px;height:4px;animation-duration:9s;animation-delay:3s"></i>
<i style="left:96%;width:3px;height:3px;animation-duration:6s;animation-delay:0s"></i>
<i style="left:9%;width:2px;height:2px;animation-duration:12s;animation-delay:7s"></i>
<i style="left:23%;width:4px;height:4px;animation-duration:8s;animation-delay:6s"></i>
<i style="left:44%;width:3px;height:3px;animation-duration:10s;animation-delay:8s"></i>
<i style="left:58%;width:5px;height:5px;animation-duration:7s;animation-delay:4s"></i>
<i style="left:73%;width:2px;height:2px;animation-duration:11s;animation-delay:2s"></i>
<i style="left:88%;width:4px;height:4px;animation-duration:9s;animation-delay:6s"></i>
</div>
<div class="dk-profile-ornament">
<span>✦</span>
</div>
<div class="dk-profile-quote" data-preview="quote">«У каждой маски есть имя, которое она скрывает»</div>
<div class="dk-profile-main">
<div class="dk-profile-photo-box">
<div class="dk-profile-lotus dk-profile-lotus-top">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
<img class="dk-profile-photo" data-preview="photo" src="https://r2.syntx.ai/user_6630003087/generated/ea68ab862a555b0f3f109034cd1e7fb6_00e475f7-bfde-479a-bdb4-8f7d2f5ad4c3_500.jpg" alt="Фотография персонажа" style="visibility: visible;">
<div class="dk-profile-lotus dk-profile-lotus-bottom">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
</div>
<div class="dk-profile-info">
<div class="dk-profile-caption">
имя под маской
</div>
<div class="dk-profile-name-en" data-preview="nameEn">NAME SURNAME</div>
<div class="dk-profile-name-ru" data-preview="nameRu">Имя Фамилия</div>
<div class="dk-profile-divider">
<span>◆</span>
</div>
<div class="dk-profile-caption">
внешность
</div>
<div class="dk-profile-face" data-preview="face">Имя Фамилия внешности</div>
<div class="dk-profile-facts">
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
возраст
</span>
<span class="dk-profile-fact-value" data-preview="age">00 лет</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
сущность
</span>
<span class="dk-profile-fact-value" data-preview="race">Раса или сущность</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
занятие
</span>
<span class="dk-profile-fact-value" data-preview="job">Профессия персонажа</span>
</div>
</div>
</div>
</div>
<div class="dk-profile-story">
<div class="dk-profile-story-title">
<span>история под маской</span>
</div>
<div class="dk-profile-story-text" data-preview="story">Здесь напишите историю персонажа, расскажите о его прошлом, характере, привычках и целях.</div>
</div>
<div class="dk-profile-footer">
DOKKAEBI · ПО ТУ СТОРОНУ ЗАВЕСЫ
</div>
</div>
[/html]
Коды
[html]<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DOKKAEBI · мастерская образа</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');
:root{--1ft:'Cormorant Garamond',serif;--3ft:'Cormorant Garamond',serif;--4ft:'Jost',sans-serif;}
*{box-sizing:border-box;margin:0;padding:0;}
body{background:#0a0805;padding:30px 16px;font-family:var(--4ft);color:#e8d5a8;}
.dk-deco-builder{max-width:640px;margin:0 auto;background:#15100a;border:1px solid #6b5227;
border-radius:20px;padding:28px 30px;}
.dk-deco-heading{font-family:var(--3ft);font-size:26px;font-weight:600;color:#f0c65a;
letter-spacing:2px;text-transform:uppercase;text-align:center;margin-bottom:8px;}
.dk-deco-intro{font-size:12px;color:#a9884e;text-align:center;line-height:1.6;margin-bottom:24px;}
.dk-deco-preview{display:flex;justify-content:center;margin-bottom:26px;}
.dk-deco-card{width:240px;background:#1c150d;border:1px solid #6b5227;border-radius:18px;
padding:0 0 18px;position:relative;overflow:hidden;text-align:center;}
.dk-deco-back{height:110px;background-size:cover;background-position:center;
border-radius:18px 18px 0 0;position:relative;transition:background-image .3s;}
.dk-deco-back:after{content:"";position:absolute;inset:0;
background:linear-gradient(to bottom,transparent 40%,#1c150d 100%);}
.dk-deco-avatar{margin-top:-46px;position:relative;z-index:2;}
.dk-deco-avatar img{width:92px;height:92px;border-radius:14px;object-fit:cover;border:2px solid #6b5227;}
.dk-deco-macc{width:34px;height:34px;margin:-16px auto 0;position:relative;z-index:3;
border-radius:50%;background-size:cover;background-position:center;
border:2px solid #f0c65a;box-shadow:0 0 0 3px #1c150d;}
.dk-deco-nick{font-family:var(--1ft);font-size:14px;color:#d4a94e;letter-spacing:1px;
margin:10px 0;text-transform:uppercase;}
.dk-deco-plashka{width:180px;min-height:56px;margin:0 auto;padding:12px 10px;
border:1px solid #6b5227;border-radius:12px;overflow:hidden;background-size:cover;
background-position:center;position:relative;display:flex;flex-direction:column;
align-items:center;justify-content:center;gap:3px;}
.dk-deco-plashka:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.4);}
.dk-deco-plashka span{position:relative;z-index:1;text-shadow:0 1px 4px rgba(0,0,0,.9);}
.dk-q1{font-family:var(--3ft);font-style:italic;font-size:13px;color:#f0c65a;}
.dk-q2{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#e8d5a8;}
.dk-deco-section{margin-bottom:22px;}
.dk-deco-section-title{font-family:var(--3ft);font-size:15px;color:#d4a94e;letter-spacing:1px;
text-transform:uppercase;margin-bottom:12px;padding-bottom:6px;border-bottom:1px solid #6b5227;}
.dk-deco-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
.dk-deco-thumb{aspect-ratio:1;border-radius:12px;background-size:cover;background-position:center;
border:2px solid transparent;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s;}
.dk-deco-thumb:hover{transform:translateY(-3px);border-color:#a9884e;}
.dk-deco-thumb.is-active{border-color:#f0c65a;
box-shadow:0 0 0 2px rgba(240,198,90,.3),0 4px 14px rgba(240,198,90,.35);}
.dk-deco-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.dk-deco-field span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;
color:#a9884e;margin-bottom:5px;}
.dk-deco-field input{width:100%;box-sizing:border-box;background:#0d0a06;border:1px solid #6b5227;
border-radius:10px;color:#e8d5a8;padding:9px 13px;font-family:var(--4ft);font-size:13px;}
.dk-deco-field input:focus{outline:none;border-color:#f0c65a;box-shadow:0 0 0 3px rgba(201,164,76,.15);}
.dk-deco-actions{margin-top:24px;}
.dk-deco-status{font-size:11px;color:#a9884e;text-align:center;margin-bottom:14px;min-height:16px;}
.dk-deco-buttons{display:flex;justify-content:center;gap:12px;}
.dk-deco-button{border:none;border-radius:12px;padding:12px 24px;cursor:pointer;background:#f0c65a;
color:#1c150d;font-family:var(--4ft);font-weight:500;font-size:12px;text-transform:uppercase;
letter-spacing:1px;transition:all .25s;}
.dk-deco-button:hover{background:#fadc9f;box-shadow:0 4px 18px rgba(240,198,90,.4);}
.dk-deco-button-secondary{background:transparent;color:#a9884e;border:1px solid #6b5227;}
.dk-deco-button-secondary:hover{color:#f0c65a;border-color:#f0c65a;box-shadow:none;}
@media(max-width:600px){.dk-deco-gallery{grid-template-columns:repeat(3,1fr);}.dk-deco-fields{grid-template-columns:1fr;}}
</style>
</head>
<body>
<div class="dk-deco-builder" id="dkDecoBuilder">
<div class="dk-deco-heading">Мастерская образа</div>
<div class="dk-deco-intro">Нажмите на картинку — она сразу появится в предпросмотре. Готовый код скопируйте в доп. поля профиля.</div>
<div class="dk-deco-preview">
<div class="dk-deco-card">
<div class="dk-deco-back" data-slot="back"></div>
<div class="dk-deco-avatar"><img src="https://picsum.photos/seed/dokface/180/180"></div>
<div class="dk-deco-macc" data-slot="macc"></div>
<div class="dk-deco-nick">персонаж</div>
<div class="dk-deco-plashka" data-slot="plashka">
<span class="dk-q1" data-slot="q1">огонь может спасти</span>
<span class="dk-q2" data-slot="q2">а может убить</span>
</div>
</div>
</div>
<div class="dk-deco-section"><div class="dk-deco-section-title">I. Фон профиля</div>
<div class="dk-deco-gallery" data-gallery="back"></div></div>
<div class="dk-deco-section"><div class="dk-deco-section-title">II. Знак под аватаром</div>
<div class="dk-deco-gallery" data-gallery="macc"></div></div>
<div class="dk-deco-section"><div class="dk-deco-section-title">III. Фон плашки</div>
<div class="dk-deco-gallery" data-gallery="plashka"></div></div>
<div class="dk-deco-section"><div class="dk-deco-section-title">IV. Строки на плашке</div>
<div class="dk-deco-fields">
<label class="dk-deco-field"><span>Первая строка</span><input type="text" data-quote="q1" value="огонь может спасти"></label>
<label class="dk-deco-field"><span>Вторая строка</span><input type="text" data-quote="q2" value="а может убить"></label>
</div></div>
<div class="dk-deco-actions">
<div class="dk-deco-status" data-deco-status>Выберите картинки и настройте строки — код обновится сам.</div>
<div class="dk-deco-buttons">
<button class="dk-deco-button dk-deco-button-secondary" type="button" data-action="clear">Сбросить</button>
<button class="dk-deco-button" type="button" data-action="copy">Скопировать код</button>
</div>
</div>
</div>
<script>
(function(){
var GALLERY={
back:['https://picsum.photos/seed/b1/400/200','https://picsum.photos/seed/b2/400/200','https://picsum.photos/seed/b3/400/200','https://picsum.photos/seed/b4/400/200'],
macc:['https://picsum.photos/seed/m1/80/80','https://picsum.photos/seed/m2/80/80','https://picsum.photos/seed/m3/80/80','https://picsum.photos/seed/m4/80/80'],
plashka:['https://picsum.photos/seed/p1/300/90','https://picsum.photos/seed/p2/300/90','https://picsum.photos/seed/p3/300/90','https://picsum.photos/seed/p4/300/90']
};
var root=document.getElementById('dkDecoBuilder');
var chosen={back:'',macc:'',plashka:''};
var status=root.querySelector('[data-deco-status]');
function setStatus(t){if(status)status.textContent=t;}
Object.keys(GALLERY).forEach(function(type){
var box=root.querySelector('[data-gallery="'+type+'"]');
GALLERY[type].forEach(function(url){
var t=document.createElement('div');t.className='dk-deco-thumb';
t.style.backgroundImage='url('+url+')';t.setAttribute('data-url',url);t.setAttribute('data-type',type);
box.appendChild(t);
});
});
root.addEventListener('click',function(e){
var th=e.target.closest('.dk-deco-thumb');if(!th)return;
var type=th.getAttribute('data-type'),url=th.getAttribute('data-url');
chosen[type]=url;
root.querySelectorAll('[data-gallery="'+type+'"] .dk-deco-thumb').forEach(function(x){x.classList.remove('is-active');});
th.classList.add('is-active');apply();setStatus('Выбрано ✦');
});
function apply(){
var b=root.querySelector('[data-slot="back"]'),m=root.querySelector('[data-slot="macc"]'),p=root.querySelector('[data-slot="plashka"]');
if(b)b.style.backgroundImage=chosen.back?'url('+chosen.back+')':'';
if(m)m.style.backgroundImage=chosen.macc?'url('+chosen.macc+')':'';
if(p)p.style.backgroundImage=chosen.plashka?'url('+chosen.plashka+')':'';
}
root.querySelectorAll('[data-quote]').forEach(function(inp){
inp.addEventListener('input',function(){
var el=root.querySelector('[data-slot="'+inp.getAttribute('data-quote')+'"]');
if(el)el.textContent=inp.value;
});
});
root.addEventListener('click',function(e){
var b=e.target.closest('[data-action]');if(!b)return;
var a=b.getAttribute('data-action');
if(a==='clear'){chosen={back:'',macc:'',plashka:''};
root.querySelectorAll('.dk-deco-thumb').forEach(function(x){x.classList.remove('is-active');});apply();setStatus('Сброшено.');}
if(a==='copy'){
var q1=root.querySelector('[data-quote="q1"]').value,q2=root.querySelector('[data-quote="q2"]').value;
var code='фон: <div class="prof-back" style="background-image:url('+(chosen.back||'ССЫЛКА')+')"></div>\n'+
'знак: <div class="macc" style="background-image:url('+(chosen.macc||'ССЫЛКА')+')"></div>\n'+
'плашка: <div class="plashka" style="background:url('+(chosen.plashka||'ССЫЛКА')+') center no-repeat"><q0><q1>'+q1+'</q1><q2>'+q2+'</q2></q0></div>';
navigator.clipboard.writeText(code).then(function(){setStatus('Код скопирован ✦');}).catch(function(){setStatus('Код готов (см. консоль).');console.log(code);});
}
});
})();
</script>
</body>
</html>[/html]
[html]
<div class="dk-profile-card dk-profile-card-sideclip">
<!---— Звёздный фон сохраняем внутри большой золотой рамки,
но обрезаем лишние полосы по бокам. ---->
<style>
.dk-profile-card.dk-profile-card-sideclip {
position: relative !important;
/* Не трогаем родной фон анкеты.
Только срезаем примерно по 52px слева и справа —
именно ту область, которая торчала за большой рамкой. */
-webkit-clip-path: inset(0 52px 0 52px round 30px);
clip-path: inset(0 52px 0 52px round 30px);
}
/* На узком экране не режем карточку по бокам. */
@media (max-width: 760px) {
.dk-profile-card.dk-profile-card-sideclip {
-webkit-clip-path: none !important;
clip-path: none !important;
}
}
</style>
<div class="dk-sparks" aria-hidden="true">
<i style="left:5%;width:4px;height:4px;animation-duration:7s;animation-delay:0s"></i>
<i style="left:12%;width:3px;height:3px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:19%;width:5px;height:5px;animation-duration:6s;animation-delay:4s"></i>
<i style="left:27%;width:2px;height:2px;animation-duration:10s;animation-delay:1s"></i>
<i style="left:34%;width:4px;height:4px;animation-duration:8s;animation-delay:5s"></i>
<i style="left:41%;width:3px;height:3px;animation-duration:7s;animation-delay:3s"></i>
<i style="left:48%;width:5px;height:5px;animation-duration:11s;animation-delay:0s"></i>
<i style="left:55%;width:2px;height:2px;animation-duration:6s;animation-delay:6s"></i>
<i style="left:62%;width:4px;height:4px;animation-duration:9s;animation-delay:2s"></i>
<i style="left:69%;width:3px;height:3px;animation-duration:8s;animation-delay:4s"></i>
<i style="left:76%;width:5px;height:5px;animation-duration:7s;animation-delay:1s"></i>
<i style="left:83%;width:2px;height:2px;animation-duration:10s;animation-delay:5s"></i>
<i style="left:90%;width:4px;height:4px;animation-duration:9s;animation-delay:3s"></i>
<i style="left:96%;width:3px;height:3px;animation-duration:6s;animation-delay:0s"></i>
<i style="left:9%;width:2px;height:2px;animation-duration:12s;animation-delay:7s"></i>
<i style="left:23%;width:4px;height:4px;animation-duration:8s;animation-delay:6s"></i>
<i style="left:44%;width:3px;height:3px;animation-duration:10s;animation-delay:8s"></i>
<i style="left:58%;width:5px;height:5px;animation-duration:7s;animation-delay:4s"></i>
<i style="left:73%;width:2px;height:2px;animation-duration:11s;animation-delay:2s"></i>
<i style="left:88%;width:4px;height:4px;animation-duration:9s;animation-delay:6s"></i>
</div>
<div class="dk-profile-ornament">
<span>✦</span>
</div>
<div class="dk-profile-quote" data-preview="quote">«У каждой маски есть имя, которое она скрывает»</div>
<div class="dk-profile-main">
<div class="dk-profile-photo-box">
<div class="dk-profile-lotus dk-profile-lotus-top">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
<img class="dk-profile-photo" data-preview="photo" src="https://r2.syntx.ai/user_6630003087/generated/ea68ab862a555b0f3f109034cd1e7fb6_00e475f7-bfde-479a-bdb4-8f7d2f5ad4c3_500.jpg" alt="Фотография персонажа" style="visibility: visible;">
<div class="dk-profile-lotus dk-profile-lotus-bottom">
<i></i><i></i><i></i><i></i>
<i></i><i></i><i></i>
</div>
</div>
<div class="dk-profile-info">
<div class="dk-profile-caption">
имя под маской
</div>
<div class="dk-profile-name-en" data-preview="nameEn">Скай</div>
<div class="dk-profile-name-ru" data-preview="nameRu">Моро</div>
<div class="dk-profile-divider">
<span>◆</span>
</div>
<div class="dk-profile-caption">
внешность
</div>
<div class="dk-profile-face" data-preview="face">Сучья</div>
<div class="dk-profile-facts">
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
возраст
</span>
<span class="dk-profile-fact-value" data-preview="age">18</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
сущность
</span>
<span class="dk-profile-fact-value" data-preview="race">русалка</span>
</div>
<div class="dk-profile-fact">
<span class="dk-profile-fact-label">
занятие
</span>
<span class="dk-profile-fact-value" data-preview="job">студентка</span>
</div>
</div>
</div>
</div>
<div class="dk-profile-story">
<div class="dk-profile-story-title">
<span>история под маской</span>
</div>
<div class="dk-profile-story-text" data-preview="story">ПУПУПУП</div>
</div>
<div class="dk-profile-footer">
DOKKAEBI · ПО ТУ СТОРОНУ ЗАВЕСЫ
</div>
</div>
[/html]
Вы здесь » DOKKAEBI » Новый форум » Коды картинки фигинки