Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miah davis #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
253 changes: 253 additions & 0 deletions farm-to-table/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
/* reset*/
*{
box-sizing: border-box;
padding: 0;
margin: 0;
max-width: 100%;
}
/*Gen style*/
.html{
font-size: 62.5%;/*Should we use both font-size on body and html?*/

}
.body{
font-size: 1.8rem;
line-height: 1.5;
font-family: 'PT Sans',sans-serif;
color:#444;
background-color: white;
border: 1px white;
width: max-content;
margin:0 2rem;
}
h1,h2,h3{
font-family: 'Nunito',sans-serif;
letter-spacing:.3rem;
}
h1{
font-size: 3.5rem;
}
h2{
font-size: 2rem;
}
/*Navigation Bar*/
.navi{
display: flex;
justify-content: space-evenly;
align-items: center;
letter-spacing: 4px;
width: 100%;
background-color: rgba(255,255,255,0.8);
padding-top: 1%;
position: fixed;

}
.navi i{
width: 5%;
color: #444;
font-weight: 400;
font-size: 3.5rem;
padding:1% 3%;
}
.navi nav{
display: flex;
justify-content: space-between;
width: 60%;
font-size: 1.2rem;
text-decoration: 2px dotted red;
/* border:2px solid firebrick; */
}
.navi nav a:hover{
color: #fcb131;
}
/*Header*/
header{
height: 90vh;
background-image: url(https://farm-to-table-practice-site.netlify.app/images/header.jpg);
background-size: cover;
display: flex;
justify-content: center;
text-align: center;
color: #444;

}
.intro{
width: 40%;
margin-top: 10rem;

}
/*Products*/
#Farm h2{
text-align: center;
margin-top: 2rem;
}
#Farm .contain{
display: flex;
justify-content: space-evenly;

}
#Farm .products{
width: 22%;
text-align: center;
border: 3px solid #444;
padding: 1rem;

}
#Farm .products i{
height: 5rem;
width: 5rem;
font-size: 4rem;
font-weight: 400;
color: #444;
}
.clear{
background-image: url(https://farm-to-table-practice-site.netlify.app/images/dirt.jpg);
background-size: cover;
background-attachment: fixed;
background-position: center;
height: 40vh;
padding:2rem;
margin-top: 2rem;
}
.story{
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
#About{
display: flex;
margin-top: 2rem;
border:2px solid #444;
flex-direction: column;
width: 60%;
text-align: center;
padding:3%;
font-size: 1.2rem;
font-family: 'PT Sans', sans-serif;
line-height: 1.5;
}
#About i{
font-size: 4rem;

margin-top: 1rem;
color: #444;
}
.features{
display: flex;
flex-wrap: wrap;
justify-content: space-around;

}

