diff --git a/404.html b/404.html index b28e960..f413e49 100644 --- a/404.html +++ b/404.html @@ -13,14 +13,17 @@
-
diff --git a/about.html b/about.html index 1983348..94af73e 100644 --- a/about.html +++ b/about.html @@ -13,14 +13,17 @@
-
diff --git a/contact.html b/contact.html index 6a77ba8..dbee7e8 100644 --- a/contact.html +++ b/contact.html @@ -13,14 +13,17 @@
-
@@ -36,9 +39,8 @@ through our social media channels. Let's weave a thread of creativity and conversation together at WillowMeCreations – where every message is a stitch in our community's vibrant tapestry.

Contact Information

-

Email: bethany@willowmecreations.com
TikTok: - bethanyrhodes6

+

Email: willowmecreations@yahoo.com
+ TikTok: bethanyrhodes6

diff --git a/img/logo-transparent-wide.png b/img/logo-transparent-wide.png new file mode 100644 index 0000000..23ea9f6 Binary files /dev/null and b/img/logo-transparent-wide.png differ diff --git a/img/logo-transparent.png b/img/logo-transparent.png new file mode 100644 index 0000000..b5237ce Binary files /dev/null and b/img/logo-transparent.png differ diff --git a/index.html b/index.html index 5ffe027..0478439 100644 --- a/index.html +++ b/index.html @@ -13,14 +13,17 @@
-
diff --git a/news.html b/news.html index 7b1c4ec..7724b9d 100644 --- a/news.html +++ b/news.html @@ -13,14 +13,17 @@
-
diff --git a/products.html b/products.html index 4b70a6a..e2297f8 100644 --- a/products.html +++ b/products.html @@ -13,14 +13,17 @@
-
diff --git a/script.js b/script.js index 22285a4..ddbf619 100644 --- a/script.js +++ b/script.js @@ -29,3 +29,23 @@ function moveSlides(n) { // Initial call to start the slideshow showSlides(); + +function toggleMenu() { + var x = document.getElementById("myTopnav"); + if (x.className === "topnav") { + x.className += " responsive"; + } else { + x.className = "topnav"; + } +} + +document.addEventListener("DOMContentLoaded", function () { + var pathname = window.location.pathname; + var navLinks = document.querySelectorAll(".topnav a"); + + navLinks.forEach(function (link) { + if (link.getAttribute("href") === pathname.split("/").pop()) { + link.classList.add("active"); + } + }); +}); diff --git a/style.css b/style.css index fda12f8..57be34e 100644 --- a/style.css +++ b/style.css @@ -8,35 +8,70 @@ body { /* Warm, cozy background color */ } -header { - background-color: #333; +.header { + display: flex; + flex-direction: column; + align-items: center; + background-color: #888; + /* Slightly lighter background color */ color: #fff; padding: 20px 0; } .container { width: 90%; - max-width: 1200px; + max-width: 1600px; + /* Increase max-width to allow more items in a line */ margin: 0 auto; } +.logo { + margin-bottom: 10px; + /* Add some space between the logo and navigation */ + display: flex; + justify-content: center; + /* Center the logo */ +} + .logo img { width: 150px; + height: auto; + margin-bottom: 20px; + border: 2px solid #fff; + box-shadow: 0 0 10px #9b9b9b; } .topnav { - text-align: center; + overflow: hidden; + background-color: #333; + position: relative; + display: flex; + justify-content: center; + /* Center the navigation links on desktop */ + align-items: center; } .topnav a { - color: #fff; - margin: 0 15px; + display: block; + color: #f2f2f2; + text-align: center; + padding: 14px 16px; text-decoration: none; - font-weight: 700; + font-size: 17px; } .topnav a:hover { - color: #FFD700; + background-color: #4b4b4b; + color: black; +} + +.topnav a.active { + background-color: #91c993; + color: white; +} + +.topnav a.icon { + display: none; } .products { @@ -52,9 +87,11 @@ header { .product-grid { display: flex; - justify-content: center; - gap: 20px; + justify-content: space-between; + /* Spread items out evenly */ flex-wrap: wrap; + gap: 20px; + /* Space between items */ } .product-card { @@ -62,12 +99,15 @@ header { padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); - width: calc(33.333% - 20px); + flex: 1 1 calc(30% - 20px); + /* Make each product card flexible */ margin-bottom: 20px; + box-sizing: border-box; + /* Ensure padding and borders are included in the width */ } .product-card img { - width: 100%; + width: 80%; border-radius: 10px; margin-bottom: 15px; } @@ -228,7 +268,7 @@ header { .product-grid { display: flex; - justify-content: center; + justify-content: space-between; gap: 20px; flex-wrap: wrap; } @@ -238,8 +278,9 @@ header { padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); - width: calc(33.333% - 20px); + flex: 1 1 calc(30% - 20px); margin-bottom: 20px; + box-sizing: border-box; } .product-card img { @@ -280,7 +321,8 @@ header { text-align: center; } -.news h2, .news h3 { +.news h2, +.news h3 { font-family: 'Playfair Display', serif; } @@ -376,17 +418,6 @@ header { } } -@media (max-width: 480px) { - .product-card { - width: calc(100% - 20px); - } - - .products p { - font-size: 0.9em; - max-width: 90%; - } -} - @media (max-width: 768px) { .news p { font-size: 1em; @@ -451,4 +482,43 @@ header { } } +@media screen and (max-width: 600px) { + .topnav a:not(:first-child) { + display: none; + } + + .topnav a.icon { + float: right; + display: block; + } + + .topnav.responsive { + flex-direction: column; + align-items: flex-start; + background-color: #333; + } + + .topnav.responsive .icon { + position: absolute; + right: 0; + top: 0; + } + + .topnav.responsive a { + float: none; + display: block; + text-align: left; + width: 100%; + color: #f2f2f2; + } + + .product-grid { + flex-direction: column; + } + + .product-card { + width: 100%; + } +} + /* I fucking hate css */ \ No newline at end of file