Akademy Landing MPA

This commit is contained in:
2025-06-09 20:49:38 +05:30
parent 8c3382e438
commit 14d7041e87
522 changed files with 43436 additions and 12935 deletions

View File

@@ -0,0 +1,20 @@
---
import Layout from "../../layouts/Layout.astro";
import AllBlogs from "../../components/Blogs/index";
const BLOG_API_URL = "https://curriculum-app-api.beanstalkedu.com/items/blog";
let blogs = [];
try {
const response = await fetch(`${BLOG_API_URL}?filter[status][_eq]=published&filter[property][_eq]=aKadmy`);
const data = await response.json();
blogs = data.data || [];
console.log("Fetched blogs:", blogs[0].slug);
} catch (error) {
console.error("Error fetching blogs:", error);
blogs = [];
}
---
<Layout title="Akademy Landing - Blogs">
<AllBlogs client:only="react" />
</Layout>