Badge logo Update

This commit is contained in:
2026-03-11 11:02:11 -04:00
parent 81785aecf9
commit de19c2e2b6
3 changed files with 48 additions and 44 deletions

BIN
assets/images/badge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -2319,75 +2319,82 @@ html, .cl-body {
bottom: 20px;
right: 20px;
z-index: 9999;
width: 40px;
height: 40px;
border-radius: 50%;
background: #111119;
border: 1px solid rgba(255, 255, 255, 0.15);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.3s ease, opacity 0.3s ease;
opacity: 0.7;
transition: transform 0.25s ease, border-color 0.25s ease;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cl-designer-badge:hover {
opacity: 1;
transform: scale(1.1);
transform: scale(1.08);
border-color: var(--cl-accent, #d4a24e);
}
[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);
}
[data-theme="light"] .cl-designer-badge:hover {
border-color: var(--cl-accent, #d4a24e);
}
.cl-designer-badge__logo {
width: 36px;
height: 36px;
display: block;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.cl-designer-badge__logo--dark {
display: block;
}
.cl-designer-badge__logo--light {
display: none;
}
[data-theme="light"] .cl-designer-badge__logo--dark {
display: none;
}
[data-theme="light"] .cl-designer-badge__logo--light {
width: 26px;
height: 26px;
display: block;
border-radius: 50%;
object-fit: contain;
}
.cl-designer-badge__tooltip {
position: absolute;
bottom: calc(100% + 10px);
right: 0;
background: var(--cl-glass, rgba(12, 12, 25, 0.85));
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--cl-border, rgba(255, 255, 255, 0.08));
border-radius: var(--cl-radius-sm, 10px);
padding: 10px 14px;
background: #111119;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
padding: 8px 12px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transform: translateY(6px);
transition: opacity 0.25s ease, transform 0.25s ease;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
transform: translateY(4px);
transition: opacity 0.2s ease, transform 0.2s ease;
}
.cl-designer-badge__tooltip.active {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
[data-theme="light"] .cl-designer-badge__tooltip {
background: #ffffff;
border-color: rgba(0, 0, 0, 0.12);
}
.cl-designer-badge__tooltip::after {
content: "";
position: absolute;
bottom: -6px;
right: 12px;
width: 12px;
height: 12px;
background: var(--cl-glass, rgba(12, 12, 25, 0.85));
border-right: 1px solid var(--cl-border, rgba(255, 255, 255, 0.08));
border-bottom: 1px solid var(--cl-border, rgba(255, 255, 255, 0.08));
bottom: -5px;
right: 14px;
width: 8px;
height: 8px;
background: inherit;
border-right: 1px solid rgba(255, 255, 255, 0.12);
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
transform: rotate(45deg);
}
[data-theme="light"] .cl-designer-badge__tooltip::after {
border-color: rgba(0, 0, 0, 0.12);
}
.cl-designer-badge__tooltip a {
color: var(--cl-accent, #d4a24e);
text-decoration: none;
font-size: 13px;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.02em;
transition: color 0.2s ease;
}
.cl-designer-badge__tooltip a:hover {
color: var(--cl-accent-hover, #c4922e);
text-decoration: underline;
}

View File

@@ -863,12 +863,10 @@ module CommunityLanding
end
def render_designer_badge
dark_logo = File.join(CommunityLanding::PLUGIN_DIR, "assets", "images", "badge-dark.png")
light_logo = File.join(CommunityLanding::PLUGIN_DIR, "assets", "images", "badge-light.png")
logo_path = File.join(CommunityLanding::PLUGIN_DIR, "assets", "images", "badge.png")
begin
dark_b64 = Base64.strict_encode64(File.binread(dark_logo))
light_b64 = Base64.strict_encode64(File.binread(light_logo))
logo_b64 = Base64.strict_encode64(File.binread(logo_path))
rescue StandardError
return ""
end
@@ -878,8 +876,7 @@ module CommunityLanding
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 << " </div>\n"
html << " <img class=\"cl-designer-badge__logo cl-designer-badge__logo--dark\" src=\"data:image/png;base64,#{dark_b64}\" alt=\"Designer\">\n"
html << " <img class=\"cl-designer-badge__logo cl-designer-badge__logo--light\" src=\"data:image/png;base64,#{light_b64}\" alt=\"Designer\">\n"
html << " <img class=\"cl-designer-badge__logo\" src=\"data:image/png;base64,#{logo_b64}\" alt=\"Designer\">\n"
html << "</div>\n"
html
end