fix(front) Сделан header footer адаптивные для мобильной и десктоп версии

This commit is contained in:
2026-06-09 17:59:29 +03:00
parent f325b6b31f
commit 21f7e75a63
6 changed files with 116 additions and 12 deletions
+3 -4
View File
@@ -1,6 +1,6 @@
import { useState } from "react";
import * as api from "../api"; // Импортируем все функции из api/index.js
import Header from "../components/Header";
import PageLayout from "../components/PageLayout";
export default function Dashboard() {
const [formData, setFormData] = useState({
@@ -39,8 +39,7 @@ export default function Dashboard() {
};
return (
<div>
<Header />
<PageLayout>
<div className="max-w-md mx-auto mt-10 p-6 bg-white rounded-lg shadow-md border">
<form onSubmit={handleSubmit} className="space-y-4">
<div>
@@ -109,6 +108,6 @@ export default function Dashboard() {
</div>
</form>
</div>
</div>
</PageLayout>
);
}