changed up service styling + added content to ceramic page
This commit is contained in:
+49
-12
@@ -12,11 +12,48 @@
|
|||||||
<link href="css/dropdown.css" rel="stylesheet" />
|
<link href="css/dropdown.css" rel="stylesheet" />
|
||||||
<link href="css/hamburger.css" rel="stylesheet" />
|
<link href="css/hamburger.css" rel="stylesheet" />
|
||||||
<style>
|
<style>
|
||||||
.info-container {
|
hr {
|
||||||
background-color: var(--gold);
|
background-color: black;
|
||||||
|
height: 4px;
|
||||||
|
width: 75%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-box {
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
padding: 2rem 4rem;;
|
||||||
border-radius: 4rem;
|
border-radius: 4rem;
|
||||||
|
|
||||||
|
background-color: var(--gold);
|
||||||
|
}
|
||||||
|
.info-box h1, p {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-flex {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-flex:nth-child(1) {
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
.info-flex:nth-child(2) {
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** MOBILE */
|
||||||
|
@media screen and (max-width: 850px) {
|
||||||
|
|
||||||
|
.info-flex {
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.info-flex section {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -48,22 +85,22 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main id="main-content">
|
<main id="main-content">
|
||||||
<section>
|
|
||||||
<h1 style="margin-bottom: 7rem">Ceramic Coating</h1>
|
<section class="info-box">
|
||||||
<div id="reviewContainer"></div>
|
<h1><em>All</em> Ceramic Coatings Include</h1>
|
||||||
|
<hr />
|
||||||
|
<p>testing</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="info-container">
|
<div class="info-flex">
|
||||||
|
<section class="info-box">
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div style="display: flex; flex-direction: row; justify-content: space-between; width: 80%;">
|
<section class="info-box">
|
||||||
<section class="info-container" style="width: 30%;">
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="info-container" style="width: 60%;">
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
<script src="js/hamburger.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+5
-4
@@ -44,7 +44,7 @@ header {
|
|||||||
.navLink {
|
.navLink {
|
||||||
color: var(--gold);
|
color: var(--gold);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 500;
|
font-weight: bold;
|
||||||
transition: color 0.5s ease;
|
transition: color 0.5s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,16 +181,17 @@ footer {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
gap: 1rem;
|
gap: 2rem;
|
||||||
|
|
||||||
padding: 2rem 0;
|
padding: 2rem 0;
|
||||||
|
|
||||||
top: -12rem;
|
top: -20rem;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
font-size: 1rem;
|
font-size: 2rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
background-color: var(--black);
|
background-color: var(--black);
|
||||||
transition: top 0.5s ease;
|
transition: top 0.5s ease;
|
||||||
box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
|
||||||
|
|||||||
+22
-11
@@ -53,16 +53,17 @@
|
|||||||
.dropdown {
|
.dropdown {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 1px solid var(--gold);
|
border: 1px solid var(--gold);
|
||||||
transition: 2s;
|
border-radius: 1.25rem;
|
||||||
}
|
transition: 0.5s;
|
||||||
.dropdown:hover {
|
user-select: none;
|
||||||
border: 1px solid white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Prevent nested dropdowns from having borders */
|
/** Prevent nested dropdowns from having borders */
|
||||||
.dropdown .dropdown {
|
.dropdown .dropdown {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
border-bottom: none;
|
||||||
|
border-radius: 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-header {
|
.dropdown-header {
|
||||||
@@ -105,12 +106,6 @@
|
|||||||
max-height: 2000px;
|
max-height: 2000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
TODO:
|
|
||||||
- desktop view should be FLEX ROW
|
|
||||||
- mobile view should be normal columns
|
|
||||||
- get rid of double border on dropdowns if nested
|
|
||||||
*/
|
|
||||||
.dropdown-body {
|
.dropdown-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -118,12 +113,12 @@
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin: 1rem 1rem 1.5rem 6rem;
|
margin: 1rem 1rem 1.5rem 6rem;
|
||||||
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-body p {
|
.dropdown-body p {
|
||||||
padding-right: 4rem;
|
padding-right: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-body-half {
|
.dropdown-body-half {
|
||||||
flex-basis: 50%;
|
flex-basis: 50%;
|
||||||
}
|
}
|
||||||
@@ -137,6 +132,9 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
@@ -146,7 +144,20 @@
|
|||||||
}
|
}
|
||||||
.dropdown-body {
|
.dropdown-body {
|
||||||
margin: 1rem 1rem 1.5rem 3rem;
|
margin: 1rem 1rem 1.5rem 3rem;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
.dropdown-body span:not(:first-child) {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
}
|
||||||
|
.dropdown-body p {
|
||||||
|
padding-right: 0rem;
|
||||||
|
}
|
||||||
|
.book-link {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user