diff --git a/assets/images/badge.png b/assets/images/badge.png new file mode 100644 index 0000000..18bf420 Binary files /dev/null and b/assets/images/badge.png differ diff --git a/assets/stylesheets/community_landing/landing.css b/assets/stylesheets/community_landing/landing.css index f939886..1d5b1bd 100644 --- a/assets/stylesheets/community_landing/landing.css +++ b/assets/stylesheets/community_landing/landing.css @@ -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; } \ No newline at end of file diff --git a/lib/community_landing/page_builder.rb b/lib/community_landing/page_builder.rb index 3abfd24..02e3062 100644 --- a/lib/community_landing/page_builder.rb +++ b/lib/community_landing/page_builder.rb @@ -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 << "