Skip to content

Commit b7b7b76

Browse files
fix: dark mode card styling, shiny cursor on landing, footer links, and browser back blank page fix
1 parent 17cf301 commit b7b7b76

4 files changed

Lines changed: 44 additions & 4 deletions

File tree

‎frontend/css/landing.css‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,3 +1891,32 @@ html[data-theme='night'] body.landing-page {
18911891
html[data-theme='night'] .landing-header {
18921892
background: rgba(26, 21, 18, 0.92);
18931893
}
1894+
1895+
html[data-theme='night'] .landing-card,
1896+
html[data-theme='night'] .metric-card,
1897+
html[data-theme='night'] .contributor-card,
1898+
html[data-theme='night'] .contributors-panel,
1899+
html[data-theme='night'] .footer-grid,
1900+
html[data-theme='night'] .footer-banner,
1901+
html[data-theme='night'] .quote-card,
1902+
html[data-theme='night'] .workflow-step {
1903+
background: rgba(255, 255, 255, 0.05);
1904+
}
1905+
html[data-theme='night'] .feature-card i,
1906+
html[data-theme='night'] .carousel-btn,
1907+
html[data-theme='night'] .contributors-toggle,
1908+
html[data-theme='night'] .social-links a,
1909+
html[data-theme='night'] .landing-anchors a,
1910+
html[data-theme='night'] .contributors-refresh-note,
1911+
html[data-theme='night'] .contributor-item,
1912+
html[data-theme='night'] .footer-pill,
1913+
html[data-theme='night'] .landing-icon-btn,
1914+
html[data-theme='night'] .btn-ghost {
1915+
background: rgba(255, 255, 255, 0.1);
1916+
}
1917+
html[data-theme='night'] .social-links a:hover,
1918+
html[data-theme='night'] .landing-anchors a:hover,
1919+
html[data-theme='night'] .landing-icon-btn:hover,
1920+
html[data-theme='night'] .btn-ghost:hover {
1921+
background: rgba(255, 255, 255, 0.15);
1922+
}

‎frontend/js/footer.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ const createFooter = () => {
2525
<nav class="footer-nav" aria-label="Footer Navigation">
2626
<h3>Explore</h3>
2727
<ul>
28-
<li><a href="${pagePath('index')}">Discovery</a></li>
28+
<li><a href="${pagePath('app')}">Discovery</a></li>
2929
<li><a href="${pagePath('vault')}">My Vault</a></li>
3030
<li><a href="${pagePath('library')}">My Library</a></li>
3131
<li><a href="${pagePath('chat')}">Literary Chat</a></li>
3232
<li><a href="${pagePath('auth')}">Account</a></li>
3333
<li>
34-
<a href="https://github.com/devanshi14malhotra/BiblioDrift" target="_blank" rel="noopener noreferrer">
35-
Repository
34+
<a href="${pagePath('index')}" target="_blank" rel="noopener noreferrer">
35+
Home Page
3636
</a>
3737
</li>
3838
</ul>

‎frontend/js/landing-interactions.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,9 @@
211211
});
212212
});
213213
})();
214+
215+
window.addEventListener('pageshow', function(event) {
216+
if (event.persisted) {
217+
document.body.classList.remove('is-leaving');
218+
}
219+
});

‎frontend/pages/index.html‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,6 +1920,10 @@
19201920
</head>
19211921

19221922
<body class="landing-page">
1923+
<div id="sc-glow-outer"></div>
1924+
<div id="sc-glow-mid"></div>
1925+
<div id="sc-glow-inner"></div>
1926+
<div id="sc-dot"></div>
19231927
<div class="landing-shell">
19241928
<header class="landing-header">
19251929
<a class="landing-brand" href="index.html" aria-label="BiblioDrift home">
@@ -1954,7 +1958,7 @@ <h1>Find yourself in the pages.</h1>
19541958
Explore softly, collect meaningfully, and step into the shelves when you are ready.
19551959
</p>
19561960
<div class="landing-cta-group">
1957-
<a class="btn-primary landing-cta-primary app-link" href="index.html#discover-shelves"><i
1961+
<a class="btn-primary landing-cta-primary app-link" href="app.html#discover-shelves"><i
19581962
class="fa-solid fa-wand-magic-sparkles"></i> Explore Project</a>
19591963
<a class="btn-ghost app-link" href="app.html"><i class="fa-solid fa-arrow-right"></i> Get
19601964
Started</a>
@@ -2664,6 +2668,7 @@ <h3>Connect</h3>
26642668

26652669
<script src="../js/theme-manager.js"></script>
26662670
<script src="../js/landing-interactions.js"></script>
2671+
<script src="../js/ambient.js"></script>
26672672
</body>
26682673

26692674
</html>

0 commit comments

Comments
 (0)