Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions apps/frontend/app/(client)/(main)/_components/InstagramCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@ export function InstagramCards() {

return (
<div className="mx-auto w-full max-w-7xl px-4 py-8">
<span className="mb-10 block text-3xl font-semibold leading-[120%] tracking-[-0.9px]">
<span className="mb-4 block text-[24px] font-medium leading-[130%] tracking-[-0.03em] sm:mb-10 sm:text-3xl sm:font-semibold sm:leading-[120%] sm:tracking-[-0.9px]">
TAKE OUR NEWS
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image 모바일 버전은 폰트 크기와 두께가 다릅니다! 확인해주세요~

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

카드와의 마진도 달라집니다! 모바일 버전에서는 16px 이네요

</span>

<div className="grid grid-cols-1 gap-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
<div className="scrollbar-hide -mx-4 flex w-[calc(100%+2rem)] snap-x snap-mandatory gap-4 overflow-x-auto px-5 pb-4 [ms-overflow-style:none] [scrollbar-width:none] sm:mx-0 sm:grid sm:w-full sm:grid-cols-2 sm:gap-2 sm:px-0 md:grid-cols-3 lg:grid-cols-4 [&::-webkit-scrollbar]:hidden">
{posts.map((post) => (
<InstagramCard key={post.id} post={post} />
<div
key={post.id}
className="w-[280px] flex-shrink-0 snap-center sm:w-auto"
>
<InstagramCard post={post} />
</div>
))}
</div>

<div className="flex flex-col items-center justify-center pt-10">
<div className="hidden flex-col items-center justify-center pt-10 sm:flex">
<Link
href="https://www.instagram.com/skkuding/"
target="_blank"
Expand Down
Loading