(`/api/categories${catQ}`),
getJSON<{ items: Post[] }>(`/api/posts/recommended${postQ}&limit=12`),
- getJSON<{ items: Post[] }>(`/api/posts/latest${postQ}&limit=8`),
+ getJSON<{ items: Post[] }>(`/api/posts/latest${postQ}&limit=5`),
getJSON<{ items: Post[] }>(
- `/api/posts${postQ}&sort=popular&limit=8`,
+ `/api/posts${postQ}&sort=popular&limit=5`,
).catch((): { items: Post[] } => ({ items: [] })),
])
.then(([c, r, l, p]) => {
@@ -206,7 +207,7 @@ export function Home() {
@@ -224,9 +225,11 @@ export function Home() {
className="grid w-full shrink-0 snap-start grid-cols-3 gap-2 px-4"
>
{page.map((c) => (
- setCategoryUnavailableOpen(true)}
+ className="flex h-[88px] min-w-0 flex-col items-center justify-center gap-2 rounded-xl border border-[#27292E] bg-[#1D1E23] px-4 py-3 text-center outline-none transition hover:border-ark-gold/55 hover:bg-[#252630] focus-visible:ring-2 focus-visible:ring-ark-gold/80 focus-visible:ring-offset-2 focus-visible:ring-offset-ark-bg"
>
{cleanCategoryDisplayName(c.name)}
-
+
))}
))}
@@ -275,9 +278,11 @@ export function Home() {
{figmaOrderedCategories.map((c) => (
-
setCategoryUnavailableOpen(true)}
+ className="flex h-[88px] min-w-0 flex-col items-center justify-center gap-2 rounded-xl border border-[#27292E] bg-[#1D1E23] px-4 py-3 text-center outline-none transition hover:border-ark-gold/55 hover:bg-[#252630] focus-visible:ring-2 focus-visible:ring-ark-gold/80 focus-visible:ring-offset-2 focus-visible:ring-offset-ark-bg"
>
{cleanCategoryDisplayName(c.name)}
-
+
))}
@@ -296,7 +301,7 @@ export function Home() {
@@ -366,7 +371,7 @@ export function Home() {
/>
- {latestPosts.slice(0, 4).map((post) => (
+ {latestPosts.slice(0, 5).map((post) => (
))}
@@ -392,7 +397,7 @@ export function Home() {
/>
- {popularPosts.slice(0, 4).map((post) => (
+ {popularPosts.slice(0, 5).map((post) => (
))}
@@ -408,6 +413,38 @@ export function Home() {
))}
+
+ {categoryUnavailableOpen ? (
+ setCategoryUnavailableOpen(false)}
+ >
+
event.stopPropagation()}
+ >
+
+ {t("featureUnavailable")}
+
+
+ {t("featureUnavailableDesc")}
+
+
+
+
+ ) : null}
);
}