Enhance sidebar author section with improved avatar size, layout adjustments, and bio display

This commit is contained in:
interlope committed 2026-06-01 21:39:07 +02:00
1 parent ebcf4bb3e0
commit 73dfdc895e
2 files changed
+20 -39

No files matched your search

+11 -28
View File
@@ -982,6 +982,7 @@ img.nav-svg-icon {
padding-bottom: 1.2rem; padding-bottom: 1.2rem;
margin-bottom: 1.2rem; margin-bottom: 1.2rem;
border-bottom: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
text-align: center;
} }
.sidebar-author-label { .sidebar-author-label {
@@ -991,22 +992,21 @@ img.nav-svg-icon {
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.08em; letter-spacing: 0.08em;
color: var(--text-muted); color: var(--text-muted);
margin-bottom: 0.6rem; margin-bottom: 0.85rem;
} }
.sidebar-author-identity { .sidebar-author-identity {
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.6rem;
margin-bottom: 0.75rem;
} }
.sidebar-author-avatar { .sidebar-author-avatar {
width: 80px; width: 100px;
height: 80px; height: 100px;
border-radius: 50%; border-radius: 50%;
object-fit: cover; object-fit: cover;
flex-shrink: 0;
border: 2px solid var(--border-color); border: 2px solid var(--border-color);
transition: transform 0.2s ease; transition: transform 0.2s ease;
} }
@@ -1017,35 +1017,18 @@ img.nav-svg-icon {
.sidebar-author-name { .sidebar-author-name {
font-weight: 700; font-weight: 700;
font-size: 0.95rem; font-size: 1.1rem;
color: var(--text-primary); color: var(--text-primary);
line-height: 1.3; line-height: 1.3;
} }
.sidebar-author-bio { .sidebar-author-bio {
color: var(--text-secondary); color: var(--accent);
font-size: var(--font-size-xs); font-size: var(--font-size-xs);
margin: 0.2rem 0 0; margin: 0.15rem 0 0;
line-height: 1.4; line-height: 1.4;
} opacity: 0.75;
text-shadow: 0 0 12px var(--accent);
.sidebar-author-social {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.sidebar-social-icon {
width: 1.1rem;
height: 1.1rem;
opacity: 0.55;
transition: opacity 0.2s ease, transform 0.2s ease;
filter: var(--social-icon-filter);
}
.sidebar-author-social a:hover .sidebar-social-icon {
opacity: 1;
transform: translateY(-2px);
} }
.plugin { .plugin {
+9 -11
View File
@@ -12,17 +12,15 @@
<a href="<?php echo Theme::siteUrl() ?>"> <a href="<?php echo Theme::siteUrl() ?>">
<img class="sidebar-author-avatar" src="<?php echo DOMAIN_THEME . 'img/spleenftw.jpeg' ?>" alt="<?php echo htmlspecialchars($page->username(), ENT_QUOTES, 'UTF-8') ?>" /> <img class="sidebar-author-avatar" src="<?php echo DOMAIN_THEME . 'img/spleenftw.jpeg' ?>" alt="<?php echo htmlspecialchars($page->username(), ENT_QUOTES, 'UTF-8') ?>" />
</a> </a>
<div> <div class="sidebar-author-name"><?php echo htmlspecialchars($page->username(), ENT_QUOTES, 'UTF-8') ?></div>
<div class="sidebar-author-name"><?php echo htmlspecialchars($page->username(), ENT_QUOTES, 'UTF-8') ?></div> <?php
<?php // Bio: set in Bludit Admin → Settings → General → Description
// Bio: set in Bludit Admin → Settings → General → Description // Falls back to Slogan if Description is empty.
// Falls back to Slogan if Description is empty. $_authorBio = $site->description() ?: $site->slogan();
$_authorBio = $site->description() ?: $site->slogan(); ?>
?> <?php if ($_authorBio) : ?>
<?php if ($_authorBio) : ?> <p class="sidebar-author-bio"><?php echo htmlspecialchars($_authorBio, ENT_QUOTES, 'UTF-8') ?></p>
<p class="sidebar-author-bio"><?php echo htmlspecialchars($_authorBio, ENT_QUOTES, 'UTF-8') ?></p> <?php endif ?>
<?php endif ?>
</div>
</div> </div>
</div> </div>
<?php endif ?> <?php endif ?>