Edit ─ Rework grid into responsive 2-column card layout | Add ─ Card styling for grid-items with hover effect | Add ─ Skills tag list styling | Edit ─ Responsive breakpoints for tablet and mobile

This commit is contained in:
nocode committed 2026-05-07 15:32:38 +02:00
1 parent 453c2fff9b
commit 7b91b6bc60
1 file changed
+77 -51
+77 -51
View File
@@ -7,7 +7,6 @@ body {
}
body #div-content {
height: 48rem;
position: relative;
background-color: #1B4056;
z-index: 2;
@@ -15,78 +14,101 @@ body #div-content {
}
.grid {
position: absolute;
position: relative;
display: grid;
gap: 5rem;
grid-template-columns: repeat(1, 80rem);
grid-template-rows: repeat(1, 28rem);
justify-self: center;
gap: 3rem;
grid-template-columns: repeat(2, minmax(0, 36rem));
grid-auto-rows: auto;
justify-content: center;
margin-top: 12rem;
}
.grid-item {
align-self: center;
padding: 4rem 1rem 2rem;
}
.grid-item img {
.grid-item {
background-color: #235573;
padding: 1.5rem;
border-radius: 0.5rem;
color: #ffffff;
font-family: Quicksand, sans-serif;
box-shadow: 0.5rem 0.5rem 0rem #00000080;
}
.grid-item h3 {
margin: 0 0 1rem 0;
color: #ffffff;
font-size: 1.4rem;
border-bottom: 0.15rem dashed #834206ec;
padding-bottom: 0.5rem;
}
.grid-item p {
line-height: 1.5rem;
margin: 0.5rem 0;
}
.grid-item.one {
grid-column: span 2;
}
.grid-item.one img {
border: 0.25rem solid #1B4056;
border-radius: 2rem;
max-width: 100%;
max-width: 18rem;
height: auto;
}
.grid .one {
background-color: #235573;
padding: 1rem;
border-radius: .40rem;
}
.right-text {
margin-left: 31rem;
}
.one img {
float: left;
margin: 0 1.5rem 1rem 0;
}
.grid-item.one .right-text {
overflow: hidden;
}
.skills {
list-style: none;
padding: 0;
margin: 1rem 0 0;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.tag {
display: inline-block;
padding: 0.3rem 0.8rem;
background-color: #1B4056;
border: 0.1rem solid #834206ec;
border-radius: 1rem;
font-size: 0.85rem;
color: #ffffff;
}
.grid-item:hover {
transform: translateY(-0.2rem);
transition: transform 0.2s ease-out;
}
@media screen and (max-width: 1280px) {
.grid {
grid-template-columns: 90%;
}
.right-text {
margin-left: 40%;
grid-template-columns: repeat(2, minmax(0, 28rem));
}
}
@media screen and (max-width: 1024px) {
.grid {
position: relative;
grid-template-columns: 90%;
grid-template-rows: auto;
grid-template-columns: minmax(0, 90%);
gap: 2rem;
margin-top: 2rem;
padding-top: 2rem;
}
.grid-item img {
.grid-item.one {
grid-column: auto;
}
.grid-item.one img {
float: none;
display: block;
margin: 0 auto 1rem;
width: 100%;
}
.one img {
float: none;
}
.right-text {
margin-left: 0;
}
body #div-content {
height: auto;
min-height: 30rem;
padding-bottom: 5rem;
max-width: 18rem;
}
}
@@ -95,7 +117,11 @@ body #div-content {
gap: 1.5rem;
}
.grid .one {
padding: 0.6rem;
.grid-item {
padding: 1rem;
}
.grid-item h3 {
font-size: 1.2rem;
}
}