import React, { useState } from 'react'; import Results from './components/Results'; import { analyzeSkillGap } from './utils/api'; export default function App() { const [jobPosting, setJobPosting] = useState(''); const [userSkills, setUserSkills] = useState(''); const [loading, setLoading] = useState(false); const [results, setResults] = useState(null); const [error, setError] = useState(''); const handleAnalyze = async () => { setLoading(true); setError(''); try { const data = await analyzeSkillGap(jobPosting, userSkills); setResults(data); } catch (err) { setError(err.message); } setLoading(false); }; const handleReset = () => { setResults(null); setError(''); }; const canSubmit = jobPosting.trim().length >= 30 && userSkills.trim().length >= 20 && !loading; if (results) { return (
Your personalized bridge to your dream job
Paste a job posting + your skills. See exactly what you need to learn.
Analyzing your skill gap...