Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create browse.css #38

Closed
wants to merge 1 commit into from
Closed
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
39 changes: 39 additions & 0 deletions public/scripts/browse.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Add this to your CSS file (dashboard.css or browse.css if separate) */

#all-books-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
padding: 20px;
}

.book-card {
display: flex;
background-color: white;
padding: 1.5em;
border-radius: 12px;
width: 200px; /* Fixed width for larger size */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
text-align: center;
}

.book-card img {
max-width: 100%;
height: auto;
margin-bottom: 10px;
border-radius: 5px;
}

.book-card:hover {
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


#all-books-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 20px;
padding: 20px;
}