"use client"; import React, { useState } from "react"; import { useRouter } from "next/navigation"; import { FaClock, FaNewspaper, FaHome, FaCog, FaBell, FaUser } from "react-icons/fa"; import TabBar from "../components/TabBar"; const CreateRequestPage = () => { const router = useRouter(); const [title, setTitle] = useState(""); const [date, setDate] = useState(""); const [time, setTime] = useState(""); const [description, setDescription] = useState(""); const [note, setNote] = useState(""); const isFormValid = title && date && time && description; const handleSubmit = (e) => { e.preventDefault(); if (!isFormValid) return; console.log({ title, date, time, description, note, }); // TODO: запрос на бэк }; return (
{/* Header */}

Александр

Создать заявку

{/* Карточка с формой */}
{/* Что сделать */}
setTitle(e.target.value)} className="w-full bg-[#72B8E2] rounded-lg px-3 py-3 text-sm font-montserrat text-white placeholder:text-white/70 outline-none focus:ring-2 focus:ring-blue-200" placeholder="Опишите основную задачу" />
{/* Дата и Время */}
setDate(e.target.value)} className="w-full bg-[#72B8E2] rounded-lg px-3 py-3 text-sm font-montserrat text-white outline-none focus:ring-2 focus:ring-blue-200" />
setTime(e.target.value)} className="w-full bg-[#72B8E2] rounded-lg px-3 py-3 text-sm font-montserrat text-white outline-none focus:ring-2 focus:ring-blue-200" />
{/* Описание */}