diff --git a/public/img/Apple_podcast.png b/public/img/Apple_podcast.png new file mode 100644 index 0000000..48f8823 Binary files /dev/null and b/public/img/Apple_podcast.png differ diff --git a/public/img/badge_white.png b/public/img/badge_white.png index beef365..3b5bf0c 100644 Binary files a/public/img/badge_white.png and b/public/img/badge_white.png differ diff --git a/src/app/page.tsx b/src/app/page.tsx index 9d9006e..b5b6a73 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -22,6 +22,7 @@ type Props = { urlImg: string; link_plafthorm_ya: string; link_plafthorm_go: string; + link_plafthorm_ap: string; title_items: string; children: Node; datePub: string; @@ -37,20 +38,21 @@ const Views = async (e : number) =>{ } -const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_items, datePub, link_plafthorm_ya, link_plafthorm_go}) => ( +const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_items, datePub, link_plafthorm_ya, link_plafthorm_go, link_plafthorm_ap}) => ( <>
-
- {title_items} - -
+
+
+ {title_items} +
+

{title_items}

{description}

@@ -68,7 +70,7 @@ const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_i alt={title_items} width="0" height="0" - sizes="15vw" + sizes="200vw" className="w-auto row-span-2" /> @@ -80,7 +82,19 @@ const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_i alt={title_items} width="0" height="0" - sizes="15vw" + sizes="200vw" + className="w-auto row-span-2" + /> + +
+
+ + {title_items} diff --git a/src/pages/api/podcasts/all.ts b/src/pages/api/podcasts/all.ts index cd68c28..e6d9352 100644 --- a/src/pages/api/podcasts/all.ts +++ b/src/pages/api/podcasts/all.ts @@ -1,7 +1,7 @@ import Select from "../../../server/db/select"; import type { NextApiRequest, NextApiResponse } from 'next'; -const sql = "SELECT items.id, podcasts.link_plafthorm_ya, podcasts.link_plafthorm_go, urlImg,items.description, items.title_items, items.audio, DATE_FORMAT(items.pubDate, '%d - %m - %Y') as datePub FROM podcasts, items WHERE podcasts.id=items.id_podcasts and items.status=1 ORDER BY items.pubDate DESC"; +const sql = "SELECT items.id, podcasts.link_plafthorm_ya, podcasts.link_plafthorm_go, podcasts.link_plafthorm_ap, urlImg,items.description, items.title_items, items.audio, DATE_FORMAT(items.pubDate, '%d - %m - %Y') as datePub FROM podcasts, items WHERE podcasts.id=items.id_podcasts and items.status=1 ORDER BY items.pubDate DESC"; export default function handler( req: NextApiRequest, diff --git a/src/сomponents/podcasts/getRssXml.ts b/src/сomponents/podcasts/getRssXml.ts index fc6a706..eb915bd 100644 --- a/src/сomponents/podcasts/getRssXml.ts +++ b/src/сomponents/podcasts/getRssXml.ts @@ -38,7 +38,7 @@ export const getRssXml = (data: Props) => { krasnikov podcasts `+data.lastBuildDate+` `+data.lastBuildDate+` - + episodic no