Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
vanillacandy committed Oct 4, 2018
1 parent de6173a commit 628276b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@


## 3 Unique inputs

+ A text input to collect the user's name
+ A set of radio-box to choose the breakfast meal
+ A drop-down to choose a drink

## Class
*`Form.php`, `Food.php`, etc.*

Expand Down
10 changes: 7 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@
<p>Break-fast is a small menu to for daily breakfast meal and it calculates meal calories. Search below for your favorite.</p>

<form method='POST' action='searchBreakfast.php' >
<label>What's your name?
<div class='instructions'>
* Required
</div>

<label> * What's your name?
<input type='text' name='name' value='<?php if(isset($name)) echo $name ?>'>
</label>

<fieldset class='radios'>
<legend>Select a main meal for breakfast</legend>
<legend> * Select a main meal for breakfast</legend>
<ul class='radios'>
<!-- Note that each radio has the same name of `day` -->
<li><label><input type='radio'
Expand All @@ -52,7 +56,7 @@
</ul>
</fieldset>

<label for='drink'>Select a drink </label>
<label for='drink'> * Select a drink </label>
<select name='drink' id='drink'>
<option value='choose'>Choose one...</option>
<option value='milk'>Milk</option>
Expand Down
3 changes: 3 additions & 0 deletions styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ body {

/* sticky footer - match footer height */
margin-bottom: 60px;

}



section#main {
max-width: 600px;
width: 100%;
Expand Down

0 comments on commit 628276b

Please sign in to comment.