Shopify Template Code - 5

Shopify Template Code - 5

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Rapid Prototyping</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Example for rapid prototyping with CSS Grid Layout with focus on 'grid areas'.">

<style>
body, .topbar, header, nav, .hero, aside, main, .teaser, footer{
  background-color: #222;
}
body, .button, .section h3 {
  font-family: Georgia, serif;
}
body, .button {
  color: whitesmoke;
}
body {
  font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  width: 100%;
  margin: 0;
  padding: 0;
}
.topbar {
  grid-area: topbar;
  font-size: 1rem;
}
header {
  grid-area: header;
}
nav {
  grid-area: nav;
}
.hero {
  grid-area: hero;
}
.featured {
  grid-area: featured;
}
main {
  grid-area: main;
}
aside {
  grid-area: aside;
}
.teaser {
  grid-area: teaser;
}
footer {
  grid-area: footer;
}

/* Styles for the grid container */
.grid-container {
  display: grid;
   /* Styles for the placement of the grid areas */
  grid-template-areas:
    "topbar"
    "header"
    "nav"
    "hero"
    "featured"
    "main"
    "aside"
    "teaser"
    "footer";
  grid-gap: .5rem;
  padding: .25rem;
}
@media only screen and (min-width: 550px) {
  .grid-container {
    grid-template-columns: repeat(2,1fr);
    grid-template-areas:
      "topbar topbar"
      "header header"
      "nav nav"
      "hero hero"
      "featured featured"
      "main main"
      "aside ."
      "teaser teaser"
      "footer footer";
  }
}
@media only screen and (min-width: 800px) {
  .grid-container {
    grid-template-columns: repeat(3,1fr);
    grid-template-areas:
      "topbar topbar topbar"
      "header header header"
      "nav nav nav"
      "hero hero hero"
      "featured featured featured"
      "aside main main"
      "teaser teaser teaser"
      "footer footer footer";
  }
}

/* Styles for the grid items */
.grid-box {
  padding: .5rem;
}
/* Styles for the HTML elements */


/* Defining the subgrid areas */
.topbar_box_1 {
  grid-area: topbar_box_1;
}
.topbar_box_2 {
  grid-area: topbar_box_2;
}
.topbar_box_3 {
  grid-area: topbar_box_3;
}
.topbar_box_4 {
  grid-area: topbar_box_4;
}
/* Styles for the nested grid container */
.sub_grid_topbar {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-template-areas:
    "topbar_box_1 topbar_box_2"
    "topbar_box_3 topbar_box_4";
}
/* Media query for the nested grid container */
@media only screen and (min-width: 800px) {
  .sub_grid_topbar {
    grid-template-columns: repeat(4,1fr);
    grid-template-areas:
      "topbar_box_1 topbar_box_2 topbar_box_3 topbar_box_4";
  }
}

/* Styles for the sub-grid items */
.sub-grid-box {
  padding: .5rem;
  background-color: #7F7F7F;
  color: #fff;
}


.section h3, {
  color: #d00;
}
.button {
  background-color: #d00;
  color: whitesmoke;
}
.new {
  background-color: darkslategray;
}
.button:hover {
  background: #FAEBD7;
  color: #444;
}
.section h3, .new {
  color: burlywood;
}

.button {
  display: inline-block;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  padding: 0.75em 2em;
  cursor: pointer;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.2);
  width: fit-content;
}

.block {
  display: block;
  width: 100%;
  border: none;
}

.new {
  padding: 0.5em 1em;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 0.85em;
  width: fit-content;
}

.section {
  padding: 4em 0;
}
.section h3 {
  font-size: 2em;
  line-height: 1.5em;
  font-weight: 500;
}
.section .button {
  margin: 1em 0;
}

