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

html layout and basic styling #276

Open
wants to merge 1 commit into
base: main
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
38 changes: 37 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,46 @@
<html>
<head>
<meta charset="UTF-8">
<link href="https://fonts.cdnfonts.com/css/gatile" rel="stylesheet">
<title>Whats Cookin</title>
</head>
<body>
<h1>Whats Cookin</h1>
<section class="top-bar">
<h1>Whats Cookin</h1>
<section class="top-buttons">
<button class="cookbook">COOKBOOK</button>
<button class="saved-recipes">SAVED RECIPES</button>
</section>
</section>
<section class="main-body">
<section class ="search-area">
<input type="text" class="search-box"> search </input>
<div class="tags">
<button class="tag1">tag1</button>
<button class="tag2">tag2</button>
<button class="tag3">tag3</button>
<button class="tag4">tag4</button>
</div>
<button class="random-recipe">RANDOM RECIPE</button>
</section>
<section class="recipes">
<div class="recipe1">
<img class="recipe-image" src="https://spoonacular.com/recipeImages/595736-556x370.jpg" alt="Loaded Chocolate Chip Pudding Cookie Cups">
<h2 class="recipe1-name">Loaded Chocolate Chip Pudding Cookie Cups</h2>
<h3 class="recipe1-tags">antipasti, starter, snack, appetizer, antipasto, hor d'oeuvre</h3>
</div>
<div class="recipe2">
<img class="recipe-image" src="https://spoonacular.com/recipeImages/678353-556x370.jpg" alt="Maple Dijon Apple Cider Grilled Pork Chops">
<h2 class="recipe2-name">Maple Dijon Apple Cider Grilled Pork Chops</h2>
<h3 class="recipe2-tags">lunch, main course, main dish, dinner</h3>
</div>
<div class="recipe3">
<img class="recipe-image" src="https://spoonacular.com/recipeImages/412309-556x370.jpeg" alt="Dirty Steve's Original Wing Sauce">
<h2 class="recipe3-name">Dirty Steve's Original Wing Sauce</h2>
<h3 class="recipe3-tags">sauce</h3>
</div>
</section>
</section>
</body>
<!-- Do not include the scripts.js file here - it is done automatically by the webpack server -->
<script src="bundle.js"></script>
Expand Down
43 changes: 42 additions & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
body {
background-color: blueviolet;
background-color: #fff3e0;
font-family: 'Gatile', sans-serif;
display: flex;
flex-direction: column;
color: #2d2b2b;
}

.top-bar {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}

.top-buttons {
display: flex;
}

.main-body {
display: flex;
justify-content: space-around;
}

.search-area {
background-color: #9d968b;
width: 25%;
}

.recipes {
background-color: #9d968b;
width: 65%;
}

.recipe1,
.recipe2,
.recipe3 {
display: flex;
align-items: row;
}

.recipe-image {
height: 200px;
}