From 16a13e1d4761c4085f78d7efda64eb2ceacea9b6 Mon Sep 17 00:00:00 2001 From: Bravemobin Date: Fri, 21 Mar 2025 10:58:33 +0330 Subject: [PATCH] Refactor episode cards, footer, podcast hero, player, and subscribe section for improved responsiveness; adjust padding, text sizes, and layout classes --- components/episode-cards.tsx | 40 +++++++++++++++++++------------- components/footer-section.tsx | 2 +- components/podcast-hero.tsx | 6 ++--- components/podcast-player.tsx | 3 ++- components/subscribe-section.tsx | 4 ++-- 5 files changed, 32 insertions(+), 23 deletions(-) diff --git a/components/episode-cards.tsx b/components/episode-cards.tsx index c4dab34..8aa1737 100644 --- a/components/episode-cards.tsx +++ b/components/episode-cards.tsx @@ -44,37 +44,37 @@ export function EpisodeCards({ section }: { section: "podcast" | "main" }) { return (
-
+

آخرین قسمت ها

-

+

از جدیدترین مکالمات ما مطلع شوید

-
{episodes.map((episode) => (
- - {episode.title} - {episode.date} + + + {episode.title} + + + {episode.date} + - +

{episode.description}

- -
- + +
+ {episode.duration}
-
diff --git a/components/footer-section.tsx b/components/footer-section.tsx index 6aa2053..10a5d51 100644 --- a/components/footer-section.tsx +++ b/components/footer-section.tsx @@ -42,7 +42,7 @@ export default function FooterSection() { پارچ گیمینگ - +

ما را دنبال کنید

مطالب بیشتر و اطلاعات گوناگونی در شبکه‌های اجتماعی رخ منتشر diff --git a/components/podcast-hero.tsx b/components/podcast-hero.tsx index 47c3241..7434762 100644 --- a/components/podcast-hero.tsx +++ b/components/podcast-hero.tsx @@ -4,17 +4,17 @@ import Image from "next/image"; export function PodcastHero() { return ( -
+
-
+
logo

diff --git a/components/podcast-player.tsx b/components/podcast-player.tsx index 609cf7d..97982e6 100644 --- a/components/podcast-player.tsx +++ b/components/podcast-player.tsx @@ -24,6 +24,7 @@ export function PodcastPlayer() { useEffect(() => { const audio = audioRef.current; if (!audio) return; + audioRef.current?.load(); const updateTime = () => setCurrentTime(audio.currentTime); const updateDuration = () => setDuration(audio.duration); @@ -114,7 +115,7 @@ export function PodcastPlayer() { value={[currentTime]} max={duration} step={1} - className="w-full" + className="w-full mx-2" onValueChange={(value) => { if (audioRef.current) { audioRef.current.currentTime = value[0]; diff --git a/components/subscribe-section.tsx b/components/subscribe-section.tsx index f9bbad7..3128c8c 100644 --- a/components/subscribe-section.tsx +++ b/components/subscribe-section.tsx @@ -6,7 +6,7 @@ export function SubscribeSection() { return (
-
+
@@ -27,7 +27,7 @@ export function SubscribeSection() { />