Badge Refinement

This commit is contained in:
2026-03-11 11:22:41 -04:00
parent de19c2e2b6
commit 9029396fca
2 changed files with 21 additions and 12 deletions

View File

@@ -2328,8 +2328,8 @@ html, .cl-body {
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.25s ease, border-color 0.25s ease;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
transition: transform 0.3s ease, border-color 0.3s ease;
box-shadow: none;
}
.cl-designer-badge:hover {
transform: scale(1.08);
@@ -2338,7 +2338,7 @@ html, .cl-body {
[data-theme="light"] .cl-designer-badge {
background: #ffffff;
border-color: rgba(0, 0, 0, 0.12);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
box-shadow: none;
}
[data-theme="light"] .cl-designer-badge:hover {
border-color: var(--cl-accent, #d4a24e);
@@ -2353,20 +2353,21 @@ html, .cl-body {
.cl-designer-badge__tooltip {
position: absolute;
bottom: calc(100% + 10px);
right: 0;
right: 50%;
transform: translateX(50%) translateY(4px);
background: #111119;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
padding: 8px 12px;
padding: 8px 14px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transform: translateY(4px);
transition: opacity 0.2s ease, transform 0.2s ease;
text-align: center;
}
.cl-designer-badge__tooltip.active {
opacity: 1;
transform: translateY(0);
transform: translateX(50%) translateY(0);
pointer-events: auto;
}
[data-theme="light"] .cl-designer-badge__tooltip {
@@ -2377,7 +2378,7 @@ html, .cl-body {
content: "";
position: absolute;
bottom: -5px;
right: 14px;
right: calc(50% - 4px);
width: 8px;
height: 8px;
background: inherit;
@@ -2389,12 +2390,20 @@ html, .cl-body {
border-color: rgba(0, 0, 0, 0.12);
}
.cl-designer-badge__tooltip a {
color: var(--cl-accent, #d4a24e);
color: #e8b84f;
text-decoration: none;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.02em;
letter-spacing: 0.06em;
display: inline-flex;
align-items: center;
}
.cl-designer-badge__tooltip a:hover {
text-decoration: underline;
color: #f0c866;
}
[data-theme="light"] .cl-designer-badge__tooltip a {
color: #1a6dd4;
}
[data-theme="light"] .cl-designer-badge__tooltip a:hover {
color: #1458b0;
}

View File

@@ -874,7 +874,7 @@ module CommunityLanding
html = +""
html << "<div class=\"cl-designer-badge\" id=\"cl-designer-badge\">\n"
html << " <div class=\"cl-designer-badge__tooltip\" id=\"cl-designer-tooltip\">\n"
html << " <a href=\"https://www.dpnmw.com\" target=\"_blank\" rel=\"noopener noreferrer\">Interface design by dpnmw.com</a>\n"
html << " <a href=\"https://www.dpnmw.com\" target=\"_blank\" rel=\"noopener noreferrer\">INTERFACE BY <u>DPN MW</u> <svg width=\"10\" height=\"10\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"vertical-align:middle;margin-left:2px\"><path d=\"M3.5 1.5H10.5V8.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M10.5 1.5L1.5 10.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/></svg></a>\n"
html << " </div>\n"
html << " <img class=\"cl-designer-badge__logo\" src=\"data:image/png;base64,#{logo_b64}\" alt=\"Designer\">\n"
html << "</div>\n"