Skip to content

Commit 940a3fa

Browse files
Merge PR #482: Enhanced the footer section (maintainer merge with small fixes)
2 parents a0bf98c + ad50a32 commit 940a3fa

3 files changed

Lines changed: 60 additions & 10 deletions

File tree

‎frontend/css/style.css‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5491,3 +5491,49 @@ input:checked+.slider:before {
54915491
justify-content: flex-end;
54925492
}
54935493
}
5494+
5495+
5496+
.footer-logo {
5497+
height: 40px;
5498+
width: auto;
5499+
}
5500+
5501+
.logo {
5502+
display: flex;
5503+
align-items: center;
5504+
gap: 0.6rem;
5505+
font-size: 1.3rem;
5506+
font-weight: bold;
5507+
}
5508+
5509+
.main-footer {
5510+
5511+
padding: 4rem 2rem 1rem;
5512+
}
5513+
5514+
.footer-container {
5515+
display: grid;
5516+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
5517+
gap: 2rem;
5518+
}
5519+
5520+
.footer-container a {
5521+
5522+
text-decoration: none;
5523+
transition: color 0.3s ease;
5524+
}
5525+
5526+
5527+
5528+
.social-icons {
5529+
display: flex;
5530+
gap: 1rem;
5531+
}
5532+
5533+
.footer-bottom {
5534+
text-align: center;
5535+
margin-top: 3rem;
5536+
padding-top: 1rem;
5537+
border-top: 1px solid #374151;
5538+
}
5539+

‎frontend/js/footer.js‎

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
const createFooter = () => {
2+
const year = new Date().getFullYear();
3+
24
const footerHTML = `
35
<footer class="main-footer">
46
<div class="footer-container">
57
<!-- Brand Section -->
68
<div class="footer-brand">
7-
<a href="/index.html" class="logo">
8-
<img style="height: 40px" src="/assets/images/biblioDrift_favicon.png" alt="BiblioDrift Logo"> BiblioDrift
9+
<a href="/index.html" class="logo" aria-label="BiblioDrift Home">
10+
<img class="footer-logo" src="/assets/images/biblioDrift_favicon.png" alt="BiblioDrift Logo"> BiblioDrift
911
</a>
1012
<p class="footer-tagline">"There is no frigate like a book to take us lands away."</p>
1113
<p class="footer-subtext">&mdash; Emily Dickinson</p>
1214
</div>
1315
1416
<!-- Quick Links -->
15-
<div class="footer-nav">
17+
<nav class="footer-nav" aria-label="Footer Navigation">
1618
<h3>Explore</h3>
1719
<ul>
1820
<li><a href="/index.html">Discovery</a></li>
1921
<li><a href="/library.html">My Library</a></li>
2022
<li><a href="/chat.html">Literary Chat</a></li>
2123
<li><a href="/auth.html">Account</a></li>
2224
</ul>
23-
</div>
25+
</nav>
2426
2527
<div class="footer-legal">
2628
<h3>Legal</h3>
@@ -35,22 +37,24 @@ const createFooter = () => {
3537
<h3>Connect</h3>
3638
<div class="social-icons">
3739
<a href="https://www.linkedin.com/in/devanshi5malhotra/" target="_blank" rel="noopener noreferrer" title="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
38-
<a href="#" title="Instagram"><i class="fab fa-instagram"></i></a>
39-
<a href="#" title="Facebook"><i class="fab fa-facebook-f"></i></a>
40-
<a href="https://github.com/devanshi14malhotra/BiblioDrift" target="_blank" rel="noopener noreferrer" title="GitHub">
40+
<a href="#" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
41+
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
42+
<a href="https://github.com/devanshi14malhotra/BiblioDrift" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
4143
<i class="fa-brands fa-github"></i>
4244
</a>
4345
</div>
4446
</div>
4547
</div>
4648
4749
<div class="footer-bottom">
48-
<p>&copy; 2026 BiblioDrift. Curated with <i class="fa-solid fa-heart"></i> for book lovers.</p>
50+
<p>&copy; ${year} BiblioDrift. Curated with <i class="fa-solid fa-heart"></i> for book lovers.</p>
4951
</div>
5052
</footer>
5153
`;
5254

53-
document.body.insertAdjacentHTML('beforeend', footerHTML);
55+
if (!document.querySelector('.main-footer')) {
56+
document.body.insertAdjacentHTML('beforeend', footerHTML);
57+
}
5458
};
5559

5660
createFooter();

‎scratch/test_cache_namespacing.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Add backend to path
77
sys.path.append(os.path.join(os.getcwd(), 'backend'))
88

9-
from cache_service import CacheConfig, CacheNamespace, CacheKey, cache_service
9+
from cache_service import CacheConfig, CacheNamespace, CacheKey, cache_service, cached_result
1010

1111
def test_cache_key_generation():
1212
print("Testing Cache Key Generation...")

0 commit comments

Comments
 (0)