summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-03 15:36:45 +0200
committerKyren223 <Kyren223@proton.me>2025-01-03 15:36:45 +0200
commit0aeaee4076537f5994ccf668fb5405397844be2c (patch)
tree797607c04c1381975ba1cdec7cbbcd31a6a9ce96 /src/pages
parent3fd17c84becf579e060eebe4d7aac14e54ec5c98 (diff)
Fixed terminal border to scale nicely on mobile
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/blogs.astro9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pages/blogs.astro b/src/pages/blogs.astro
index ce10eae..45089f6 100644
--- a/src/pages/blogs.astro
+++ b/src/pages/blogs.astro
@@ -12,15 +12,18 @@ const blogs = (await getCollection("blogs"))
date: blog.data.date,
href: "/blogs/" + blog.slug,
}));
+const repeatArray = (arr, times) => Array(times).fill(arr).flat();
+const repeated = repeatArray(blogs, 10);
+
---
<Terminal path="blogs/">
- <TerminalBorder header="Shell" extra="mt-[0.625vw] mb-[1.5625vw]">
+ <TerminalBorder header="Shell" extra="sm:mt-[0.625vw] sm:mb-[1.5625vw]">
<p>$ ls -lah -t --color=auto ~/blogs</p>
</TerminalBorder>
- <div class="max-h-[24vw] overflow-y-auto">
+ <div class="sm:max-h-[24vw] overflow-y-auto">
{
- blogs.map((blog) => (
+ repeated.map((blog) => (
<>
<BlogItem
title={blog.title}