Skip to content

Commit d2bd156

Browse files
committed
DND: From Serfs and Frauds 4
1 parent 0c45ea0 commit d2bd156

File tree

2 files changed

+27
-14
lines changed

2 files changed

+27
-14
lines changed

src/pages/DndEpisodePage.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,21 +171,21 @@ function DndEpisodePage() {
171171
))}
172172
</div>
173173

174-
<div style={{ display: 'flex', justifyContent: 'space-between', width: '90%', maxWidth: '800px', margin: '2rem auto', zIndex: 1 }}>
175-
<div style={{ flex: 1, textAlign: 'left' }}>
174+
<div className="flex flex-wrap justify-between w-[90%] max-w-[800px] mx-auto my-8 z-10 gap-4">
175+
<div className="flex-1 text-left min-w-[200px]">
176176
{prevEpisode && (
177-
<Link to={`/dnd/books/${bookId}/pages/${prevEpisode.id}`} style={{ color: '#E09500', textDecoration: 'none', fontSize: '1.3rem', textShadow: '2px 2px 4px rgba(0, 0, 0, 1)', border: '1px solid #E09500', padding: '0.5rem 1rem', borderRadius: '5px', backgroundColor: 'rgba(100, 60, 0, 0.5)' }}>
177+
<Link to={`/dnd/books/${bookId}/pages/${prevEpisode.id}`} className="dnd-episode-nav-button">
178178
&larr; Previous Episode
179179
</Link> )}
180180
</div>
181-
<div style={{ flex: 1, textAlign: 'center' }}>
182-
<Link to="/dnd/lore" style={{ color: '#E09500', textDecoration: 'none', fontSize: '1.3rem', textShadow: '2px 2px 4px rgba(0, 0, 0, 1)', border: '1px solid #E09500', padding: '0.5rem 1rem', borderRadius: '5px', backgroundColor: 'rgba(100, 60, 0, 0.5)' }}>
181+
<div className="flex-1 text-center min-w-[200px]">
182+
<Link to="/dnd/lore" className="dnd-episode-nav-button">
183183
Show All Episodes
184184
</Link>
185185
</div>
186-
<div style={{ flex: 1, textAlign: 'right' }}>
186+
<div className="flex-1 text-right min-w-[200px]">
187187
{nextEpisode && (
188-
<Link to={`/dnd/books/${bookId}/pages/${nextEpisode.id}`} style={{ color: '#E09500', textDecoration: 'none', fontSize: '1.3rem', textShadow: '2px 2px 4px rgba(0, 0, 0, 1)', border: '1px solid #E09500', padding: '0.5rem 1rem', borderRadius: '5px', backgroundColor: 'rgba(100, 60, 0, 0.5)' }}>
188+
<Link to={`/dnd/books/${bookId}/pages/${nextEpisode.id}`} className="dnd-episode-nav-button">
189189
Next Episode &rarr;
190190
</Link> )}
191191
</div>

src/styles/dnd.css

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77
background-position: center;
88
color: #fff;
99
font-family: 'MedievalSharp', cursive;
10-
overflow: hidden;
11-
min-height: 100vh; /* Ensure it takes full viewport height */
12-
/*padding-bottom: 200px; !* Add padding for fixed footer *!*/
1310
}
1411

1512
.dnd-hero {
16-
min-height: 100vh;
13+
min-height: calc(100vh - 12rem);
1714
display: flex;
1815
flex-direction: column;
1916
align-items: center;
@@ -275,9 +272,7 @@
275272
align-items: flex-start;
276273
font-family: 'MedievalSharp', cursive;
277274
color: #FFA500; /* Orange */
278-
position: fixed; /* Change to fixed for a sticky footer */
279-
bottom: 0;
280-
width: 100%;
275+
position: relative;
281276
z-index: 10;
282277
min-height: 200px; /* Make footer larger */
283278
}
@@ -324,3 +319,21 @@
324319
color: #e0e0e0;
325320
margin-top: 0.5rem;
326321
}
322+
323+
.dnd-episode-nav-button {
324+
color: #E09500;
325+
text-decoration: none;
326+
font-size: 1.3rem;
327+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
328+
border: 1px solid #E09500;
329+
padding: 0.5rem 1rem;
330+
border-radius: 5px;
331+
background-color: rgba(100, 60, 0, 0.5);
332+
display: inline-block; /* To apply padding and border correctly */
333+
white-space: nowrap; /* Prevent text wrapping */
334+
}
335+
336+
.dnd-episode-nav-button:hover {
337+
background-color: rgba(150, 90, 0, 0.7); /* Darker on hover */
338+
color: #FFB03A; /* Lighter text on hover */
339+
}

0 commit comments

Comments
 (0)