Skip to content

Commit 5e2a9ba

Browse files
Add dark mode
1 parent b1ee4d4 commit 5e2a9ba

10 files changed

Lines changed: 490 additions & 9 deletions

File tree

_includes/head.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@
1111
<meta charset="utf-8">
1212
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
1313
<meta property="og:locale" content="en_US">
14+
<script>
15+
(function () {
16+
var theme = 'light';
17+
try {
18+
var storedTheme = localStorage.getItem('jtd-theme');
19+
if (storedTheme === 'dark') {
20+
theme = 'dark';
21+
}
22+
} catch (error) {
23+
}
24+
25+
document.documentElement.classList.toggle('dark', theme === 'dark');
26+
document.documentElement.classList.toggle('light', theme !== 'dark');
27+
})();
28+
</script>
1429

1530
{% if page.name == 'index.md' %}
1631
<title>{{ page.title | default: site.name }}</title>
@@ -61,6 +76,7 @@
6176

6277
<link rel="stylesheet" href="/assets/styles.css" />
6378
<link rel="stylesheet" href="/assets/syntax.css" />
79+
<script src="/assets/theme.js" defer></script>
6480

6581
{% if page.math == true %}
6682
{% include mathjax.html %}
@@ -70,4 +86,4 @@
7086
{% endif %}
7187

7288

73-
</head>
89+
</head>

_includes/header.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,25 @@
2727
<div class="container">
2828
{% endif %}
2929

30-
<div class="row mt-3 text-center">
30+
<div class="row mt-3 text-center site-title-row">
3131
<div class="col">
3232
<h2><a href="/" style="text-decoration: none; color: inherit;">DataTalks.Club</a></h2>
33+
<button class="theme-toggle" type="button" aria-label="Switch to dark mode" title="Switch to dark mode">
34+
<svg class="theme-toggle-icon theme-toggle-icon-light" viewBox="0 0 24 24" aria-hidden="true">
35+
<circle cx="12" cy="12" r="4"></circle>
36+
<path d="M12 2v2"></path>
37+
<path d="M12 20v2"></path>
38+
<path d="m4.93 4.93 1.41 1.41"></path>
39+
<path d="m17.66 17.66 1.41 1.41"></path>
40+
<path d="M2 12h2"></path>
41+
<path d="M20 12h2"></path>
42+
<path d="m6.34 17.66-1.41 1.41"></path>
43+
<path d="m19.07 4.93-1.41 1.41"></path>
44+
</svg>
45+
<svg class="theme-toggle-icon theme-toggle-icon-dark" viewBox="0 0 24 24" aria-hidden="true">
46+
<path d="M12 3a6 6 0 0 0 9 7.5A9 9 0 1 1 12 3Z"></path>
47+
</svg>
48+
</button>
3349
</div>
3450
</div>
3551

_posts/2025-09-23-ai-dev-tools-zoomcamp-2025-free-course-to-master-coding-assistants-agents-and-automation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ datepublished: '2025-09-23'
2222
AI development tools have moved into everyday engineering work. Chat applications like ChatGPT and Claude, coding assistants like GitHub Copilot and Cursor, project bootstrappers like Bolt and Lovable, agents, and automation platforms like n8n have shifted the way we code and automate our workflows. The ecosystem is broad, and it's not always clear which tools to adopt or how to use them reliably in real projects.
2323

2424
<figure>
25-
<img src="/images/posts/2025-09-23-ai-dev-tools-zoomcamp-2025-free-course-to-master-coding-assistants-agents-and-automation/course-cover.png" alt="AI Dev Tools Zoomcamp 2025 - free course covering coding assistants, agents, CI/CD automation, and no-code tools" title="AI Dev Tools Zoomcamp 2025 Course Overview" loading="lazy" style="max-width: 100%; height: auto;" />
25+
<img src="/images/posts/2025-09-23-ai-dev-tools-zoomcamp-2025-free-course-to-master-coding-assistants-agents-and-automation/course-cover.png" data-light-src="/images/posts/2025-09-23-ai-dev-tools-zoomcamp-2025-free-course-to-master-coding-assistants-agents-and-automation/course-cover.png" data-dark-src="/images/posts/2025-09-23-ai-dev-tools-zoomcamp-2025-free-course-to-master-coding-assistants-agents-and-automation/dark/course-cover.png" alt="AI Dev Tools Zoomcamp 2025 - free course covering coding assistants, agents, CI/CD automation, and no-code tools" title="AI Dev Tools Zoomcamp 2025 Course Overview" loading="lazy" style="max-width: 100%; height: auto;" />
2626
<figcaption>AI Dev Tools Zoomcamp 2025 course cover</figcaption>
2727
</figure>
2828

@@ -226,4 +226,4 @@ For more details about how our courses work, check the [Zoomcamp logistics guide
226226

227227
{% include related-posts.html manual_posts=page.related_posts max_posts=5 %}
228228

229-
{% include course-structured-data/ai-dev-tools-zoomcamp-structured-data.html %}
229+
{% include course-structured-data/ai-dev-tools-zoomcamp-structured-data.html %}

0 commit comments

Comments
 (0)