diff --git a/src/components/App.jsx b/src/components/App.jsx
index 6be2cb0..dddf2c3 100644
--- a/src/components/App.jsx
+++ b/src/components/App.jsx
@@ -6,8 +6,10 @@ import { lazy, useEffect } from 'react';
import { Route, Routes } from 'react-router-dom';
import { RestrictedRoute } from './RestrictedRoute';
import { PrivateRoute } from './PrivateRoute';
+import { Container } from './Container/Container';
+
+// import css from './App.module.css'
-import css from './App.module.css'
const Register = lazy(() => import('../pages/Register'));
const Home = lazy(() => import('../pages/Home'));
const Login = lazy(() => import('../pages/Login'));
@@ -25,7 +27,7 @@ export const App = () => {
return isRefreshing ? (
Refreshing user...
) : (
-
+
}>
} />
@@ -53,7 +55,7 @@ export const App = () => {
} />
-
+
);
};
diff --git a/src/components/App.module.css b/src/components/App.module.css
index 1b72270..f54e27f 100644
--- a/src/components/App.module.css
+++ b/src/components/App.module.css
@@ -1,18 +1,7 @@
-/* .h1 {
- margin-bottom: 20px;
- font-size: 32px;
- text-align: center;
- color: white;
-}
-.h2 {
- margin-bottom: 10px;
- font-size: 24px;
- font-weight: 700;
- text-align: center;
- color: white;
-} */
-.container {
- /* max-width: 1200px; */
- width: 700px;
-};
\ No newline at end of file
+
+/* .container { */
+
+ /* width: 100%;
+ max-width: 1200px;
+}; */
\ No newline at end of file
diff --git a/src/components/ContactFind/ContactFind.jsx b/src/components/ContactFind/ContactFind.jsx
index 1e99c73..29afc6d 100644
--- a/src/components/ContactFind/ContactFind.jsx
+++ b/src/components/ContactFind/ContactFind.jsx
@@ -15,7 +15,7 @@ export const ContactFind = () => {
};
return (
- <>
+
@@ -31,6 +31,6 @@ export const ContactFind = () => {
required
onChange={changeFilter}
/>
- >
+
);
};
\ No newline at end of file
diff --git a/src/components/ContactFind/ContactFind.module.css b/src/components/ContactFind/ContactFind.module.css
index 073d901..beb459b 100644
--- a/src/components/ContactFind/ContactFind.module.css
+++ b/src/components/ContactFind/ContactFind.module.css
@@ -4,26 +4,26 @@
font-size: 16px;
text-align: center;
color: white;
- /* align-items: center;
- display: flex;
- flex-direction: column; */
+ align-items: center;
+ display: flex;
+ flex-direction: column;
}
-
+.wrap_find {
+ align-items: center;
+ display: flex;
+ flex-direction: column;
+
+}
.find_input {
min-width: 250px;
min-height: 26px;
- margin-bottom: 10px;
font-size: 16px;
outline: none;
border-radius: 5px;
border-width: 0;
+ margin-bottom: 15px;
padding: 5px 10px;
-
- display: flex;
- justify-content: center;
- margin-right: auto;
- margin-left: auto;
}
diff --git a/src/components/ContactItem/ContactItem.module.css b/src/components/ContactItem/ContactItem.module.css
index 8bcaad8..aea1ba1 100644
--- a/src/components/ContactItem/ContactItem.module.css
+++ b/src/components/ContactItem/ContactItem.module.css
@@ -3,8 +3,8 @@
align-items: center;
column-gap: 10px;
color: white;
- padding-left: 120px;
- padding-right: 120px;;
+ /* padding-left: 120px;
+ padding-right: 120px;; */
}
.delete_btn {
diff --git a/src/components/ContactList/ContactList.module.css b/src/components/ContactList/ContactList.module.css
index 84ff0b8..6db9d76 100644
--- a/src/components/ContactList/ContactList.module.css
+++ b/src/components/ContactList/ContactList.module.css
@@ -1,6 +1,8 @@
.contacts_list {
display: flex;
- flex-direction: column;
+ /* flex-direction: column; */
justify-content: center;
row-gap: 15px;
+ padding-left: 0;
+
}
\ No newline at end of file
diff --git a/src/components/Container/Container.jsx b/src/components/Container/Container.jsx
new file mode 100644
index 0000000..ea7c9f4
--- /dev/null
+++ b/src/components/Container/Container.jsx
@@ -0,0 +1,7 @@
+import css from './Container.module.css'
+
+export const Container = ({children}) => {
+ return
+ {children}
+
;
+}
diff --git a/src/components/Container/Container.module.css b/src/components/Container/Container.module.css
new file mode 100644
index 0000000..e7e18c8
--- /dev/null
+++ b/src/components/Container/Container.module.css
@@ -0,0 +1,10 @@
+.container {
+ width: 100%;
+ max-width: 1200px;
+
+
+ /* min-height: calc(100vh - 50px); */
+ /* display: flex;
+ align-items: center;
+ justify-content: center; */
+};
\ No newline at end of file
diff --git a/src/components/RegisterForm/RegisterForm.jsx b/src/components/RegisterForm/RegisterForm.jsx
index 5a28c31..646fe95 100644
--- a/src/components/RegisterForm/RegisterForm.jsx
+++ b/src/components/RegisterForm/RegisterForm.jsx
@@ -23,7 +23,7 @@ export const RegisterForm = () => {
return (