import axios from 'axios' import React, { useEffect, useState } from 'react' import { Fade, Slide } from 'react-awesome-reveal' const HeroHomepage = () => { const [data, setData] = useState([]) useEffect(() => { const fetchData = async () => { try { const response = await axios.get( '/api/homepageSection/heroHomeSectionData' ) setData(response.data) } catch (error) { console.error('Error fetching data:', error) } } fetchData() }, []) return ( {/* mobile */}
{data.slice(0, 1).map((data) => { return (
, `, }} className="sm:min-h inset-0 max-h-screen min-h-screen w-full object-cover sm:max-h-screen sm:min-h-screen" >
) })}
{/* desktop */}
{/*

Welcome to The Largest Statue in South East Asia

{/* Welcome to

The Largest Statue in South East Asia
{/*
*/}
) } export default HeroHomepage