Skip to content
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
Binary file added .DS_Store
Binary file not shown.
108 changes: 84 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,90 @@
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>

<body id="main-content">


<fieldset>
<form id='cookie-stores'>
<label>Store Name</label> <br>
<input name='cookieStand' type='text'/><br>
<label name = 'cookiesSold'>Cookies sold</label><br>
<label>6:00AM</label><input name='rev1' type='number' required/>
<label>7:00AM</label><input name='rev2' type='number' required />
<label>8:00AM</label><input name='rev3' type='number'required/>
<label>9:00AM</label><input name='rev4' type='number' required/>
<label>10:00AM</label><input name='rev5' type='number' required/>
<label>11:00AM</label><input name='rev6' type='number' required/>
<label>12:00PM</label><input name='rev7' type='number' required/>
<label>1:00PM</label><input name='rev8' type='number' required/>
<label>2:00PM</label><input name='rev9' type='number' required/><br>

<button type='submit'>Submit</button>
</form>
</fieldset>

<div id='table-container'></div>
<body id="sales">

<header>
<h1> Maryland Cookie Chain</h1>
</header>

<nav class="nav-bar">
<a href="file:///Users/jalaluddinkasaat/Desktop/CODING/Projects/cookie-stand/index.html">Home</a>
<a id="tab1" href="file:///Users/jalaluddinkasaat/Desktop/CODING/Projects/cookie-stand/sales.html">Our stores</a>
<a href="#infohead">About our company</a>
<a href="#h2-contactus">Contact us</a>
<a href="#order">Place an Order</a>

</nav>

<div class="store-div">

<Section>

<h2 id="store-list">Our Stores</h2>
<ul>
<li>Silver Spring Cookie Stand</li>
<li>Silver Spring Cookie Stand</li>
<li>Silver Spring Cookie Stand</li>
<li>Silver Spring Cookie Stand</li>
<li> More Stores to Come</li>
</ul>

</Section>

</div>

<div>

<article class="info">

<h2 id="infohead"> About Maryland Cookie Chain</h2>

<p>
Maryland Cookie Chain is the fastest growing cookie business in DC Metro Area.
</p>

<h3>Below are our most popular cookie shapes:</h3>

<figure>
<img src="https://raw.githubusercontent.com/CodePartnersMD/MD201-01/master/lecture-09/lab/assets/chinook.jpg, https://raw.githubusercontent.com/CodePartnersMD/MD201-01/master/lecture-09/lab/assets/chinook.jpg" alt="chinook cookie" width=250px caption:"Chinook cookie">
<figcaption> Chinook cookie </figcaption>
</figure>

<figure>
<img src="https://raw.githubusercontent.com/CodePartnersMD/MD201-01/master/lecture-09/lab/assets/fish.jpg, https://raw.githubusercontent.com/CodePartnersMD/MD201-01/master/lecture-09/lab/assets/fish.jpg" alt="chinook cookie" width=250px caption:"Chinook cookie">
<figcaption> Colorful fish cookies </figcaption>
</figure>
<figure>
<img src='https://raw.githubusercontent.com/CodePartnersMD/MD201-01/master/lecture-09/lab/assets/frosted-cookie.jpg, https://raw.githubusercontent.com/CodePartnersMD/MD201-01/master/lecture-09/lab/assets/frosted-cookie.jpg' alt="chinook cookie" width=250px caption:"Chinook cookie">
<figcaption> frosted cookie </figcaption>
</figure>

</article>

<article id="order">
<label for="fish-cookies">Place an Order</label>
<select name="slect-cookie" id="select-cookie">
<option value="text">Chinook Cookie</option>
<option value="text">Colorful Fish Cookies</option>
<option value="text">Fronted Cookies</option>
</select>
<label for="lb of Cookies">Weight by lb</label><input type="number" value="">
<button>Submit</button>
</article>

<article class="contact-us">

<h2 id="h2-contactus">Contact Us</h2>

<p id="ending"> Send us an
<a href="mailto: jkasaat@gmail.com">email</a> if you have any questions.

</p>
</article>

</div>


</body>
<script src="main.js"></script>

