Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
37e9b06
labietelabiete Jun 3, 2021
8b67c8f
doc: contributors changed in readme file (#2)
MiguelPerezMartinez Jun 3, 2021
7a31b6b
Feat/create test folder (#5)
labietelabiete Jun 3, 2021
49a410b
Feat/main structure (#7)
MiguelPerezMartinez Jun 4, 2021
22e5088
Merge branch 'main' of https://github.com/labietelabiete/react-shoppi…
labietelabiete Jun 4, 2021
264c762
labietelabiete Jun 4, 2021
47ccfd3
labietelabiete Jun 4, 2021
8168589
Feat/formik (#9)
MiguelPerezMartinez Jun 7, 2021
c27f5d3
Feat/formik inputs (#11)
MiguelPerezMartinez Jun 7, 2021
f4cdd33
Feat/state reduce controll (#14)
MiguelPerezMartinez Jun 8, 2021
de746c9
Feat/state reduce controll (#15)
MiguelPerezMartinez Jun 8, 2021
dacd7a0
Feat/overview sidebar (#20)
labietelabiete Jun 9, 2021
cb4c216
Feat/order summary structure (#18)
MiguelPerezMartinez Jun 9, 2021
710e1fc
Fix/summary alignment (#22)
MiguelPerezMartinez Jun 9, 2021
d2b6f7f
feat: Footer buttons navigation done
labietelabiete Jun 9, 2021
7610da3
Fix/react select (#29)
labietelabiete Jun 9, 2021
26385f5
Feat/payment details page (#28)
MiguelPerezMartinez Jun 10, 2021
43e05b4
Feat/protect card number (#32)
MiguelPerezMartinez Jun 10, 2021
67e5ef0
Feat/navbar (#33)
labietelabiete Jun 10, 2021
9d79889
Fix labels (#37)
MiguelPerezMartinez Jun 10, 2021
b9fc68f
Fix/payment method card view radio buttons (#38)
MiguelPerezMartinez Jun 10, 2021
4aa7b05
Feat/protect urls (#39)
MiguelPerezMartinez Jun 10, 2021
d1f2281
fix: order summary page done (#40)
labietelabiete Jun 10, 2021
4af0ad0
Cleaning code
labietelabiete Jun 10, 2021
7170d6a
Fix/last minute (#41)
MiguelPerezMartinez Jun 11, 2021
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
9 changes: 8 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ module.exports = {
},
],
rules: {
"prettier/prettier": "error",
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"react/jsx-filename-extension": "off",
"import/prefer-default-export": "off",
"prefer-destructuring": "off",
Expand All @@ -59,5 +64,7 @@ module.exports = {
"no-underscore-dangle": "off",
"react/forbid-prop-types": "off",
"react/prop-types": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
},
};
78 changes: 70 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
`#react.js` `#master-in-software-engineering`

<!-- PROGRAMMING STRUCTURE -->

## Pages

1- Personal details Formulary (3 inputs) - Name input - Email inputs - Phone
number input Formik library using (validation with schema) path:
/checkout/step-1 EXTRA: Store info in Local Storage EXTRA: footer steps buttons

2- Billing address pages Formulary (4 inputs) - Address inputs - City inputs -
PC input - Country select input Formik library using (validation with schema)
path: /checkout/step-2 EXTRA: Store info in Local Storage EXTRA: footer steps
buttons

3- Payment details Formulary (6 inputs) - Select for payment method - Cardholder
Name - Card Number - Card expiry date - CVV Code - Accepting conditions path:
/checkout/step-3 EXTRA: Store info in Local Storage EXTRA: footer steps buttons
EXTRA: Credite card animation

4- Order summary

- Item information
- User information
- Addresss information path: /checkout/order-summary EXTRA: Store info in Local
Storage EXTRA: footer steps buttons

(0)- Authentication (EXTRA) Login needed to go throught app

## Pages components

1- Personal details

<Header className=headerClass >
<Input className=inputClass component {type, key, label, value, placeholder, onChange, onBlur, ¿onSubmit?} />
<SidebarOverview>
<Footer>
<Button className=buttonClass component {urlPage, disabled, type, submit} />

2- Billing address pages

<Header className=headerClass >
<Input className=inputClass component {type, key, label, value, placeholder, onChange, onBlur, ¿onSubmit?} />
<SidebarOverview>
<Footer>

3- Payment details

<Header className=headerClass >
<Input className=inputClass component {type, key, label, value, placeholder, onChange, onBlur, ¿onSubmit?} />
<SidebarOverview>
<Footer>

4- Order summary

<Header className=headerClass >
<OrderSummary>

## States

App:

- products
- cartItems
- checkoutInfo{ userName, userPassword, name, lastName, email,
phone prefix, phone number, address, city, ZC, country, paymentMethod, cardName,
cardNumber, cardExpiryDate, cardCVV, termsConditions }

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
Expand Down Expand Up @@ -138,20 +204,16 @@ for details
Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="http://www.danilucaci.com"><img src="https://avatars.githubusercontent.com/u/19062818?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dani Lucaci</b></sub></a><br /><a href="https://github.com/assembler-school/vanilla-js-project-template/commits?author=danilucaci" title="Code">💻</a> <a href="https://github.com/assembler-school/vanilla-js-project-template/commits?author=danilucaci" title="Documentation">📖</a> <a href="#example-danilucaci" title="Examples">💡</a> <a href="#tool-danilucaci" title="Tools">🔧</a></td>
</tr>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the
[all-contributors](https://github.com/all-contributors/all-contributors)
specification. Contributions of any kind welcome!

## REVISAR:

- Controlar isCheckoutDisabled.lenght === 1 de removeCartItem con useEffect
Loading