Skip to content

Commit da9cbfd

Browse files
committed
Updated the design of the website
1 parent 67ec0aa commit da9cbfd

File tree

2 files changed

+136
-1
lines changed

2 files changed

+136
-1
lines changed

assets/scripts/darkmode.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@
6363
'#subscribe-cta button[type="submit"] { background: #0ea5e9 !important; color: #fff !important; }' +
6464
'.consent-btn.accept { background: #0ea5e9 !important; color: #fff !important; }' +
6565
'.wf-cta__btn--github { background: #0ea5e9 !important; color: #fff !important; border-color: #0284c7 !important; }' +
66-
'.wf-cta__btn--kofi { background: #FF5F5F !important; color: #fff !important; border-color: #e04f4f !important; }';
66+
'.wf-cta__btn--kofi { background: #FF5F5F !important; color: #fff !important; border-color: #e04f4f !important; }' +
67+
'.list__item:hover { border-color: #e5e7eb !important; box-shadow: 4px 4px 0 #0ea5e9 !important; }' +
68+
'.highlight pre, pre.highlight { border-top-color: #0ea5e9 !important; }' +
69+
'.page__footer { border-top-color: #e5e7eb !important; }' +
70+
'.masthead { border-bottom-color: #e5e7eb !important; }' +
71+
'.page__taxonomy-item:hover { background: #0ea5e9 !important; box-shadow: 2px 2px 0 #fff !important; }' +
72+
'.page__content blockquote { border-left-color: #e5e7eb !important; background: rgba(255,255,255,0.05) !important; }';
6773
}
6874

6975
function disableDarkMode() {

assets/styles.css

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,3 +416,132 @@ body.dark-mode .wf-cta__btn--github,
416416
justify-content: center;
417417
}
418418
}
419+
420+
/* ===== MODERNIZATION: Bold Monochrome + Gradient Accent ===== */
421+
422+
/* Post list cards with neo-brutalist hard shadow hover */
423+
.list__item {
424+
padding: 1.25rem 1.5rem;
425+
margin-bottom: 1rem;
426+
border: 2px solid #e5e7eb;
427+
border-radius: 8px;
428+
transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
429+
}
430+
.list__item:hover {
431+
border-color: #111;
432+
box-shadow: 4px 4px 0 #111;
433+
transform: translate(-2px, -2px);
434+
}
435+
436+
/* Masthead bold bottom border */
437+
.masthead {
438+
border-bottom: 2px solid #111;
439+
}
440+
441+
/* Navigation sliding gradient underline (replaces theme default) */
442+
.greedy-nav .visible-links a::before {
443+
display: none;
444+
}
445+
.greedy-nav .visible-links a {
446+
position: relative;
447+
transition: color 0.2s ease;
448+
}
449+
.greedy-nav .visible-links a::after {
450+
content: '';
451+
position: absolute;
452+
bottom: 0;
453+
left: 0;
454+
width: 0;
455+
height: 2px;
456+
background: linear-gradient(90deg, #111, #0ea5e9);
457+
transition: width 0.3s ease;
458+
}
459+
.greedy-nav .visible-links a:hover::after {
460+
width: 100%;
461+
}
462+
463+
/* Content link hover transitions */
464+
.page__content a:not(.btn):not(.wf-cta__btn) {
465+
transition: color 0.2s ease;
466+
}
467+
.page__content a:not(.btn):not(.wf-cta__btn):hover {
468+
color: #0ea5e9;
469+
}
470+
471+
/* Reading progress bar: black-to-blue gradient accent */
472+
#readingProgress {
473+
background: linear-gradient(90deg, #111 0%, #0ea5e9 100%);
474+
}
475+
476+
/* Code block accent top border */
477+
.highlight pre, pre.highlight {
478+
border-top: 3px solid #0ea5e9;
479+
}
480+
481+
/* Blockquote modernization */
482+
.page__content blockquote {
483+
border-left: 4px solid #111;
484+
background: #fafafa;
485+
padding: 0.85rem 1.25rem;
486+
border-radius: 0 6px 6px 0;
487+
margin: 1.5rem 0;
488+
font-style: normal;
489+
}
490+
491+
/* TOC active link accent */
492+
.toc .active a {
493+
border-left: 3px solid #0ea5e9;
494+
padding-left: 0.5rem;
495+
}
496+
497+
/* Tag/category pills */
498+
.page__taxonomy-item {
499+
display: inline-block;
500+
padding: 0.2rem 0.7rem;
501+
border: 1.5px solid #d1d5db;
502+
border-radius: 999px;
503+
font-size: 0.85rem;
504+
color: #374151;
505+
background: transparent;
506+
transition: all 0.2s ease;
507+
}
508+
.page__taxonomy-item:hover {
509+
border-color: #111;
510+
background: #111;
511+
color: #fff;
512+
text-decoration: none;
513+
box-shadow: 2px 2px 0 #0ea5e9;
514+
}
515+
516+
/* FAB hard shadow depth */
517+
#backToTop, #darkModeToggle, #subscribeFloat {
518+
box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
519+
}
520+
#backToTop:hover, #darkModeToggle:hover, #subscribeFloat:hover {
521+
box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
522+
}
523+
524+
/* Footer bold top border */
525+
.page__footer {
526+
border-top: 2px solid #111;
527+
}
528+
529+
/* Page entrance animation */
530+
.initial-content, .page {
531+
animation: pageIn 0.35s ease-out;
532+
}
533+
@keyframes pageIn {
534+
from { opacity: 0; transform: translateY(8px); }
535+
to { opacity: 1; transform: translateY(0); }
536+
}
537+
538+
/* Mobile: reduce hard shadow offset to save screen real estate */
539+
@media (max-width: 768px) {
540+
.list__item:hover {
541+
box-shadow: 2px 2px 0 #111;
542+
transform: translate(-1px, -1px);
543+
}
544+
.page__taxonomy-item:hover {
545+
box-shadow: 1px 1px 0 #0ea5e9;
546+
}
547+
}

0 commit comments

Comments
 (0)