Refactored Homepage css

This commit is contained in:
FlorianSpeicher
2025-05-21 21:36:03 +02:00
parent 854f603455
commit c1d668cf91
2 changed files with 17 additions and 9 deletions

View File

@@ -178,7 +178,7 @@ export default function Home() {
onChange={handlePageChange} // Seitenwechsel-Handler
variant="outlined"
shape="rounded"
sx={{ marginTop: 2 }}
className="pagination" // CSS-Klasse für die Pagination
/>
</div>
);

View File

@@ -42,24 +42,32 @@
background-color: #115293;
}
cardgrid {
.cardgrid {
display: grid;
gap: 2%;
max-width: 3%;
width: 90%;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamische Spalten */
padding: 16px;
margin-top: auto;
max-height: calc(100vh - 200px); /* Dynamische Höhe, abhängig von anderen Inhalten */
margin: 0 auto;
}
.page-background {
background: linear-gradient(135deg, #ece9e6, #ffffff);
min-height: 100vh; /* Damit der Hintergrund die gesamte Seite abdeckt */
height: 100vh; /* Damit der Hintergrund die gesamte Seite abdeckt */
min-height: 600px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
padding: 20px 0; /* Abstand oben und unten */
box-sizing: border-box; /* Stellt sicher, dass Padding in die Höhe einbezogen wird */
}
.cardgrid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
gap: 16px;
padding: 16px;
.pagination {
display: flex;
justify-content: center;
margin-top: 5%;
}