diff --git a/client/src/components/Home.jsx b/client/src/components/Home.jsx index b1e5d48..046e4b1 100644 --- a/client/src/components/Home.jsx +++ b/client/src/components/Home.jsx @@ -20,53 +20,160 @@ const Home = () => { }} >
+ - Welcome to the Diabetes Prediction App - - - This app helps you predict the likelihood of developing diabetes - based on your health data. - - - - Get Started - - + initial={{ opacity: 0, y: -150 }} + whileInView={{ opacity: 1, y: 0 }} + viewport={{ once: true }} + transition={{ + duration: 1, + type: "spring", + stiffness: 100, + delay: 0.5, + }} + className="diabetes-predictor-header" + style={{ + position: 'absolute', + width: '90%', /* Use percentage for width to make it responsive */ + maxWidth: '1150px', /* Set a maximum width for larger screens */ + height: 'auto', /* Let the height adjust based on content */ + left: '-10%', /* Center horizontally */ + transform: 'translateX(-50%)', /* Center horizontally */ + top: '47%', /* Adjust based on your layout */ + fontFamily: "'Abhaya Libre ExtraBold'", + fontStyle: 'normal', + fontWeight: 800, + fontSize: 'clamp(30px, 5vw, 50px)', /* Responsive font size using clamp */ + lineHeight: '1.5', /* Adjust line height based on font size */ + display: 'flex', + alignItems: 'flex-end', + justifyContent: 'center', /* Center text horizontally */ + color: '#FFFFFF', + textAlign: 'center', /* Center text horizontally */ + }} +> + Welcome to the Diabetes Predictor! + + + + + Know your risk + + + + + + take control of your health. + + + + + GET STARTED + + + +