Skip to content

Commit dbfa58a

Browse files
committed
mobile improvements
1 parent cbbd91d commit dbfa58a

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ code {
7373
--color-series-badge: #e11d48; /* rose-600 */
7474
--color-dnd-badge: #583fa3; /* violet-400 */
7575
}
76+
77+
@media (max-width: 768px) {
78+
body {
79+
font-family: serif !important;
80+
}
81+
}

src/pages/DndLorePage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ function DndLorePage() {
105105
<h1 className="dnd-title-box">
106106
<span className="dnd-hero-title-white">The Lore</span>
107107
</h1>
108-
<div className="dnd-content-box" style={{ zIndex: 1 }}>
108+
<div className="dnd-content-box dnd-books-section" style={{ zIndex: 1 }}>
109109
<h2 >Books</h2>
110-
<Slider {...settings}>
110+
<Slider {...settings} className="dnd-carousel">
111111
{episodes.map((book) => (
112112
<div key={book.bookId} className="px-12"> {/* Add padding for spacing between cards */}
113113
<DndCard

src/styles/dnd.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,27 @@
358358
.dnd-list-item-link:hover {
359359
color: #FFB03A;
360360
}
361+
362+
@media (max-width: 768px) {
363+
.dnd-page-container,
364+
.dnd-navbar,
365+
.dnd-footer {
366+
font-family: serif !important;
367+
}
368+
369+
.dnd-books-section {
370+
display: none;
371+
}
372+
373+
.dnd-breadcrumbs {
374+
display: none;
375+
}
376+
377+
.dnd-navbar-center {
378+
display: none;
379+
}
380+
381+
.dnd-footer-logo-section {
382+
display: none;
383+
}
384+
}

0 commit comments

Comments
 (0)