In progress....this is a layout mimicking a Bootstrap multi-row layout.
A Pen by Eileen Violini on CodePen.
In progress....this is a layout mimicking a Bootstrap multi-row layout.
A Pen by Eileen Violini on CodePen.
<body> | |
<!-- Header --> | |
<header class="header"> | |
<div class="hero"> | |
<div class="12-col"> | |
<h1>Organic & Farm-Fresh</h1> | |
</div> | |
</div> | |
</div> | |
</header> | |
<!-- Page Content --> | |
<div class="container"> | |
<div class="row"> | |
<div class="welcome"> | |
<h2>Home-grown Heirloom Favorites</h2> | |
<p></p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corporis rem, reiciendis tempore laboriosam, aut quam earum reprehenderit laborum enim eos, beatae deleniti voluptate dicta esse repellat odit. Quasi, ullam! Enim?</p> | |
<p></p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore molestias officia impedit similique quo voluptatum ab sunt ullam consequuntur perspiciatis placeat animi suscipit ex rem, repudiandae vel porro quam nulla.<p> | |
</div> | |
<div class="contact"> | |
<h2>Contact Us</h2> | |
<div> | |
<strong>Forest Farms</strong> | |
<br />Oatlands, Virginia | |
<br /> | |
<br /> | |
</div> | |
<abbr title="Phone">☎ </abbr>703.858.9585 | |
<p><button class="button">Join our email list!</button></p> | |
</div> | |
</div> | |
<hr> | |
<div class="products"> | |
<h3>What's in Season Now</h3> | |
<div class="item-1"> | |
<img class="image image--circle image--center" src="https://source.unsplash.com/5i5zmvhVMZ4/300x300" alt=""> | |
<h4>Bell Peppers</h4> | |
</div> | |
<div class="item-2"> | |
<img class="image image--circle image--center" src="https://source.unsplash.com/5PDlOQOKOpA/300x300" alt=""> | |
<p></p>Radishes</p> | |
</div> | |
<div class="item-3"> | |
<img class="image image--circle image--center" src="https://source.unsplash.com/eFFnKMiDMGc/300x300" alt=""> | |
<p></p>Baby Carrots</p> | |
</div> | |
</div> | |
<!-- Footer --> | |
<footer class="footer"> ©2017 Forest Farms | Privacy Policy </footer> |
@import url('https://fonts.googleapis.com/css?family=Cabin|Dancing+Script'); | |
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} | |
body { | |
font-family: "Cabin", Helvetica, Arial, sans-serif; | |
font-size: 18px; | |
line-height: 1.5; | |
margin: 0; | |
padding: 0; | |
} | |
h1 { | |
font-family: "Dancing Script", Times, Serif; | |
color: #ffffff; | |
font-size: 8vw; | |
} | |
.header { | |
background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ),url('https://source.unsplash.com/UOEB1ztsDMo/1500x1000'); | |
background-size: cover; | |
} | |
.hero { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
height: 400px; | |
color; #ffffff; | |
} | |
.container { | |
margin-left: auto; | |
margin-right: auto; | |
padding-left: 15px; | |
padding-right: 15px; | |
} | |
.button { | |
padding: 10px 16px; | |
border-radius: 6px; | |
background-color: transparent; | |
border: 1px solid #cccccc; | |
font-size: .75em; | |
} | |
.button:hover { | |
box-shadow: 1px 2px 3px 0px rgba(25,25,25,0.6); | |
opacity: 1; | |
transition:all 0.5s ease; | |
} | |
abbr { | |
text-decoration: none; | |
} | |
.row { | |
display: grid; | |
grid-template-columns: repeat(12, 1fr); | |
grid-gap: 60px; | |
} | |
.welcome { | |
grid-column: span 8; | |
} | |
.contact { | |
grid-column: span 4; | |
} | |
.products { | |
display: grid; | |
grid-template-columns: repeat(12, 1fr); | |
grid-gap: 60px; | |
} | |
h3 { | |
font-family: "Dancing Script"; | |
font-size: 4vw; | |
grid-column: span 12; | |
text-align: center; | |
} | |
.item-1 { | |
grid-column: span 4; | |
text-align: center; | |
} | |
.item-2 { | |
grid-column: span 4; | |
text-align: center; | |
} | |
.item-3 { | |
grid-column: span 4; | |
text-align: center; | |
} | |
.image { | |
display: block; | |
max-width: 100%; | |
height: auto; | |
} | |
.image--center { | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.image--circle { | |
border-radius: 50%; | |
} | |
.footer { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
height: 50px; | |
background-color: black; | |
margin-top: 30px; | |
color: grey; | |
text-align: center; | |
} |