nexora / frontend /src /app /films /filmsPage.css
ChandimaPrabath's picture
init UI
cb20bdc
raw
history blame
1.49 kB
.films-page-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
max-width: 1300px;
margin: 0 auto;
}
.films-page {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 50px;
justify-items: center;
align-items: start;
width: 100%;
}
/* Media query for smaller screens */
@media (max-width: 768px) {
.films-page {
grid-template-columns: repeat(auto-fit, minmax(150px, .1fr));
gap: 10px;
}
}
@media (max-width: 480px) {
.films-page {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
}
.pagination-controls {
margin-top: 20px;
display: flex;
align-items: center;
}
.pagination-button {
background-color: #21264a;
color: #f5f5f5;
border: none;
border-radius: 5px;
padding: 5px;
width: 50px;
text-align: center;
margin: 0 10px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.pagination-button:hover {
background-color: #202a75;
transform: scale(1.05);
}
.pagination-button:disabled {
background-color: #555;
cursor: not-allowed;
}
.page-info {
font-size: 1.2em;
color: #f5f5f5;
}
/* Handle animations on page load */
@keyframes pageLoad {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.films-page-container {
animation: pageLoad 1s ease;
}