Bug fixes & media queries

This commit is contained in:
blake committed 2025-09-25 00:11:07 -05:00
1 parent 9a48cf8966
commit 130c0286d7
20 files changed
+1521 -946

No files matched your search

+139
View File
@@ -0,0 +1,139 @@
/************************/
/* BELOW 1350px (smaller desktops) */
/************************/
@media (max-width: 85em) {
.hero {
max-width: 55%;
}
.services-section {
max-width: 85%;
}
.about-content {
max-width: 85%;
}
.astronaut {
height: 10rem;
}
.project-card {
width: 45rem;
height: 28rem;
}
}
@media (max-width: 70em) {
html {
font-size: 56.25%;
}
.hero {
max-width: 65%;
}
}
@media (max-width: 63em) {
html {
font-size: 50%;
}
.services-grid {
column-gap: 3rem;
row-gap: 3rem;
}
.service-card {
padding: 3rem;
}
.project-card {
width: 40rem;
height: 25rem;
}
.contact-grid {
gap: 0;
}
}
@media (max-width: 47em) {
.hero {
max-width: 80%;
}
.services-section {
max-width: 90%;
}
.services-grid {
grid-template-columns: 1fr;
}
.about-content {
max-width: 90%;
padding: 10rem 0;
}
.about-wrapper {
padding: 3rem;
}
.about-picture {
bottom: -28rem;
}
.project-grid {
grid-template-columns: 1fr;
}
.project-card {
width: 65rem;
height: 40rem;
}
.contact-grid {
grid-template-columns: 1fr;
width: 55rem;
}
.contact-img {
grid-row: 1;
}
}
@media (max-width: 38em) {
html {
font-size: 45%;
}
.hero {
max-width: 90%;
}
}
@media (max-width: 31em) {
.project-card {
width: 55rem;
height: 32rem;
}
.about-content {
padding-bottom: 30rem;
}
.project-card {
width: 42rem;
height: 28rem;
}
.contact-grid {
grid-template-columns: 1fr;
width: 45rem;
}
.heading-sub {
max-width: 80%;
}
}
+37 -11
View File
@@ -49,6 +49,7 @@ Default: 1
html {
/* font-size: 10px; */
font-size: 62.5%;
scroll-behavior: smooth;
}
body {
@@ -71,8 +72,6 @@ body {
width: 100%;
justify-content: space-between;
align-items: center;
background-color: rgb(11, 21, 50, 0.4);
/* box-shadow: 0px 2px 0px #2d54c7; */
}
.nav-links {
@@ -95,6 +94,7 @@ body {
.main-nav-link:active {
transform: scale(1.1);
text-decoration: none;
color: #2d54c7;
}
.nav-links {
@@ -203,7 +203,7 @@ p {
gap: 5rem;
left: 50%;
top: 75%;
max-width: 120rem;
max-width: 45%;
align-items: center;
}
@@ -352,22 +352,22 @@ p {
.project-card:nth-child(1) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
url("/img/client-img/ten8locker.png");
url("/img/client-img/ten8locker.jpg");
}
.project-card:nth-child(2) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
url("/img/client-img/christshands.png");
url("/img/client-img/christshands.jpg");
}
.project-card:nth-child(3) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
url("/img/client-img/terrytownpuppies.png");
url("/img/client-img/terrytownpuppies.jpg");
}
.project-card:nth-child(4) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
url("/img/client-img/cosmicallycreative.png");
url("/img/client-img/cosmicallycreative.jpg");
}
.contact-section {
@@ -378,16 +378,29 @@ p {
flex-direction: column;
align-items: center;
gap: 7rem;
padding-top: 10rem;
}
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
border-radius: 5rem;
border: 3px solid #2d54c7;
background-color: rgb(11, 21, 50, 0.4);
justify-content: center;
align-items: center;
gap: 5rem;
}
.contact-wrapper {
display: flex;
flex-direction: column;
gap: 5rem;
background-color: rgb(11, 21, 50, 0.4);
padding: 5rem;
border-radius: 5rem;
border: 3px solid #2d54c7;
padding: 5rem 7rem;
}
.contact-img {
padding: 1rem;
}
.contact-card {
@@ -397,6 +410,19 @@ p {
gap: 2rem;
}
.contact-card a:link,
.contact-card a:visited {
text-decoration: none;
color: #fff;
transition: all 0.3s;
}
.contact-card a:hover,
.contact-card a:active {
color: #2d54c7;
text-decoration: underline;
}
.social-icons {
display: flex;
gap: 2rem;