Skip to content

Commit c64d5fc

Browse files
author
CSL
committed
fix: update Jekyll config and styles for dark theme
1 parent 4c2d593 commit c64d5fc

3 files changed

Lines changed: 107 additions & 259 deletions

File tree

docs/_config.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
title: AiCash
22
description: Smart AI Usage Tracker for macOS
33
github_repo: SSBun/AiCash
4-
theme: minima
4+
5+
# Disable default theme
6+
theme: null
7+
plugins: []
58

69
# Build settings
710
markdown: kramdown
@@ -13,10 +16,4 @@ exclude:
1316
- Gemfile.lock
1417
- node_modules
1518
- vendor
16-
17-
# Default values
18-
defaults:
19-
- scope:
20-
path: ""
21-
values:
22-
layout: default
19+
- .ruby-version

docs/_layouts/default.html

Lines changed: 11 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
overflow-x: hidden;
4848
}
4949

50-
/* Animated Background */
5150
.bg-effects {
5251
position: fixed;
5352
top: 0;
@@ -120,7 +119,6 @@
120119
z-index: 1;
121120
}
122121

123-
/* Header */
124122
header {
125123
padding: 20px 0;
126124
position: fixed;
@@ -129,10 +127,7 @@
129127
right: 0;
130128
z-index: 1000;
131129
transition: all 0.3s ease;
132-
}
133-
134-
header.scrolled {
135-
background: rgba(10, 10, 15, 0.8);
130+
background: rgba(10, 10, 15, 0.9);
136131
backdrop-filter: blur(20px);
137132
border-bottom: 1px solid var(--border);
138133
}
@@ -180,25 +175,10 @@
180175
position: relative;
181176
}
182177

183-
nav a::after {
184-
content: '';
185-
position: absolute;
186-
bottom: -4px;
187-
left: 0;
188-
width: 0;
189-
height: 2px;
190-
background: var(--gradient-1);
191-
transition: width 0.3s ease;
192-
}
193-
194178
nav a:hover {
195179
color: var(--text);
196180
}
197181

198-
nav a:hover::after {
199-
width: 100%;
200-
}
201-
202182
.btn {
203183
display: inline-flex;
204184
align-items: center;
@@ -233,14 +213,13 @@
233213

234214
.btn-secondary:hover {
235215
background: var(--surface-hover);
236-
border-color: var(--text-muted);
237216
}
238217

239-
/* Footer */
240218
footer {
241219
padding: 60px 0;
242220
border-top: 1px solid var(--border);
243221
text-align: center;
222+
background: var(--surface);
244223
}
245224

246225
footer .container {
@@ -282,11 +261,6 @@
282261
}
283262
}
284263
</style>
285-
{% if page.extra_styles %}
286-
<style>
287-
{{ page.extra_styles }}
288-
</style>
289-
{% endif %}
290264
</head>
291265
<body>
292266
<div class="bg-effects">
@@ -296,7 +270,7 @@
296270
<div class="bg-grid"></div>
297271
</div>
298272

299-
<header id="header">
273+
<header>
300274
<div class="container">
301275
<a href="{{ '/' | relative_url }}" class="logo">
302276
<div class="logo-icon">💰</div>
@@ -333,39 +307,24 @@
333307
</footer>
334308

335309
<script>
336-
// Header scroll effect
337-
const header = document.getElementById('header');
338-
window.addEventListener('scroll', () => {
339-
if (window.scrollY > 50) {
340-
header.classList.add('scrolled');
341-
} else {
342-
header.classList.remove('scrolled');
343-
}
310+
document.addEventListener('mousemove', (e) => {
311+
const x = (e.clientX / window.innerWidth - 0.5) * 20;
312+
const y = (e.clientY / window.innerHeight - 0.5) * 20;
313+
document.querySelectorAll('.bg-orb').forEach((orb, index) => {
314+
const speed = (index + 1) * 0.5;
315+
orb.style.transform = `translate(${x * speed}px, ${y * speed}px)`;
316+
});
344317
});
345318

346-
// Smooth scroll for anchor links
347319
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
348320
anchor.addEventListener('click', function(e) {
349321
e.preventDefault();
350322
const target = document.querySelector(this.getAttribute('href'));
351323
if (target) {
352-
target.scrollIntoView({
353-
behavior: 'smooth',
354-
block: 'start'
355-
});
324+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
356325
}
357326
});
358327
});
359-
360-
// Parallax effect on mouse move
361-
document.addEventListener('mousemove', (e) => {
362-
const x = (e.clientX / window.innerWidth - 0.5) * 20;
363-
const y = (e.clientY / window.innerHeight - 0.5) * 20;
364-
document.querySelectorAll('.bg-orb').forEach((orb, index) => {
365-
const speed = (index + 1) * 0.5;
366-
orb.style.transform = `translate(${x * speed}px, ${y * speed}px)`;
367-
});
368-
});
369328
</script>
370329
</body>
371330
</html>

0 commit comments

Comments
 (0)