</html>
167 changes: 162 additions & 5 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ table {
table, th, td {
border: 1px solid black;
text-align: left;
color:darkslategrey
}

table > tr:first-child > th, table > tr:last-child > td {
Expand All @@ -16,14 +17,170 @@ table > tr:first-child > th, table > tr:last-child > td {

fieldset {

width: 1250px;
width: 1800x;
border: 1px solid #8d2a2a;
border-radius: 10px solid #1eb400
border-radius: 10px solid #1eb400;
padding: 3mm;

}

button {
width: 100px;
width: 150px;
margin-left: auto;
margin-right: auto;
}
margin-right: auto;
background-color: cadetblue;
color: lightyellow;
padding: 10px 12px;
font-size: 20px;
}


/* */


#sales {

background-color: rosybrown;
}

header {
background-color: darkgray;
opacity: 0.5;
margin: 3em;
border-style: solid;
border-color: #8d2a2a;
border-width: 0.5mm;

}

.nav-bar {

overflow: hidden;
width: 150cm;
height: 1cm;
background-color: skyblue;
opacity: 0.8;
margin: 2cm;
font-size: 40px;
padding: 1mm;


}

.nav-bar a {

float: left;
color: #8d2a2a;
padding: 14px 16px;
text-align: center;
font-size: 18px;
text-decoration: none;




}

.nav-bar a:hover {

background-color: #1eb400;
color: white;
}

h1 {
text-align: center;
color: maroon;

}

ul {

color: black;
font-size-adjust: inherit;
list-style: none;
padding:5mm;
line-height: 1.5;


}

.store-div {

background-color: darkgray;
opacity: 0.5;
position: absolute;
left: 0px;
width: 7cm;
height: 15cm;
margin: 0%;

}

#store-list {

text-align: center;
color: maroon;
}

.info {

background-color: crimson;
opacity: 0.6;
position: relative;
width: 10cm;
height: 20cm;
left: 20cm;
padding: 5mm


}

#order {

height: 5cm;
background-color: chocolate;
padding: 8px 12px;

}

.contact-us {

height: 5cm;
background-color: goldenrod;
padding: 12px 16px;
}

#h2-contactus {

text-align: left;
}

/* Sales HTML Layout */

#main-content {

background-color: darkseagreen;


}

#cookie-stores {

background-color: beige;
color: gray;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
padding:5mm;

}

.cookie-head {

color: white;
}

label {

padding:1mm;
}


2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ let storeThree = new Store('White Oak Cookie Stand', [4, 18, 16, 12, 1, 3, 3, 9,
let storeFour = new Store('Takoma Park Cookie Stand', [34, 27, 9, 9, 13, 14, 7, 2, 1]);



let storeArray = [storeOne, storeTwo, storeThree, storeFour];

let elBody = document.getElementById('table-container');
Expand Down Expand Up @@ -61,6 +60,7 @@ for (let i = 0; i < storeArray.length; i++) {

};


// Footer

let elRow = document.createElement('tr');
Expand Down
43 changes: 43 additions & 0 deletions sales.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>

<body id="main-content">

<header class="store-header">

<h1 class="cookie-head"> Maryland Cookie Chain </h1>


</header>

<fieldset>
<form id='cookie-stores'><br>
<label>Enter New Store Name</label> <br>
<input name='cookieStand' type='text'/><br><br>
<label name = 'cookiesSold'>Cookies Sold Per Hour</label><br>
<label>6:00AM</label><input name='rev1' type='number' required/>
<label>7:00AM</label><input name='rev2' type='number' required />
<label>8:00AM</label><input name='rev3' type='number'required/>
<label>9:00AM</label><input name='rev4' type='number' required/>
<label>10:00AM</label><input name='rev5' type='number' required/><br><br>
<label>11:00AM</label><input name='rev6' type='number' required/>
<label>12:00PM</label><input name='rev7' type='number' required/>
<label>1:00PM</label><input name='rev8' type='number' required/>
<label>2:00PM</label><input name='rev9' type='number' required/><br><br>

<button id="submit" type='submit'>Submit</button>
</form>
</fieldset>

<div id='table-container'></div>

</body>
<script src="main.js"></script>
</html>