Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions _includes/head_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<style>
.theme-toggle {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 1000;
width: 2.25rem;
height: 2.25rem;
border-radius: 50%;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(128, 128, 128, 0.15);
color: inherit;
transition: background-color 0.2s, transform 0.2s;
}
.theme-toggle svg {
width: 1.1rem;
height: 1.1rem;
fill: currentColor;
}
.theme-toggle:hover {
background-color: rgba(128, 128, 128, 0.3);
transform: scale(1.1);
}
.theme-toggle:active {
transform: scale(0.95);
}
</style>
<script>
(function() {
var saved = localStorage.getItem('theme');
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (saved === 'codeday-dark' || (!saved && prefersDark)) {
var link = document.querySelector('link[rel="stylesheet"]');
if (link) {
link.href = link.href.replace(/just-the-docs-[^.]+/, 'just-the-docs-codeday-dark');
window.scrollTo(0, 0);
document.addEventListener('DOMContentLoaded', function() { window.scrollTo(0, 0); });
}
}
})();

document.addEventListener('DOMContentLoaded', function() {
var sunSvg = '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><line x1="12" y1="21" x2="12" y2="23" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><line x1="1" y1="12" x2="3" y2="12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><line x1="21" y1="12" x2="23" y2="12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>';
var moonSvg = '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>';

var btn = document.createElement('button');
btn.className = 'theme-toggle';
btn.setAttribute('aria-label', 'Toggle dark mode');
document.body.appendChild(btn);

function setTheme(theme) {
var link = document.querySelector('link[rel="stylesheet"]');
if (link) link.setAttribute('href', link.getAttribute('href').replace(/just-the-docs-[^.]+/, 'just-the-docs-' + theme));
}
function isDark() {
var saved = localStorage.getItem('theme');
return saved === 'codeday-dark' || (!saved && window.matchMedia('(prefers-color-scheme: dark)').matches);
}
function updateBtn() {
var dark = isDark();
btn.innerHTML = dark ? sunSvg : moonSvg;
var logo = document.querySelector('.site-logo');
if (logo) logo.style.backgroundImage = dark ? 'url("/assets/logo-text/white.svg")' : 'url("/assets/logo-text/color.svg")';
}
btn.addEventListener('click', function() {
var toDark = !isDark();
var newTheme = toDark ? 'codeday-dark' : 'codeday-light';
setTheme(newTheme);
localStorage.setItem('theme', newTheme);
updateBtn();
});
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function(e) {
if (!localStorage.getItem('theme')) {
setTheme(e.matches ? 'codeday-dark' : 'codeday-light');
updateBtn();
}
});
updateBtn();
});
</script>
20 changes: 20 additions & 0 deletions _sass/color_schemes/codeday-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$color-scheme: dark;

$body-font-family: "Sofia Pro";
$mono-font-family: "Fira Code";

$body-background-color: $modes-dark-bg;
$body-heading-color: $modes-dark-text;
$body-text-color: $modes-dark-text;
$link-color: $gray-400;
Comment thread
dotcomaki marked this conversation as resolved.
$nav-child-link-color: $gray-400;
$sidebar-color: $gray-900;
$base-button-color: $modes-dark-placeholder;
$btn-primary-color: $blue-200;
$code-background-color: $modes-dark-border;
$code-linenumber-color: $modes-dark-textLight;
$feedback-color: $gray-800;
$table-background-color: $modes-dark-placeholder;
$search-background-color: $modes-dark-placeholder;
$search-result-preview-color: $modes-dark-textLight;
$border-color: $modes-dark-border;
3 changes: 3 additions & 0 deletions assets/css/just-the-docs-codeday-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
---
{% include css/just-the-docs.scss.liquid color_scheme="codeday-dark" %}
3 changes: 3 additions & 0 deletions assets/css/just-the-docs-codeday-light.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
---
{% include css/just-the-docs.scss.liquid color_scheme="codeday-light" %}
2 changes: 1 addition & 1 deletion mentor-training/when2meet-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This guide walks you through the entire process - from creating a poll to confir
Follow these steps to set up a new availability poll for your team.

1. **Go to [when2meet.com](https://www.when2meet.com/).** No login or account required.
2. **Name your event.** Use something descriptive like `{{Your Name}} - CodeDay Labs Weekly Check-in` so mentees know exactly what it is.
2. **Name your event.** Use something descriptive like `Your Name - CodeDay Labs Weekly Check-in` so mentees know exactly what it is.
3. **Select candidate dates.** Click the dates you want to offer. For a recurring weekly meeting, choose the same days across 1-2 weeks (e.g. Mon-Fri of the upcoming two weeks).
4. **Set the time range.** Use the **Earliest** and **Latest** dropdowns to set a daily window. A window of 9 AM - 7 PM captures most time zones.
5. **Choose your time zone.** Select your local time zone. When2Meet will automatically display times in each respondent's own time zone when they fill it in.
Expand Down