Skip to content

Commit

Permalink
fixed button spacing in provide
Browse files Browse the repository at this point in the history
  • Loading branch information
Westc13 committed Jan 6, 2023
1 parent 619674f commit be7dc29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
13 changes: 1 addition & 12 deletions src/pages/Provide.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ function Provide() {
<h3>Help your neighbor in your area of expertise</h3>
<fieldset className="zip-code">
<label htmlFor="zip-code">Enter your zipcode</label>
<input
id="zip-code"
type="text"
required
// inputMode="numeric"
pattern="^(?(^00000(| -0000)) | (\d{5}(| -\d{4})))$"
/>
<input id="zip-code" type="number" min="0" required />
</fieldset>
<fieldset className="task-category">
<p>Select a task category</p>
Expand Down Expand Up @@ -68,8 +62,3 @@ function Provide() {
);
}
export default Provide;

//? Pseudo Code
//? Need an geolocation API to generate all zip codes within the 5 miles radius of the zip code entered in search input area
//? All these zip codes would be used to match any zip codes in the forms' zip codes in the database
//! Warning: a tag doesn't work in React, try Link or something else clickable
5 changes: 2 additions & 3 deletions src/pages/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ function Request() {
<label htmlFor="zip">Zip Code ⁕</label>
<input
id="zip"
type="text"
inputMode="numeric"
// pattern="^(?(^00000(| -0000)) | (\d{5}(| -\d{4})))$"
type="number"
min="0"
value={zipCode}
onChange={(e) => setZipCode(e.target.value)}
required
Expand Down
3 changes: 1 addition & 2 deletions src/styles/provide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
.provide-button-box {
display: flex;
justify-content: space-between;
justify-content: space-evenly;
margin-bottom: 10px;
}
input[type="checkbox"] {
Expand All @@ -27,7 +27,6 @@ input[type="checkbox"] {
height: 16px;
border: 2px solid $text;
border-radius: 5px;
//padding: 10px;
display: grid;
place-content: center;
}
Expand Down

0 comments on commit be7dc29

Please sign in to comment.