.Farm{
background-image: url(https://farm-to-table-practice-site.netlify.app/images/barn.jpg);
width: 40%;
height: 40vh;
margin: 2% 0;
align-items: flex-end;


}
.Cooking{
background-image: url(https://farm-to-table-practice-site.netlify.app/images/cook.jpg);
width: 40%;
height: 40vh;
margin: 2% 0;
align-items: flex-end;
}
.Produce{
background-image: url(https://farm-to-table-practice-site.netlify.app/images/produce.jpg);
width: 40%;
height: 40vh;
margin: 2% 0;
align-items: flex-end;
}
.Animals{
background-image: url(https://farm-to-table-practice-site.netlify.app/images/sheep.jpg);
width: 40%;
height: 40vh;
margin: 2% 0;
align-items: flex-end;
}
.hide{
opacity: 0;

}
.hide:hover{
opacity: 1;
}
.visit{
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;

}
#Contact{
display: flex;
justify-content: space-around;
/* flex-direction: column; */
/* width: 45%; */

}
#Contact i{
font-size: 3.5rem;
color: #444;

}
.find{
justify-content: center;
width: 45%;
color: #444;
}
.call :hover{
color: #fcb131;
}
address{
display: flex;
justify-content: center;
align-items: center;
line-height: 2;
width: 44%;
flex-direction: column;
font-size: 1.2rem;
}
.tractor{
display: flex;
justify-content: center;
align-items: center;
width: 44%;
line-height: 2;
}
.tractor img{
width: 75%;
}
footer{
display: flex;
background-color: #fcb131;
color:white;
justify-content: space-evenly;
height: 8rem;
}
.connect{
width:23%;
}
.connect i{
font-weight: 400;
}
.navb{
display: flex;
flex-direction: column;
text-decoration: none;
color: white;
font-size: 1.4rem;
}
navb :hover{
color: #444;
}
.copyr{
display: flex;
justify-content: flex-end;
align-items: flex-end;
}
127 changes: 126 additions & 1 deletion farm-to-table/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,131 @@
<script src="https://kit.fontawesome.com/4d99540586.js" crossorigin="anonymous"></script>
</head>
<body>
<!--Start writing your HTML here-->
<div class="navi">
<a href=#Home>
<i class="far fa-farm" aria-hidden="true"></i>
</a>
<nav>
<a href=#Home>Home</a>
<a href=#Farm>Farm Fresh</a>
<a href=#About>About</a>
<a href=#Contact>Contact</a>
</nav>
</div>
<header id="Home">
<div class=intro>
<h1>Farm to Table</h1>
<h2>Ethical fresh products delivered to your door</h2>
</div>
</header>
<section id="Farm">
<h2>Farm Fresh</h2>
<div class="contain">
<div class="products">
<i class="far fa-cow"></i>
<h3>Dairy</h3>
</div>
<div class="products">
<i class="far fa-egg"></i>
<h3>Eggs</h3>
</div>
<div class="products">
<i class="far fa-seedling"></i>
<h3>Produce</h3>
</div>
<div class="products">
<i class="fal fa-wheat"></i>
<h3>Bakery</h3>
</div>
</div>
</section>
<section class="clear">

</section>
<section class="story">
<div id="About">
<i class="far fa-sheep" aria-hidden="true"></i>
<h2>Our Story</h2>
<div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut quod repellat blanditiis sunt. Distinctio eveniet laudantium sapiente iusto labore dolor quae excepturi assumenda, totam laborum dicta. Quam quas accusantium quis? Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur obcaecati, consectetur quia sint sed laboriosam itaque reiciendis minima ex culpa consequatur ducimus ratione! Accusamus exercitationem nostrum repudiandae asperiores debitis illo? Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam architecto pariatur nostrum, dicta officiis excepturi provident quae nemo possimus distinctio maiores, beatae dolorum doloremque natus, iusto deleniti atque modi. Debitis!</p>
</div>
</div>
</section>

<section class="features">
<div class="Farm">
<div class="hide">
<h2>The Farm</h2>
</div>
</div>
<div class="Cooking">
<div class="hide">
<h2>Cookery Classes</h2>
</div>
</div>
<div class="Produce">
<div class="hide">
<h2>The Produce</h2>
</div>
</div>
<div class="Animals">
<div class="hide">
<h2>The Animals</h2>
</div>
</div>

</section>
<div class="Visit">
<h2>Come Visit Us!</h2>
</div>
<section id="Contact">
<div class=find>
<i class="far fa-tractor"></i>
<h3>Find Us At:</h3>
<address>
123 Cottonwood Rd.
<br>
Prince Edward County,Ontario
<br>
Canada K1X 0H8
<br>
<div class=call>
<a href="tel:888-888-8888">888-888-8888</a>
</div>
<br>
<div class=call></div>
<a href="mailto:[email protected]">[email protected]</a>
</div>
</address>
</div>
<div class="tractor">
<img src="images/landscape.jpg" alt="farm to table landscape">
</div>
</section>
<footer>
<div class=connect>
<h3>Connect With Us On The Socials</h3>
<a href=http://instagram.com target=blank></a>
<i class="fab fa-instagram" aria-hidden="true"></i>
<a href=http://facebook.com target=blank></a>
<i class="fab fa-facebook-square" aria-hidden="true"></i>
<a href=http://twitter.com target=blank></a>
<i class="fab fa-twitter-square" aria-hidden="true"></i>
</div>
<nav class=navb>
<a href=#Home>Home</a>
<a href=#Farm>Farm Fresh</a>
<a href=#About>About</a>
<a href=#Contact>Contact</a>
</nav>
<div class="copyr">
<p>
&copy; Copyright
<a href=http://brithemming.com target=blank>Brit Hemming</a>
2020
</p>
</div>
</footer>

</body>
</html>