set home section responsive

This commit is contained in:
Giovanni-Josserand 2025-09-21 19:00:52 +02:00
parent bf42d752a9
commit 61840f76cf
3 changed files with 46 additions and 1 deletions

View File

@ -12,6 +12,8 @@
#home-section h1{
margin-bottom: 0;
margin-left: 40px;
margin-right: 40px;
}
#home-section h2 {
@ -49,5 +51,33 @@
}
@media (max-width: 840px) {
.btn {
margin-bottom: 10%;
}
#home-section p{
max-width: 60%;
}
}
@media (max-width: 656px) {
#home-section h1{
font-size: 3.5rem;
}
#home-section h2 {
font-size: 1.5rem;
}
}
@media (max-width: 584px) {
#home-section h1{
font-size: 3rem;
}
}

View File

@ -41,3 +41,10 @@
background-color: rgba(217, 95, 70, 0.3);
color: var(--important-color);
}
@media (max-width: 768px) {
.nav-list{
gap: 0.5rem;
}
}

View File

@ -22,7 +22,7 @@
.planet {
position: absolute;
bottom: 0%;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 120vw;
@ -102,3 +102,11 @@
opacity: 0.6;
}
}
@media (max-width: 840px) {
.planet {
display: none;
}
}