-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
22 changed files
with
749 additions
and
260 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
export default function AddressData({ address, deleteShippingAddress }) { | ||
const Navigate = useNavigate(); | ||
return ( | ||
<div class="col-md-3 h-100"> | ||
<div class="bg-white card addresses-item mb-4 border border-primary shadow"> | ||
<div class="gold-members p-4"> | ||
<div class="media"> | ||
<div class="mr-3"> | ||
<i class="icofo1nt-ui-home icofont-3x"></i> | ||
</div> | ||
<div class="media-body"> | ||
<h4 class="mb-1 text-secondary font-weight-bold text-capitalize font-weight-bold"> | ||
{address?.addressType} | ||
</h4> | ||
<p style={{ fontSize: '29px' }}> | ||
{address?.address} , {address?.city}, {address?.state}{' '} | ||
{address?.pinCode} , {address?.country} | ||
</p> | ||
<p class="text-black font-weight-bold my-3"> | ||
Contact : {address?.phoneNo} | ||
</p> | ||
<p class="mb-0 text-black font-weight-bold"> | ||
<button | ||
onClick={() => { | ||
Navigate(`/update-shipping-address/${address.id}`); | ||
}} | ||
type="button" | ||
className="btn btn-primary mr-4" | ||
> | ||
<i class="icofont-ui-edit"></i> EDIT | ||
</button> | ||
<button | ||
onClick={() => deleteShippingAddress(address.id)} | ||
type="button" | ||
className="btn btn-danger " | ||
> | ||
<i class="icofont-ui-delete"></i> DELETE | ||
</button> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,113 @@ | ||
.shippingContainer { | ||
width: 100%; | ||
padding: 30px 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.shippingBox { | ||
background-color: white; | ||
width: 30%; | ||
/* height: 90vh; */ | ||
box-sizing: border-box; | ||
overflow: hidden; | ||
} | ||
|
||
.shippingHeading { | ||
text-align: center; | ||
color: rgba(0, 0, 0, 0.664); | ||
font: 400 3vmax 'Roboto'; | ||
padding: 1.3vmax; | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.205); | ||
width: 70%; | ||
font-weight: 700; | ||
margin: auto; | ||
} | ||
|
||
.shippingForm { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin: auto; | ||
gap: 20px; | ||
padding: 2vmax; | ||
justify-content: space-evenly; | ||
height: 100%; | ||
transition: all 0.5s; | ||
} | ||
|
||
.shippingForm > div { | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
} | ||
|
||
.shippingForm > div > input, | ||
.shippingForm > div > select { | ||
padding: 1vmax 4vmax; | ||
padding-right: 1vmax; | ||
width: 100%; | ||
box-sizing: border-box; | ||
border: 1px solid rgba(0, 0, 0, 0.267); | ||
border-radius: 4px; | ||
font: 300 2vmax cursive; | ||
outline: none; | ||
} | ||
|
||
.shippingForm > div > svg { | ||
position: absolute; | ||
transform: translateX(1vmax); | ||
font-size: 2vmax; | ||
color: rgba(0, 0, 0, 0.623); | ||
} | ||
|
||
.shippingBtn { | ||
border: none; | ||
background-color: rgb(0, 150, 57); | ||
color: rgb(255, 255, 255); | ||
font: 300 1.6vmax 'Roboto'; | ||
padding: 1vmax; | ||
cursor: pointer; | ||
transition: all 0.5s; | ||
outline: none; | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
margin: 2vmax; | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.shippingBox { | ||
width: 100vw; | ||
/* height: 100vh; */ | ||
} | ||
|
||
.shippingHeading { | ||
font: 400 6vw 'Roboto'; | ||
padding: 5vw; | ||
} | ||
|
||
.shippingForm { | ||
display: flex; | ||
gap: 20px; | ||
padding: 11vw 14vw; | ||
} | ||
|
||
.shippingForm > div > input, | ||
.shippingForm > div > select { | ||
padding: 3vw 6vw; | ||
font: 300 5vw cursive; | ||
padding-left: 50px; | ||
} | ||
|
||
.shippingForm > div > svg { | ||
font-size: 4vw; | ||
transform: translateX(3vw); | ||
} | ||
|
||
.shippingBtn { | ||
font: 300 4vw 'Roboto'; | ||
padding: 4vw; | ||
} | ||
} |
Oops, something went wrong.