.section.teaser {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.section.teaser.top-teaser .sectionImg {
  background: url("converting_traffic/1.webp") no-repeat;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 450px;
  grid-column: 1/7;
}
.section.teaser.top-teaser .sectionCopy {
  grid-column: 8/12;
}
.section.teaser.bottom-teaser .sectionImg {
  background: url("converting_traffic/2.webp") no-repeat;
  background-size: cover;
  background-position: center 10%;
  width: 100%;
  height: 450px;
  grid-column: 1/7;
}
.section.teaser.bottom-teaser .sectionCopy {
  grid-column: 8/12;
}
.section.teaser.middle-teaser .sectionImg {
  background: url("converting_traffic/4.webp") no-repeat;
  background-size: cover;
  width: 100%;
  height: 450px;
  grid-column: 7/13;
  grid-row: 1/2;
}
.section.teaser.middle-teaser .sectionCopy {
  grid-column: 2/6;
}

@media (max-width: 700px) {
  :root {
    padding: 10%
  }

  .section {
    padding: 2em 0;
  }

  .block {
    display: block;
    width: 70%;
    border: none;
  }

  .new {
    margin: auto;
  }

  .section.teaser.mobileCenter {
    grid-template-rows: 1fr 1fr;
    text-align: center;
  }
  .section.teaser.mobileCenter .sectionImg {
    grid-column: 1/13;
    grid-row: 1/2;
    height: 100%;
  }
  .section.teaser.mobileCenter .sectionCopy {
    grid-column: 2/12;
    grid-row: 2/3;
    margin-top: 2em;
    padding: 0;
  }
 
}


</style>

</head>
  <body>
      <div class="grid-container">
            <div class="grid-box topbar sub_grid_topbar">
                <div class="topbar_box_1">
                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-phone-vibrate-fill" viewBox="0 0 16 16">
                    <path d="M4 4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm5 7a1 1 0 1 0-2 0 1 1 0 0 0 2 0zM1.807 4.734a.5.5 0 1 0-.884-.468A7.967 7.967 0 0 0 0 8c0 1.347.334 2.618.923 3.734a.5.5 0 1 0 .884-.468A6.967 6.967 0 0 1 1 8c0-1.18.292-2.292.807-3.266zm13.27-.468a.5.5 0 0 0-.884.468C14.708 5.708 15 6.819 15 8c0 1.18-.292 2.292-.807 3.266a.5.5 0 0 0 .884.468A7.967 7.967 0 0 0 16 8a7.967 7.967 0 0 0-.923-3.734zM3.34 6.182a.5.5 0 1 0-.93-.364A5.986 5.986 0 0 0 2 8c0 .769.145 1.505.41 2.182a.5.5 0 1 0 .93-.364A4.986 4.986 0 0 1 3 8c0-.642.12-1.255.34-1.818zm10.25-.364a.5.5 0 0 0-.93.364c.22.563.34 1.176.34 1.818 0 .642-.12 1.255-.34 1.818a.5.5 0 0 0 .93.364C13.856 9.505 14 8.769 14 8c0-.769-.145-1.505-.41-2.182z"/>
                  </svg> 770-897-6107
                </div>
                <div class="topbar_box_2">
                  
                    <svg xmlns="http://www.w3.org/2000/svg" width="16.822035" height="16.822035" viewBox="0 0 16.822035 16.822035"><g id="email" transform="matrix(0.35045904,0,0,0.35045904,-0.70091808,-0.70091808)"><g id="email-2" data-name="email"><rect x="2" y="20" width="48" height="26" id="rect4" style="fill:#1aa6b8" /><polygon points="50,20.06 2,20.06 26,2 " id="polygon6" style="fill:#24b9cc" /><polygon points="39.12,6.09 5.71,6.09 5.71,38.02 46.29,38.02 46.29,13.83" id="polygon8" style="fill:#eae8e8" /><polygon points="39.12,6.09 39.12,13.83 46.29,13.83" id="polygon10" style="fill:#d7d4d4"/><polygon points="50,20 50,50 26,34" id="olygon12" style="fill:#80deea"/><polygon points="26,34 2,50 2,20" id="polygon14" style="fill:#80deea"/><polygon points="50,50 2,50 26,34" id="polygon16" style="fill:#5cd4e3" /><path d="m 26,12 a 8,8 0 1 0 5.19,14.08 l -1,-1.22 A 6.4,6.4 0 1 1 32.4,20 v 1.2 a 1.2,1.2 0 0 1 -2.4,0 V 16 h -1.6 v 0.82 A 4,4 0 0 0 26,16 4,4 0 1 0 28.88,22.76 2.79,2.79 0 0 0 34,21.6 v 0 -1.6 a 8,8 0 0 0 -8,-8 z m 0,10.4 A 2.4,2.4 0 1 1 28.4,20 2.4,2.4 0 0 1 26,22.4 Z" id="path18"    inkscape:connector-curvature="0" style="fill:#ff6e40" /></g></g></svg> greggeniis@gmail.com
                </div>
                <div class="topbar_box_3">
                </div>
                <div class="topbar_box_4">
                  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-node-minus" viewBox="0 0 16 16">
                    <path fill-rule="evenodd" d="M11 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM6.025 7.5a5 5 0 1 1 0 1H4A1.5 1.5 0 0 1 2.5 10h-1A1.5 1.5 0 0 1 0 8.5v-1A1.5 1.5 0 0 1 1.5 6h1A1.5 1.5 0 0 1 4 7.5h2.025zM1.5 7a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1zM8 8a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5A.5.5 0 0 1 8 8z"/></svg> Login
                </div>
          </div>
            <header class="grid-box header">
                  Logo
            </header>
            <nav>
             Nav
            </nav>
            <div class="grid-box hero">
                 Hero image
           </div>
           <div class="featured">
                <section class="section teaser top-teaser mobileCenter">
                       <div class="sectionImg"></div>
                       <div class="sectionCopy" data-aos="fade-up">
                         <div class="new">
                           <span>Just In!</span>
                         </div>
                         <h3>Fall/Winter Yarns</h3>
                         <p>New fibers and colors to fit a moody Winter palette. Knit, crochet, and macrame with our range of earth-friendly yarns. </p>
                         <a href="#" class="button block">Shop Bundles</a>
                       </div>
                  </section>
                  <section class="section teaser middle-teaser mobileCenter">
                         <div class="sectionImg"></div>
                         <div class="sectionCopy" data-aos="fade-up">
                           <h3>Knit 1, Purl 2</h3>
                           <p>Dive into a new project with easy to follow patterns in a range of styles for beginning to advanced knitters. </p>
                           <a href="#" class="button block">Shop Patterns</a>
                         </div>
                  </section>
                  <section class="section teaser bottom-teaser mobileCenter">
                         <div class="sectionImg"></div>
                         <div class="sectionCopy" data-aos="fade-up">
                           <h3>Cozy Up</h3>
                           <p>One-of-a-kind hats, scarves, and sweaters to keep you looking fine and feeling cozy.</p>
                           <a href="#" class="button block">Shop Accessories</a>
                         </div>
                  </section>
           </div>
           <div class="grid-box teaser">
                  Main
           </div>
           <main class="grid-box">
                   
           </main>
           <aside class="grid-box">
              <p>nav</p>
           </aside>
           <div class="teaser">
              <p>
                Call to action
              </p>
           </div>    
           <footer class="grid-box">
              <p>Footer</p>
           </footer>
       </div>
  </body>
</html>

Free shipping when you spend $50 or more.

Shop Now