fixing errors

parent b694df64
import { useNavigate } from 'react-router'; import { useNavigate } from 'react-router';
import '../../styles/Home/home.css';
import { Button, Pagination } from 'antd'; import { Button, Pagination } from 'antd';
import { MaterialSymbol } from 'react-material-symbols'; import { MaterialSymbol } from 'react-material-symbols';
import '../../styles/Home/home.css';
const Home = () => { const Home = () => {
const navigate = useNavigate(); const navigate = useNavigate();
...@@ -10,7 +10,7 @@ const Home = () => { ...@@ -10,7 +10,7 @@ const Home = () => {
navigate("/add"); navigate("/add");
}; };
const handlePaginationChange = (page: any) => { const handlePaginationChange = (page: number | string | null) => {
console.log("Current page:", page); console.log("Current page:", page);
}; };
......
...@@ -3,6 +3,19 @@ ...@@ -3,6 +3,19 @@
License: none (public domain) License: none (public domain)
*/ */
html,
body {
box-sizing: border-box;
font-family: Open Sans;
font-weight: 700;
}
*,
*::after,
*::before {
box-sizing: inherit;
}
html, html,
body, body,
div, div,
...@@ -132,14 +145,4 @@ q:after { ...@@ -132,14 +145,4 @@ q:after {
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
}
html, body{
box-sizing: border-box;
font-family: Open Sans;
font-weight: 700;
}
*, *::after, *::before{
box-sizing: inherit;
} }
\ No newline at end of file
import React from 'react'; import React from 'react';
import { Form, Input, Button } from 'antd'; import { Form, Input, Button } from 'antd';
import "../../src/styles/Home/addPage.css";
import { useNavigate } from 'react-router'; import { useNavigate } from 'react-router';
import "../../src/styles/Home/addPage.css";
const { Item } = Form; const { Item } = Form;
...@@ -14,7 +14,7 @@ const AddPage: React.FC = () => { ...@@ -14,7 +14,7 @@ const AddPage: React.FC = () => {
layout="vertical" layout="vertical"
name="organization_form" name="organization_form"
initialValues={{ remember: true }} initialValues={{ remember: true }}
className='form-1' className='form-add'
> >
<Item <Item
label="БИН организации" label="БИН организации"
...@@ -64,7 +64,7 @@ const AddPage: React.FC = () => { ...@@ -64,7 +64,7 @@ const AddPage: React.FC = () => {
<Input.Password maxLength={128} placeholder="Максимальная длина: 128 символов" /> <Input.Password maxLength={128} placeholder="Максимальная длина: 128 символов" />
</Item> </Item>
<div className='form-footer-1'> <div className='form-footer'>
<Item style={{ textAlign: 'right' }} className='form-footer-item'> <Item style={{ textAlign: 'right' }} className='form-footer-item'>
<Button type="default" style={{ marginRight: '8px' }} <Button type="default" style={{ marginRight: '8px' }}
onClick={() => navigate("/")}> onClick={() => navigate("/")}>
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
left: 50%; left: 50%;
-webkit-transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
padding: 24px;
background-color: rgba(204, 204, 204, 1);
border-radius: 8px;
} }
.form_btn { .form_btn {
...@@ -13,4 +16,5 @@ ...@@ -13,4 +16,5 @@
.input_controller::placeholder { .input_controller::placeholder {
color: #F178B6; color: #F178B6;
background-color: rgba(249, 249, 249, 0.8);
} }
\ No newline at end of file
import { Form, Input, Button, Select } from 'antd'; import { Form, Input, Button, Select } from 'antd';
import "../../src/styles/Home/editPage.css";
import { useNavigate } from 'react-router'; import { useNavigate } from 'react-router';
import "../../src/styles/Home/editPage.css";
const { Item } = Form; const { Item } = Form;
const { Option } = Select; const { Option } = Select;
......
import React from 'react'; import React from 'react';
import { DatePicker, Select, Button, Pagination } from 'antd'; import { DatePicker, Select, Button, Pagination } from 'antd';
import { MaterialSymbol } from 'react-material-symbols';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import styles from './RequestPage.module.css'; import styles from './RequestPage.module.css';
import { MaterialSymbol } from 'react-material-symbols';
const dateFormat = 'YYYY/MM/DD'; const dateFormat = 'YYYY/MM/DD';
const RequestPage: React.FC = () => { const RequestPage: React.FC = () => {
function handlePaginationChange(page: any) { const handlePaginationChange = (page: number | string | null) => {
console.log("Current page:", page); console.log("Current page:", page);
} }
...@@ -26,6 +26,7 @@ const RequestPage: React.FC = () => { ...@@ -26,6 +26,7 @@ const RequestPage: React.FC = () => {
<Button type='primary'>Применить</Button> <Button type='primary'>Применить</Button>
</div> </div>
{/* home.css */}
<section className='section'> <section className='section'>
<div className="data"> <div className="data">
<table className="data-table"> <table className="data-table">
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
overflow: hidden; overflow: hidden;
} }
.form-1 { .form-add {
flex: 1; flex: 1;
padding-bottom: 80px; padding-bottom: 80px;
margin-left: 20px; margin-left: 20px;
} }
.form-footer-1 { .form-footer {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(100vh - 60px); height: calc(100vh - 60px);
/* Adjust based on your header height */
} }
.add { .add {
...@@ -14,6 +13,7 @@ ...@@ -14,6 +13,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 4px;
margin-left: 10px;
} }
.add_button, .add_button,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment