<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Webpack App</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="/payments/Content/favicon.ico">
<link href="/payments/Content/main.css" rel="stylesheet">
</head>
<body>
<script type="text/javascript" src="/payments/Content/main.js">
</script>
</body>
</html>
SASS
[
require("autoprefixer")(),
require("postcss-flexbugs-fixes"),
require("postcss-custom-media")({
importFrom: "App/styles/media.css",
preserve: false
}),
require("postcss-custom-properties")({
importFrom: "App/styles/variables.css"),
preserve: false
})
]
:root {
--infoBorderColor: #1D85D0;
--warningBorderColor: #F69C00;
--successBorderColor: #3F9726;
--errorBorderColor: #D70C17;
...
}
.info {
color: var(--infoTextColor);
border-color: var(--infoBorderColor);
}
Г
BillInfoContext
BankTransferForm
Text
Payer: { Email, BIK, Number, Inn, Kpp }
State: { Email, BIK, Number }
BillInfoContext
BankTransferForm
OnlinePaymentForm
PaymentForm
Payer: { Email, BIK, Number, Inn, Kpp }
State: { Email, BIK, Number }
{ Email, BIK, Number }
{ Email }
setState()
setState()
1
2
2
3