diff --git a/public/assets/css/partials/footer.css b/public/assets/css/partials/footer.css index b9e1092..afb8d88 100644 --- a/public/assets/css/partials/footer.css +++ b/public/assets/css/partials/footer.css @@ -48,9 +48,9 @@ footer a:hover { footer div.discord-server-card-wrapper { z-index: 2; justify-self: end; + position: relative; } footer div.discord-server-card { - position: relative; background: var(--bg-shade-2); border-radius: 12px; padding: 30px 90px 30px 36px; @@ -82,15 +82,55 @@ footer div.discord-server-card svg { stroke-width: 3px; margin-right: 4px; } -footer div.discord-server-card::after { - content: ""; +footer div.discord-server-card-wrapper .bandwidth-raccoon-wrapper { position: absolute; top: -120px; right: 0px; + z-index: -1; +} +footer div.discord-server-card-wrapper img.bandwidth-raccoon { width: 192px; height: 192px; - background: no-repeat center/cover url(/assets/images/bandwidth.svg); - z-index: -1; + cursor: pointer; + transform: none; + transition: transform 150ms; +} +footer div.bandwidth-raccoon-wrapper.speak img.bandwidth-raccoon { + transform: rotate(12deg) translateY(-12px); +} +footer .bandwidth-raccoon-wrapper .text-bubble { + position: absolute; + right: 0; + margin: 0 auto; + top: -24px; + max-width: min(200%, 90vw); + width: max-content; + background: var(--bg-shade-3); + padding: 18px; + align-self: center; + margin-bottom: 12px; + border-radius: 12px; + box-sizing: border-box; + transform: translateY(-100%); + opacity: 0; + pointer-events: none; + transition: opacity 250ms; +} +footer .bandwidth-raccoon-wrapper.speak .text-bubble { + opacity: 1; +} +footer .bandwidth-raccoon-wrapper .text-bubble:after { + content: ""; + position: absolute; + display: block; + width: 0; + z-index: 1; + border-style: solid; + border-color: var(--bg-shade-3) transparent; + border-width: 10px 10px 0; + bottom: -10px; + right: 60px; + margin-left: -10px; } @media screen and (max-width: 900px) { @@ -107,7 +147,17 @@ footer div.discord-server-card::after { width: 100%; justify-self: normal; } - footer div.discord-server-card::after { + footer div.discord-server-card-wrapper::before { + content: ""; + width: 100%; + height: 60px; + position: absolute; + bottom: -60px; + left: 0; + background: var(--bg-shade-0); + z-index: 2; + } + footer div.discord-server-card-wrapper .bandwidth-raccoon-wrapper { bottom: -72px; top: unset; z-index: 0; @@ -134,7 +184,7 @@ footer div.discord-server-card::after { padding: 30px; overflow: visible; } - footer div.discord-server-card::after { + footer div.discord-server-card-wrapper .bandwidth-raccoon-wrapper { bottom: unset; top: -120px; z-index: -1; @@ -142,7 +192,7 @@ footer div.discord-server-card::after { } @media screen and (max-width: 320px) { - footer div.discord-server-card::after { + footer div.discord-server-card-wrapper .bandwidth-raccoon-wrapper { display: none; } } diff --git a/views/partials/footer.handlebars b/views/partials/footer.handlebars index f041bf9..901e7cf 100644 --- a/views/partials/footer.handlebars +++ b/views/partials/footer.handlebars @@ -53,5 +53,38 @@ {{ localeHelper locale "footer.widget.button" }} +
I'm a raccoon, and I love eating grapes!
+