-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement base template and custom datepicker
- Loading branch information
Showing
10 changed files
with
506 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,18 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta name="description" content="Shipping Calculator is used to calculate shipping fees based on items, distance and time." /> | ||
<meta property="og:locale" content="en_US"> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:title" content="Shipping Calculator"> | ||
<meta property="og:description" content="Shipping Calculator is used to calculate shipping fees based on items, distance and time."> | ||
<meta property="og:url" content="https://quanmuito.github.io/wolt-intern-2024/"> | ||
<meta property="og:site_name" content="Shipping Calculator"> | ||
<meta property="og:locale" content="en_US" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="Shipping Calculator" /> | ||
<meta property="og:description" content="Shipping Calculator is used to calculate shipping fees based on items, distance and time." /> | ||
<meta property="og:url" content="https://quanmuito.github.io/wolt-intern-2024/" /> | ||
<meta property="og:site_name" content="Shipping Calculator" /> | ||
|
||
<link rel="icon" href="%PUBLIC_URL%/icon.ico" /> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo.png" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css" rel="stylesheet" /> | ||
|
||
<title>Shipping Calculator</title> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,125 @@ | ||
import { DatePicker } from 'components'; | ||
import React from 'react'; | ||
|
||
export default function App() { | ||
return ( | ||
<div className="App"> | ||
Hello World | ||
<div className="container"> | ||
<div className="input-group"> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
Cart value | ||
</span> | ||
<input | ||
id="cartValue" | ||
name="cartValue" | ||
data-test-id="cartValue" | ||
type="text" | ||
className="form-control" | ||
aria-label="Total value of items in cart" | ||
/> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
<i className="bi bi-currency-euro"></i> | ||
</span> | ||
</div> | ||
<div className="input-group"> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
Delivery distance | ||
</span> | ||
<input | ||
id="deliveryDistance" | ||
name="deliveryDistance" | ||
data-test-id="deliveryDistance" | ||
type="text" | ||
className="form-control" | ||
aria-label="Delivery distance" | ||
/> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
m | ||
</span> | ||
</div> | ||
<div className="input-group"> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
Number of item | ||
</span> | ||
<input | ||
id="numberOfItems" | ||
name="numberOfItems" | ||
data-test-id="numberOfItems" | ||
type="text" | ||
className="form-control" | ||
aria-label="Total amount of items" | ||
/> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
<i className="bi bi-currency-euro"></i> | ||
</span> | ||
</div> | ||
<div className="input-group"> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
Order time | ||
</span> | ||
<input | ||
type="text" | ||
id="orderTime" | ||
name="orderTime" | ||
data-test-id="orderTime" | ||
className="form-control" | ||
// onChange={ () => console.log(getInputValueFromDateDetails(state.selected)) } | ||
// value={ getInputValueFromDateDetails(state.selected) } | ||
/> | ||
<button | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
<i className="bi bi-calendar3"></i> | ||
</button> | ||
</div> | ||
<DatePicker /> | ||
<button className="btn btn-primary">Calculate delivery price</button> | ||
<div className="input-group"> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
Delivery Price | ||
</span> | ||
<input | ||
id="fee" | ||
name="fee" | ||
data-test-id="fee" | ||
type="text" | ||
className="form-control" | ||
aria-label="Final price" | ||
disabled={ true } | ||
/> | ||
<span | ||
className="input-group-text justify-content-center" | ||
style={ { width: '15%' } } | ||
> | ||
<i className="bi bi-currency-euro"></i> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.