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
+1474 -899

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 { html {
/* font-size: 10px; */ /* font-size: 10px; */
font-size: 62.5%; font-size: 62.5%;
scroll-behavior: smooth;
} }
body { body {
@@ -71,8 +72,6 @@ body {
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
background-color: rgb(11, 21, 50, 0.4);
/* box-shadow: 0px 2px 0px #2d54c7; */
} }
.nav-links { .nav-links {
@@ -95,6 +94,7 @@ body {
.main-nav-link:active { .main-nav-link:active {
transform: scale(1.1); transform: scale(1.1);
text-decoration: none; text-decoration: none;
color: #2d54c7;
} }
.nav-links { .nav-links {
@@ -203,7 +203,7 @@ p {
gap: 5rem; gap: 5rem;
left: 50%; left: 50%;
top: 75%; top: 75%;
max-width: 120rem; max-width: 45%;
align-items: center; align-items: center;
} }
@@ -352,22 +352,22 @@ p {
.project-card:nth-child(1) { .project-card:nth-child(1) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)), 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) { .project-card:nth-child(2) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)), 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) { .project-card:nth-child(3) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)), 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) { .project-card:nth-child(4) {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)), background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
url("/img/client-img/cosmicallycreative.png"); url("/img/client-img/cosmicallycreative.jpg");
} }
.contact-section { .contact-section {
@@ -378,16 +378,29 @@ p {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: 7rem; 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 { .contact-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 5rem; gap: 5rem;
background-color: rgb(11, 21, 50, 0.4); padding: 5rem 7rem;
padding: 5rem; }
border-radius: 5rem;
border: 3px solid #2d54c7; .contact-img {
padding: 1rem;
} }
.contact-card { .contact-card {
@@ -397,6 +410,19 @@ p {
gap: 2rem; 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 { .social-icons {
display: flex; display: flex;
gap: 2rem; gap: 2rem;
+4 -844
View File
File diff suppressed because it is too large. Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 985 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

+56
View File
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="ionicon"
viewBox="0 0 512 512"
version="1.1"
id="svg1"
sodipodi:docname="mail-outline.svg"
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.9335938"
inkscape:cx="256"
inkscape:cy="256"
inkscape:window-width="2259"
inkscape:window-height="1199"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<rect
x="48"
y="96"
width="416"
height="320"
rx="40"
ry="40"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
id="rect1"
style="stroke:#ffffff;stroke-opacity:1" />
<path
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
d="M112 160l144 112 144-112"
id="path1"
style="stroke:#ffffff;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+56
View File
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="ionicon"
viewBox="0 0 512 512"
version="1.1"
id="svg1"
sodipodi:docname="phone-portrait-outline.svg"
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.9335938"
inkscape:cx="256"
inkscape:cy="256"
inkscape:window-width="2259"
inkscape:window-height="1199"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<rect
x="128"
y="16"
width="256"
height="480"
rx="48"
ry="48"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
id="rect1"
style="stroke:#ffffff;stroke-opacity:1" />
<path
d="M176 16h24a8 8 0 018 8h0a16 16 0 0016 16h64a16 16 0 0016-16h0a8 8 0 018-8h24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="32"
id="path1"
style="stroke:#ffffff;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

File diff suppressed because it is too large. Load diff

After

Width:  |  Height:  |  Size: 64 KiB

+44 -44
View File
@@ -6,49 +6,43 @@
<meta <meta
name="description" name="description"
content="Cosmically Creative is your one-stop shop for all things web design & development using the power of HTML, CSS, and JavaScript." content="Cosmically Creative is your one-stop shop for all things web design & development using the power of HTML, CSS, and JavaScript."
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/> />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link <link
href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Grotesk:wght@300..700&display=swap" href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Grotesk:wght@300..700&display=swap"
rel="stylesheet" rel="stylesheet"
/> />
<link rel="apple-icon" href="img/favicons/favicon-apple.webp" />
<link rel="manifest" href="manifest.webmanifest" />
<link rel="icon" href="img/favicons/favicon.webp" /> <link rel="icon" href="img/favicons/favicon.webp" />
<link rel="stylesheet" href="css/style.css" />
<title>Cosmically Creative</title> <link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/queries.css" />
<title>Cosmically Creative - Web Design & Development</title>
</head> </head>
<body> <body>
<nav class="nav"> <nav class="nav">
<img class="logo" src="img/logo.svg" alt="Cosmically Creative Logo" /> <a href="#home"
<ul class="nav-links"> ><img class="logo" src="img/logo.svg" alt="Cosmically Creative Logo"
<li><a class="main-nav-link" href="index.html">Home</a></li>
<li><a class="main-nav-link" href="services.html">Services</a></li>
<li><a class="main-nav-link" href="about.html">About</a></li>
<li><a class="main-nav-link" href="contact.html">Contact</a></li>
<li><a class="main-nav-link" href="articles.html">Articles</a></li>
<li>
<a class="main-nav-link nav-btn" href="contact.html"
><img
class="rocket-icon"
src="img/icons/rocket.svg"
alt="rocket icon"
/></a> /></a>
</li> <ul class="nav-links">
<li><a class="main-nav-link" href="#home">Home</a></li>
<li><a class="main-nav-link" href="#about">About</a></li>
<li><a class="main-nav-link" href="#contact">Contact</a></li>
</ul> </ul>
</nav> </nav>
<main> <main>
<section class="hero-section"> <section class="hero-section" id="home">
<div class="hero"> <div class="hero">
<h1>Trusted Web Development, Powered by Cosmic Creativity</h1> <h1>Trusted Web Development, Powered by Cosmic Creativity</h1>
<p> <p>
At Cosmically Creative, I fuse creativity and custom code to craft At Cosmically Creative, I fuse creativity and custom code to craft
websites that help you stand out in the vast digital universe. websites that help you stand out in the vast digital universe.
</p> </p>
<a href="services.html" class="btn">Initiate Launch</a> <a href="#contact" class="btn">Initiate Launch</a>
</div> </div>
</section> </section>
@@ -84,7 +78,7 @@
<img <img
class="service-icon" class="service-icon"
src="img/icons/code.svg" src="img/icons/code.svg"
alt="design icon" alt="code icon"
/> />
<h3>Web Development</h3> <h3>Web Development</h3>
</div> </div>
@@ -98,7 +92,7 @@
<img <img
class="service-icon" class="service-icon"
src="img/icons/shopify.svg" src="img/icons/shopify.svg"
alt="design icon" alt="shopify icon"
/> />
<h3>eCommerce</h3> <h3>eCommerce</h3>
</div> </div>
@@ -113,7 +107,7 @@
<img <img
class="service-icon" class="service-icon"
src="img/icons/support.svg" src="img/icons/support.svg"
alt="design icon" alt="support icon"
/> />
<h3>Ongoing Support</h3> <h3>Ongoing Support</h3>
</div> </div>
@@ -123,10 +117,10 @@
</p> </p>
</div> </div>
</div> </div>
<a href="services.html" class="btn">Learn More</a> <!-- <a href="services.html" class="btn">Learn More</a> -->
</section> </section>
<section class="about-section"> <section class="about-section" id="about">
<div class="about-content"> <div class="about-content">
<div class="heading-wrapper"> <div class="heading-wrapper">
<img <img
@@ -190,17 +184,19 @@
</div> </div>
</div> </div>
</section> </section>
</main> <section class="contact-section" id="contact">
<section class="contact-section">
<div></div>
<div class="heading-wrapper"> <div class="heading-wrapper">
<img class="heading-icon" src="img/icons/chat.svg" alt="contact icon" /> <img
<h2>Let's Connect!</h2> class="heading-icon"
src="img/icons/chat.svg"
alt="contact icon"
/>
<h2>Contact Me</h2>
</div> </div>
<p> <p class="heading-sub">
Questions? Please reach out with your preferred contact method so we can Let's connect! Choose your preferred contact method below.
discuss in further detail.
</p> </p>
<div class="contact-grid">
<div class="contact-wrapper"> <div class="contact-wrapper">
<div class="contact-card"> <div class="contact-card">
<h3>Email</h3> <h3>Email</h3>
@@ -242,24 +238,28 @@
</div> </div>
</div> </div>
</div> </div>
<div class="contact-img">
<img src="img/rocket-launch.svg" alt="rocket taking off" />
</div>
</div>
<footer class="footer"> <footer class="footer">
<nav class="footer-nav"> <nav class="footer-nav">
<img class="logo" src="img/logo.svg" alt="Cosmically Creative Logo" /> <a href="#home"
><img
class="logo"
src="img/logo.svg"
alt="Cosmically Creative Logo"
/></a>
<ul class="nav-links"> <ul class="nav-links">
<li><a class="main-nav-link" href="index.html">Home</a></li> <li><a class="main-nav-link" href="#home">Home</a></li>
<li> <li><a class="main-nav-link" href="#about">About</a></li>
<a class="main-nav-link" href="services.html">Services</a> <li><a class="main-nav-link" href="#contact">Contact</a></li>
</li>
<li><a class="main-nav-link" href="about.html">About</a></li>
<li><a class="main-nav-link" href="contact.html">Contact</a></li>
<li>
<a class="main-nav-link" href="articles.html">Articles</a>
</li>
</ul> </ul>
</nav> </nav>
<div class="footer-spacer"></div> <div class="footer-spacer"></div>
<p class="copyright-text">Cosmically Creative &copy; 2025</p> <p class="copyright-text">Cosmically Creative &copy; 2025</p>
</footer> </footer>
</section> </section>
</main>
</body> </body>
</html> </html>
+6
View File
@@ -0,0 +1,6 @@
{
"icons": [
{ "src": "img/favicon-192.webp", "type": "image/png", "sizes": "192x192" },
{ "src": "img/favicon-512.webp", "type": "image/png", "sizes": "512x512" }
]
}
View File
Whitespace-only changes.