--- import Layout from '../layouts/Layout.astro'; import Navbar from '../components/Navbar'; import Hero from '../components/Hero'; import Projects from '../components/Projects'; import Skills from '../components/Skills'; import Certifications from '../components/Certifications'; import About from '../components/About'; import Testimonials from '../components/Testimonials'; import ContactForm from '../components/ContactForm'; import Footer from '../components/Footer'; import { getSiteSettings, getProjects, getSkills, getCertifications, getExperience, getEducation, getTestimonials, getSocialLinks } from '../lib/data'; // Server-side fetch from Sanity (with resilient fallbacks) const settings = await getSiteSettings(); const allProjects = await getProjects(); const featuredProjects = allProjects.length > 0 ? (allProjects.some(p => p.featured) ? allProjects.filter(p => p.featured) : allProjects).slice(0, 5) : []; const skills = await getSkills(); const certifications = await getCertifications(); const experience = await getExperience(); const education = await getEducation(); const testimonials = await getTestimonials(); const socialLinks = await getSocialLinks(); ---