123
Генератор личного звания
Сообщений 1 страница 2 из 2
Поделиться2Вчера 05:38:30
[html]<style>
:root {
--font-ui: 'GT Eesti Pro Display', system-ui, sans-serif;
}
.generator-container {
display: flex;
flex-direction: column;
gap: 20px;
width: 875px;
max-width: 1200px;
margin: 0px auto 0;
background-color: rgb(var(--text-primary), .04);
background-image: var(--temp-bg);
background-repeat: no-repeat;
border: 1px solid rgba(174, 174, 174, 0.5);
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
padding: 30px;
border-radius: 10px;
box-sizing: border-box;
position: relative;
font-family: var(--font-ui);
}
.generator-container * {
box-sizing: border-box;
}
.generator-container .fitting-block-prof ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
width: 212px;
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: flex-start;
padding-bottom: 15px;
border-bottom: 1px solid rgba(174, 174, 174, 0.4);
width: 100%;
position: relative;
z-index: 5;
}
.tool-btn, .custom-select-btn, .control-wrapper {
height: 32px;
display: flex;
align-items: center;
box-sizing: border-box;
background: rgba(233, 233, 233, 1);
border: 1px solid rgba(174, 174, 174, 0.5);
border-radius: 5px;
color: rgba(70, 70, 70, 1);
padding: 0 12px;
cursor: pointer;
font-size: 11px;
text-transform: lowercase;
transition: all 0.3s ease;
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.05);
}
.tool-btn:hover, .custom-select-btn:hover, .control-wrapper:hover {
background-color: rgba(246, 246, 246, 0.8);
border-color: rgba(120, 120, 120, 0.6);
transform: translateY(-1px);
}
.control-wrapper {
padding: 0 8px;
gap: 6px;
}
.control-wrapper input[type="color"] {
width: 16px;
height: 16px;
padding: 0;
border: none;
background: none;
cursor: pointer;
}
.custom-select-container {
position: relative;
display: inline-block;
}
.custom-select-btn {
gap: 6px;
user-select: none;
margin: 0;
}
.custom-dropdown-list {
display: none;
position: absolute;
top: calc(100% + 4px);
left: 0;
background: rgba(233, 233, 233, 0.98);
border: 1px solid rgba(174, 174, 174, 0.7);
border-radius: 6px;
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
min-width: 100%;
max-height: 220px;
overflow-y: auto;
z-index: 9999;
}
.custom-dropdown-list::-webkit-scrollbar { width: 5px; }
.custom-dropdown-list::-webkit-scrollbar-track { background: transparent; }
.custom-dropdown-list::-webkit-scrollbar-thumb { background: rgba(174, 174, 174, 0.8); border-radius: 3px; }
.custom-dropdown-item {
padding: 8px 12px;
cursor: pointer;
font-size: 11px;
white-space: nowrap;
color: rgba(70, 70, 70, 1);
border-bottom: 1px solid rgba(174, 174, 174, 0.2);
transition: all 0.2s;
text-transform: none;
}
.custom-dropdown-item:hover {
background: rgba(206, 206, 206, 0.6);
padding-left: 15px;
}
.generator-container .workspace {
display: grid;
grid-template-columns: 260px 1fr;
gap: 20px;
width: 100%;
position: relative;
z-index: 4;
margin-top: 15px;
}
.generator-container .fitting-block-prof {
width: 246px;
margin-top: 10px !importan;
background: rgba(233, 233, 233, 1);
border: 1px solid rgba(174, 174, 174, 0.5);
border-radius: 8px;
padding: 15px;
padding-top: 34px;
box-sizing: border-box;
font-size: 11px;
align-self: start;
}
.generator-container .fitting-block-prof ul {
list-style: none;
padding: 0;
margin: 0;
margin-top: 10px;
display: flex;
flex-direction: column;
gap: 0px;
}
.generator-container .fitting-block-prof .fitting-bg {top: 10px}
.generator-container .pa-fld5.fitting-plaque {
margin-left: -5px;
}
.generator-container .fitting-block-prof .fitting-bg img {
object-fit: cover;
border-radius: 4px;
border: 1px solid rgba(174, 174, 174, 0.4);
}
.generator-container .fitting-block-prof .fitting-avatar img {
max-width: 180px;
max-height: 180px;
object-fit: cover;
border-radius: 4px;
border: 1px solid rgba(174, 174, 174, 0.4);
}
.right-side-workspace {
display: flex;
flex-direction: column;
gap: 15px;
}
.editor-area textarea {
width: 100%;
height: 120px;
background: rgba(246, 246, 246, 0.9);
color: rgba(70, 70, 70, 1);
border: 1px solid rgba(174, 174, 174, 0.5);
border-radius: 6px;
padding: 10px;
font-family: monospace;
font-size: 11px;
line-height: 1.4;
resize: vertical;
box-sizing: border-box;
transition: all 0.3s;
}
.generator-container .editor-area textarea:focus {
outline: none;
border-color: rgba(70, 70, 70, 0.8);
background: #fff;
box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
.generator-container #char-counter {
position: absolute;
bottom: 8px;
right: 8px;
font-size: 10px;
color: rgba(70, 70, 70, 0.5);
padding: 2px 6px;
pointer-events: none;
background: rgba(233, 233, 233, 0.8);
border-radius: 4px;
}
.generator-container .preview-box {
background: rgba(246, 246, 246, 0.6);
border: 1px solid rgba(174, 174, 174, 0.5);
border-radius: 8px;
padding: 15px;
min-height: 130px;
position: relative;
flex-grow: 1;
box-sizing: border-box;
}
.generator-container .preview-box ul li,
.generator-container .preview-box ul {
height: 100%;
}
.generator-container .preview-box::before {
content: "sys.preview";
position: absolute;
top: 6px;
left: 10px;
font-size: 9px;
color: rgba(70, 70, 70, 0.5);
font-family: monospace;
letter-spacing: 1px;
text-transform: lowercase;
pointer-events: none;
}
.generator-container .actions {
display: flex;
justify-content: flex-end;
}
.generator-container .btn-secondary,
.generator-container .btn-primary {
background: rgba(233, 231, 224, 1);
color: rgba(70, 70, 70, 1);
border: 1px solid rgba(174, 174, 174, 0.6);
padding: 8px 18px;
border-radius: 6px;
cursor: pointer;
font-size: 11px;
font-family: 'Playfair Display', serif;
font-weight: 600;
text-transform: lowercase;
transition: all 0.3s;
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1);
}
.generator-container .btn-secondary:hover,
.generator-container .btn-primary:hover {
background: rgba(246, 246, 246, 1);
border-color: rgba(70, 70, 70, 0.8);
transform: translateY(-1px);
}
.generator-container .notification {
position: fixed;
bottom: 30px;
right: 30px;
background: rgba(233, 233, 233, 0.95);
color: rgba(70, 70, 70, 1);
padding: 10px 20px;
border-radius: 6px;
font-size: 11px;
text-transform: lowercase;
opacity: 0;
transition: opacity 0.3s;
pointer-events: none;
z-index: 10000;
border: 1px solid rgba(174, 174, 174, 0.6);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.generator-container .notification {
position: fixed;
bottom: 50px;
right: 50px;
background: rgba(15, 15, 15, 0.85);
color: #ffffff;
font-family: 'Inter', sans-serif;
font-size: 13px;
letter-spacing: 0.5px;
padding: 10px 18px;
border-radius: 6px;
pointer-events: none;
opacity: 0;
z-index: 9999;
}
.generator-container .notification.show {
animation: toastAnim 1.5s forwards ease-out;
}
@keyframes toastAnim {
0% {
opacity: 0;
transform: translateY(20px);
}
15% {
opacity: 1;
transform: translateY(0);
}
70% {
opacity: 1;
transform: translateY(0);
}
100% {
opacity: 0;
transform: translateY(-30px);
}
}
</style>
<section class="generator-container" data-title="sys.override">
<div class="toolbar" id="toolbar"></div>
<div class="workspace">
<!------------------- Левая колонка ------------------------------------->
<div class="fitting-block-prof">
<ul>
<li class="pa-fld1 fitting-bg">
<img src='https://forumstatic.ru/files/001c/85/6d/39868.png' />
</li>
<li class="pa-author fitting-author"><a href='#'>username</a></li>
<li class="pa-title">тестовый статус</li>
<li class="pa-avatar fitting-avatar"><img src='https://forumstatic.ru/files/001c/85/6d/39868.png' /></li>
<li class="pa-fld2 fitting-lz" style='margin-bottom: 5px;'>
<lz> <a href="#" style="cursor: pointer;"> Имя Фамилия </a> <span> краткое описание </span> Где-то глубоко внутри киберпространства... </lz>
</li>
<li class="pa-fld5 fitting-plaque">
<div class="plaque" style="background: linear-gradient(45deg, black, #788b7b, #0d6c5b);">
<p>первая строка текста</p><p>вторая строка текста</p>
</div>
<proficon><img src="https://forumstatic.ru/files/001c/17/76/35191.png"></proficon>
</li>
</ul>
</div>
<!----------------------------------- Правая колонка ------------------------------------>
<div class="right-side-workspace">
<div class="preview-box">
<ul style="list-style:none; padding:0; margin:0; width: 100%; display: flex; justify-content: center;">
<li class="pa-fld2 fitting-lz" style="width: 100%;">
<lz id="lz-preview" contenteditable="true" style="outline: none; display: block;"></lz>
</li>
</ul>
</div>
<div class="editor-area">
<div style="position: relative;">
<textarea id="lz-input" maxlength="999"></textarea>
<div id="char-counter">0/999</div>
</div>
</div>
<div class="actions">
<!-- ДОБАВЛЕНА КНОПКА СБРОСА -->
<button class="btn-secondary" id="reset-btn" style="margin-right: 10px;">сбросить</button>
<button class="btn-primary" id="copy-btn">скопировать код</button>
</div>
</div>
</div>
<div class="notification" id="notification">данные скопированы</div>
</section>
[/html][hideprofile]
