Skip to content

Commit

Permalink
Add book cover image and style adjustments for responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzarrabi committed Dec 7, 2024
1 parent 9369177 commit 642db29
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
Binary file added book-cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<div class="content">
<header>
<h1>Beneath the Veil of Dante's Sorrow</h1>
<img src="book-cover.png" alt="Book Cover: Beneath the Veil of Dante's Sorrow" class="book-cover">
</header>

<main>
Expand Down Expand Up @@ -70,4 +71,4 @@ <h2>Epilogue: Beyond the Veil</h2>
© 2024 Nikou Zarrabi. All rights reserved.
</footer>
</body>
</html>
</html>
25 changes: 24 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ body {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Gentle shadow for depth */
}

/* Book Cover */
.book-cover {
display: block;
max-width: 100%;
height: auto;
margin: 20px auto; /* Center the image and add spacing */
border: 1px solid #d3c7b7; /* Match border style to content box */
border-radius: 8px; /* Soft rounded corners */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Headings */
h1 {
text-align: center;
Expand Down Expand Up @@ -104,6 +115,10 @@ a:hover {
p {
font-size: 1em; /* Adjust text size for readability */
}

.book-cover {
max-width: 90%; /* Scale down for smaller screens */
}
}

/* Small Devices (Mobile) */
Expand Down Expand Up @@ -138,6 +153,10 @@ a:hover {
footer {
font-size: 0.8em; /* Smaller footer text for mobile */
}

.book-cover {
max-width: 100%; /* Full width for mobile */
}
}

/* Extra Small Devices (Phones) */
Expand All @@ -162,4 +181,8 @@ a:hover {
footer {
font-size: 0.75em;
}
}

.book-cover {
max-width: 100%; /* Ensure it fits small screens */
}
}

0 comments on commit 642db29

Please sign in to comment.