"use client"; import Image from "next/image"; import { FaBriefcase, FaUserGraduate, FaTools } from "react-icons/fa"; import { useState } from "react"; export default function Home() { const [file, setFile] = useState(null); const handleFileChange = (event: React.ChangeEvent) => { if (event.target.files) { setFile(event.target.files[0]); } }; const handleSubmit = async (event: React.FormEvent) => { event.preventDefault(); if (!file) return; const formData = new FormData(); formData.append("cv", file); try { const response = await fetch("/api/upload", { method: "POST", body: formData, }); if (response.ok) { alert("File uploaded successfully!"); setFile(null); // Reset the file input } else { alert("File upload failed."); } } catch (error) { console.error("Error uploading file:", error); alert("An error occurred while uploading the file."); } }; return (

Welcome to Your CV Upgrade

This platform is designed to help you enhance your CV and showcase your skills effectively.

Highlight your professional experience and achievements.

Showcase your educational background and certifications.

Utilize our tools to create a standout CV that gets noticed.

{file &&

Selected file: {file.name}

}
); }