Skip to content

Commit 689a517

Browse files
committed
[DOC] change title + sidebar
1 parent 83cb15c commit 689a517

File tree

2 files changed

+80
-9
lines changed

2 files changed

+80
-9
lines changed

docs/source/_static/css/custom.css

Lines changed: 59 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/* ============================================
55
Google Font Import for Hero Title
66
============================================ */
7-
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700&display=swap');
7+
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700&display=swap');
88

99
/* ============================================
1010
PyData Theme Color Overrides (purple theme)
@@ -110,21 +110,71 @@ html[data-theme="dark"] {
110110
}
111111

112112
.hero-title {
113-
font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
113+
font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
114114
font-size: 3.5rem;
115-
font-weight: 700;
115+
font-weight: 300;
116116
color: #ffffff;
117-
margin: 0 0 1rem 0;
118-
letter-spacing: -0.02em;
117+
margin: 0 0 3.5rem 0;
118+
letter-spacing: 0.25em;
119+
text-transform: uppercase;
119120
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
120121
}
121122

122123
.hero-tagline {
123-
font-size: 1.75rem;
124-
font-weight: 600;
125-
color: #ffffff;
124+
font-size: 1.25rem;
125+
font-weight: 400;
126+
color: rgba(255, 255, 255, 0.9);
126127
margin: 0 0 0.5rem 0;
127-
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
128+
letter-spacing: 0.05em;
129+
font-style: italic;
130+
}
131+
132+
/* ============================================
133+
Back to Top Button
134+
============================================ */
135+
.back-to-top {
136+
position: fixed;
137+
bottom: 2rem;
138+
right: 2rem;
139+
width: 44px;
140+
height: 44px;
141+
background: var(--hyperactive-primary);
142+
color: white;
143+
border: none;
144+
border-radius: 8px;
145+
cursor: pointer;
146+
display: flex;
147+
align-items: center;
148+
justify-content: center;
149+
font-size: 1.25rem;
150+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
151+
opacity: 0;
152+
visibility: hidden;
153+
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
154+
z-index: 1000;
155+
}
156+
157+
.back-to-top.visible {
158+
opacity: 1;
159+
visibility: visible;
160+
}
161+
162+
.back-to-top:hover {
163+
transform: translateY(-3px);
164+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
165+
}
166+
167+
html[data-theme="dark"] .back-to-top {
168+
background: var(--hyperactive-secondary);
169+
}
170+
171+
@media (max-width: 768px) {
172+
.back-to-top {
173+
bottom: 1rem;
174+
right: 1rem;
175+
width: 40px;
176+
height: 40px;
177+
}
128178
}
129179

130180
.hero-subtitle {

docs/source/index.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ alongside direct interfaces to Optuna and scikit-learn optimizers.
5757

5858
----
5959

60+
.. _features:
61+
6062
Features
6163
================
6264

@@ -341,6 +343,9 @@ Get started in just a few lines of code:
341343
</div>
342344
</div>
343345

346+
<!-- Back to Top Button -->
347+
<button class="back-to-top" id="backToTop" aria-label="Back to top">↑</button>
348+
344349
<script>
345350
document.addEventListener('DOMContentLoaded', function() {
346351
// Handle vertical tabs (Quick Example)
@@ -392,6 +397,22 @@ Get started in just a few lines of code:
392397
});
393398
});
394399
});
400+
401+
// Back to Top button
402+
const backToTop = document.getElementById('backToTop');
403+
if (backToTop) {
404+
window.addEventListener('scroll', function() {
405+
if (window.scrollY > 400) {
406+
backToTop.classList.add('visible');
407+
} else {
408+
backToTop.classList.remove('visible');
409+
}
410+
});
411+
412+
backToTop.addEventListener('click', function() {
413+
window.scrollTo({ top: 0, behavior: 'smooth' });
414+
});
415+
}
395416
});
396417
</script>
397418

0 commit comments

Comments
 (0)