summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.DS_Storebin0 -> 6148 bytes
-rw-r--r--aden-desktop.jpgbin0 -> 2632886 bytes
-rw-r--r--aden-mobile.jpgbin0 -> 1785352 bytes
-rw-r--r--dropdown-box.js7
-rw-r--r--index.html89
-rw-r--r--style.css494
6 files changed, 356 insertions, 234 deletions
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..5008ddf
--- /dev/null
+++ b/.DS_Store
Binary files differ
diff --git a/aden-desktop.jpg b/aden-desktop.jpg
new file mode 100644
index 0000000..9559bfd
--- /dev/null
+++ b/aden-desktop.jpg
Binary files differ
diff --git a/aden-mobile.jpg b/aden-mobile.jpg
new file mode 100644
index 0000000..14894c3
--- /dev/null
+++ b/aden-mobile.jpg
Binary files differ
diff --git a/dropdown-box.js b/dropdown-box.js
new file mode 100644
index 0000000..47461fb
--- /dev/null
+++ b/dropdown-box.js
@@ -0,0 +1,7 @@
+function toggleDropdown(headerClicked) {
+ let body = headerClicked.nextElementSibling;
+ let arrow = headerClicked.children[1];
+
+ body.classList.toggle("open");
+ arrow.classList.toggle("open");
+}
diff --git a/index.html b/index.html
index 030e6c3..db3fc13 100644
--- a/index.html
+++ b/index.html
@@ -8,9 +8,50 @@
content="Maine Luxury Detailing provides mobile professional car cleaning services in the Portland Area"
/>
<title>Maine Luxury Detailing</title>
- <link href="style.css" rel="stylesheet">
+ <link href="style.css" rel="stylesheet" />
+ <style>
+ /** PAGE SPECIFIC STYLING */
+
+ main {
+ min-height: 530px; /** to make sure footer doesn't overlap hero */
+ }
+
+ #hero-image {
+ height: 600px;
+ width: 100%;
+ background: url("aden-desktop.jpg") 70% 10% / 100% no-repeat;
+ position: absolute;
+ top: 0px;
+ left: 0px;
+
+ z-index: -1;
+ }
+
+ #intro {
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.7);
+ width: 40%;
+ }
+
+ #book-now {
+ display: block;
+ width: 50%;
+ margin-top: 5rem;
+ }
+
+ /** MOBILE */
+ @media screen and (max-width: 850px) {
+ #hero-image {
+ background: url("aden-mobile.jpg") center 10% / 100% no-repeat;
+ }
+
+ #intro {
+ width: 100%;
+ }
+ }
+ </style>
</head>
-
+
<body>
<a href="#main-content" class="skipLink">Skip to main content</a>
@@ -30,7 +71,9 @@
<nav>
<a class="navLink" role="navigation" href="#Services">Services</a>
- <a class="navLink" role="navigation" href="#Ceramic Coating">Ceramic Coating</a>
+ <a class="navLink" role="navigation" href="#Ceramic Coating"
+ >Ceramic Coating</a
+ >
<a class="navLink" role="navigation" href="reviews.html">Reviews</a>
<a class="navLink" role="navigation" href="#Contact">Contact</a>
</nav>
@@ -38,11 +81,32 @@
</header>
<main id="main-content">
+ <div id="hero-image"></div>
+
<section id="intro">
- <h1>Portland's Mobile<br />Luxury Detailing Service</h1>
- <a href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5" target="_blank">
- <button id="book-button">BOOK NOW</button>
- </a>
+ <h1>Restore & Protect<br />Your Vehicle</h1>
+ <p>with the best mobile car detailing service in the Portland area</p>
+ </section>
+
+ <a
+ href="https://app.urable.com/virtual-shop/IQlYjZyF1i2XilEiEKB5"
+ target="_blank"
+ id="book-now"
+ >
+ <button id="book-button">BOOK NOW</button>
+ </a>
+
+ <section id="FAQ">
+ <h1>FAQ</h1>
+ <div class="dropdown">
+ <div class="dropdown-header" onclick="toggleDropdown(this)">
+ <span>HEADER</span>
+ <span class="dropdown-arrow">▼</span>
+ </div>
+ <div class="dropdown-content">
+ <div class="dropdown-body">BODY TEXT BIIIITCH!!!! 😝</div>
+ </div>
+ </div>
</section>
</main>
@@ -53,11 +117,16 @@
Portland, ME
</div>
<div id="footer-right">
- 207-807-6770<br />
- example@email.com<br />
- <a href="https://www.instagram.com/luxurydetailingmaine/" target="_blank">@luxurydetailingmaine</a>
+ 207-807-6770<br />
+ example@email.com<br />
+ <a
+ href="https://www.instagram.com/luxurydetailingmaine/"
+ target="_blank"
+ >@luxurydetailingmaine</a
+ >
</div>
</footer>
<script src="hamburger.js"></script>
+ <script src="dropdown-box.js"></script>
</body>
</html>
diff --git a/style.css b/style.css
index 0267480..3c7a9b2 100644
--- a/style.css
+++ b/style.css
@@ -1,276 +1,322 @@
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
-
- /** COLOR VARIABLES */
- :root {
- --black: #000;
- --gold: #ffd700;
- --dark-gold: #d1b410;
- --light-gold: rgba(255, 215, 0, 0.5)
- }
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
-
- /** HEADER + NAV STYLING */
- header {
- background-color: var(--black);
- position: sticky;
- top: 0;
- z-index: 999;
- }
+/** COLOR VARIABLES */
+:root {
+ --black: #000;
+ --gold: #ffd700;
+ --dark-gold: #d1b410;
+ --light-gold: rgba(255, 215, 0, 0.5);
+}
- .banner {
- display: flex;
- justify-content: space-between; max-width: 60%;
- align-items: center;
+/** HEADER + NAV STYLING */
+header {
+ background-color: var(--black);
+ position: sticky;
+ top: 0;
+ z-index: 999;
+}
- height: 4.5rem;
+.banner {
+ display: flex;
+ justify-content: space-between;
+ max-width: 60%;
+ align-items: center;
- margin: 0 auto;
- padding: 1rem 0;
- }
-
- .logo {
- font-size: 1.5rem;
- font-weight: bold;
- color: var(--gold);
- text-decoration: none;
- }
+ height: 4.5rem;
- #hamburger {
- display: none;
- flex-direction: column;
- cursor: pointer;
- background: none;
- border: none;
- padding: 5px;
- }
+ margin: 0 auto;
+ padding: 1rem 0;
+}
- #hamburger span {
- width: 25px;
- height: 3px;
- background-color: var(--gold);
- margin: 3px 0;
- transition: 0.3s;
- position: relative;
- }
+.logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: var(--gold);
+ text-decoration: none;
+}
- .navLink {
- color: var(--gold);
- text-decoration: none;
- font-weight: 500;
- transition: color 0.3s ease;
- }
+#hamburger {
+ display: none;
+ flex-direction: column;
+ cursor: pointer;
+ background: none;
+ border: none;
+ padding: 5px;
+}
- .navLink:hover {
- color: #fff;
- }
+#hamburger span {
+ width: 25px;
+ height: 3px;
+ background-color: var(--gold);
+ margin: 3px 0;
+ transition: 0.3s;
+ position: relative;
+}
- /** BODY + CONTENT */
- body {
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
- Cantarell, sans-serif;
- line-height: 1.6;
- color: #666;
- background-color: var(--black);
- }
+.navLink {
+ color: var(--gold);
+ text-decoration: none;
+ font-weight: 500;
+ transition: color 0.3s ease;
+}
- main {
- /** background-color: #fff;*/
- background-color: var(--black);
- }
+.navLink:hover {
+ color: #fff;
+}
- section {
- display: flex;
- flex-direction: column;
- justify-content: center;
- max-width: 60%;
- margin: 0 auto;
- padding: 3rem 0;
- }
+/** BODY TAGS */
+body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
+ Ubuntu, Cantarell, sans-serif;
+ line-height: 1.6;
+ color: #666;
+ background-color: var(--black);
+}
- #book-button {
- background-color: var(--gold);
- color: black;
- border: none;
- border-radius: 5rem;
+main {
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ align-items: center;
- box-shadow: 0px 1px 75px rgba(255, 255, 255, 0.5);
+ text-align: center;
- padding: 2rem 0;
- margin: 5rem 0;
+ width: 100%;
+ padding: 0;
+ margin: 0;
+}
- height: 7rem;
+section {
+ max-width: 60%;
+ margin-top: 5rem;
+ padding: 1rem 1rem;
+}
- font-size: 2rem;
- font-weight: bold;
- text-decoration: none;
- }
- #book-button:hover {
- cursor: pointer;
- }
- #book-button:active {
- background-color: var(--dark-gold);
- }
-
- a {
- color: var(--gold);
- text-align: center;
+/** TEXT TYPES */
+a {
+ color: var(--gold);
+ text-align: center;
+}
+
+h1 {
+ font-size: 2.5rem;
+ color: #fff;
+ text-align: center;
+}
+
+h2 {
+ font-size: 2rem;
+ color: var(--gold);
+ margin-bottom: 1rem;
+ border-bottom: 2px solid var(--gold);
+}
+
+h3 {
+ font-size: 1.5rem;
+ color: #000;
+}
+
+p {
+ color: #fff;
+}
+
+/** FOOTER */
+footer {
+ display: flex;
+ justify-content: space-between;
+
+ margin: 5rem auto;
+ padding: 2rem 0;
+
+ max-width: 60%;
+
+ background-color: #000;
+ color: var(--gold);
+
+ text-align: center;
+}
+
+#footer-left {
+ width: 50%;
+ text-align: left;
+}
+#footer-right {
+ width: 50%;
+ text-align: right;
+}
+
+/** "skip link" for screen readers */
+.skipLink {
+ position: absolute;
+ top: -50px;
+ left: 6px;
+ background: #fff;
+ color: #000;
+ padding: 8px;
+ text-decoration: none;
+ font-weight: bold;
+ border-radius: 4px;
+ z-index: 1000;
+}
+.skipLink:focus {
+ top: 6px;
+}
+
+/** BOOK NOW button */
+#book-button {
+ height: 7rem;
+ min-width: 100%;
+
+ background-color: var(--black);
+ color: var(--gold);
+
+ border: none;
+ border-radius: 5rem;
+
+ box-shadow: 0px 0px 50px var(--gold);
+
+ padding: 2rem 0;
+ margin: 0;
+
+ font-size: 2rem;
+ font-weight: bold;
+ text-decoration: none;
+}
+#book-button:hover {
+ cursor: pointer;
+}
+#book-button:active {
+ background-color: var(--dark-gold);
+}
+
+/** DESKTOP RULES */
+@media screen and (min-width: 851px) {
+ /** header */
+ nav {
+ display: flex;
+ flex-direction: row;
+ gap: 3rem;
+
+ list-style: none;
}
+ /** content */
h1 {
- font-size: 2.5rem;
- color: #fff;
- margin-bottom: 1rem;
- text-align: center;
+ font-size: 3rem;
}
- h2 {
- font-size: 2rem;
- color: var(--gold);
- margin-bottom: 1rem;
- border-bottom: 2px solid var(--gold);
- padding-bottom: 0.5rem;
+ #book-button {
+ width: 50%;
}
+}
- h3 {
- font-size: 1.5rem;
- color: #000;
- margin-bottom: 1rem;
+/* MOBILE RULES */
+@media screen and (max-width: 850px) {
+ /** header */
+ header {
+ padding: 0 1rem;
}
- p {
- color: #fff;
- margin-bottom: 1rem;
+ #hamburger {
+ display: flex;
}
- /** FOOTER */
- footer {
+ nav {
display: flex;
- justify-content: space-between;
+ flex-direction: column;
+ position: fixed;
+ gap: 1rem;
- margin: 1rem auto;
padding: 2rem 0;
- max-width: 60%;
-
- background-color: #000;
- color: var(--gold);
+ top: -12rem;
+ left: 0;
+ width: 100%;
+ font-size: 1rem;
text-align: center;
+ background-color: #000;
+ transition: top 0.5s ease;
+ box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
+ z-index: -1;
}
- #footer-left {
- width: 50%;
- text-align: left;
- }
- #footer-right {
- width: 50%;
- text-align: right;
+ nav.active {
+ top: 1.5rem;
}
- /** "skip link" for screen readers */
- .skipLink {
- position: absolute;
- top: -50px;
- left: 6px;
- background: #fff;
- color: #000;
- padding: 8px;
- text-decoration: none;
- font-weight: bold;
- border-radius: 4px;
- z-index: 1000;
+ /** hamburger animation */
+ #hamburger.active span:nth-child(1) {
+ transform: rotate(-45deg) translateY(10px) translateX(-3px);
+ width: 24px;
+ height: 4px;
}
- .skipLink:focus {
- top: 6px;
+ #hamburger.active span:nth-child(2) {
+ opacity: 0;
+ }
+ #hamburger.active span:nth-child(3) {
+ transform: rotate(45deg) translateY(-10px) translateX(-3px);
+ width: 24px;
+ height: 4px;
}
- /** DESKTOP RULES */
- @media screen and (min-width: 851px) {
- /** header */
- nav {
- display: flex;
- flex-direction: row;
- gap: 3rem;
-
- list-style: none;
- }
-
- /** content */
- h1 {
- font-size: 3rem;
- }
-
- #book-button {
- width: 50%;
- }
+ /** footer */
+ footer {
+ font-size: 0.9rem;
}
- /* MOBILE RULES */
- @media screen and (max-width: 850px) {
- /** header */
- header {
- padding: 0 1rem;
- }
+ /** content rules */
+ h1 {
+ font-size: 2rem;
+ }
- #hamburger {
- display: flex;
- }
+ #book-button {
+ font-size: 1.75rem;
+ width: 85%;
+ }
+}
- nav {
- display: flex;
- flex-direction: column;
- position: fixed;
- gap: 1rem;
+/** DROP DOWN MENUS */
+.dropdown {
+ width: 300px;
+}
- padding: 2rem 0;
+.dropdown-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 10px;
+ border: 1px solid var(--gold);
+ cursor: pointer;
+}
- top: -12rem;
- left: 0;
- width: 100%;
+.dropdown-arrow {
+ transition: transform 0.3s ease;
+}
- font-size: 1rem;
- text-align: center;
- background-color: #000;
- transition: top 0.5s ease;
- box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
- z-index: -1;
- }
+.dropdown-arrow.open {
+ transform: rotate(180deg);
+}
- nav.active {
- top: 1.5rem;
- }
+.dropdown-content {
+ overflow: hidden;
+ max-height: 0;
- /** hamburger animation */
- #hamburger.active span:nth-child(1) {
- transform: rotate(-45deg) translateY(10px) translateX(-3px);
- width: 24px;
- height: 4px;
- }
- #hamburger.active span:nth-child(2) {
- opacity: 0;
- }
- #hamburger.active span:nth-child(3) {
- transform: rotate(45deg) translateY(-10px) translateX(-3px);
- width: 24px;
- height: 4px;
- }
+ transition: max-height 0.3s ease;
- /** footer */
- footer {
- font-size: .9rem;
- }
+ border-left: 1px solid var(--gold);
+ border-right: 1px solid var(--gold);
+ border-bottom: 1px solid var(--gold);
+}
- /** content rules */
- h1 {
- font-size: 2rem;
- }
+.dropdown-content.open {
+ max-height: 300px;
+}
- #book-button {
- font-size: 1.75rem;
- width: 85%;
- }
- }
+.dropdown-body {
+ padding: 10px;
+}