Skip to content

Commit

Permalink
Fix logo
Browse files Browse the repository at this point in the history
  • Loading branch information
falkodev committed Dec 16, 2024
1 parent 84903db commit 058d265
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/modules/asset/ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default () => {
const headerDotLottie = new DotLottie({
autoplay: false,
loop: true,
canvas: document.querySelector('.pdl-header__logo'),
canvas: document.querySelector('.pdl-header__logo--desktop'),
data: headerJsonData,
})
headerTitle.addEventListener('mouseenter', () => {
Expand Down
9 changes: 6 additions & 3 deletions server/modules/asset/ui/src/scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ main,
}
}

.pdl-header__title {
display: none;
.pdl-header__title--desktop {
display: flex;
visibility: hidden;
position: relative;
align-items: center;
margin-left: 25px;

Expand All @@ -106,12 +108,13 @@ main,
}

@media (min-width: map-get($breakpoints, 'md')) {
display: flex;
visibility: visible;
}
}

.pdl-header__title--mobile {
display: block;
position: absolute;
margin-left: 12px;

@media (min-width: map-get($breakpoints, 'md')) {
Expand Down
4 changes: 2 additions & 2 deletions server/views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
{% block beforeMain %}
<div class="pdl-wrapper {%- if data.user %} logged-in {% endif -%}">
<header class="pdl-header">
<a href="/{{ data.locale }}" class="pdl-header__title">
<canvas class="pdl-header__logo"></canvas>
<a href="/{{ data.locale }}" class="pdl-header__title pdl-header__title--desktop">
<canvas class="pdl-header__logo pdl-header__logo--desktop"></canvas>
<span>Public Domain Library</span>
</a>
<a href="/" class="pdl-header__title pdl-header__title--mobile">
Expand Down

0 comments on commit 058d265

Please sign in to comment.