diff --git a/public/img/youtube.png b/public/img/youtube.png new file mode 100644 index 0000000..a888c18 Binary files /dev/null and b/public/img/youtube.png differ diff --git a/src/app/page.tsx b/src/app/page.tsx index b5b6a73..e4b2c02 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -23,6 +23,7 @@ type Props = { link_plafthorm_ya: string; link_plafthorm_go: string; link_plafthorm_ap: string; + link_plafthorm_yu: string; title_items: string; children: Node; datePub: string; @@ -38,7 +39,7 @@ const Views = async (e : number) =>{ } -const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_items, datePub, link_plafthorm_ya, link_plafthorm_go, link_plafthorm_ap}) => ( +const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_items, datePub, link_plafthorm_ya, link_plafthorm_go, link_plafthorm_ap, link_plafthorm_yu}) => ( <>
@@ -61,7 +62,7 @@ const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_i onPlay={e => Views(id)} />
-

Дата публикации: {datePub}

+

Дата публикации: {datePub} | Прослушали: {100}

@@ -99,6 +100,18 @@ const PodcastBlocks: React.FC = ({id, audio, description, urlImg, title_i />
+
+ + {title_items} + +
diff --git a/src/pages/api/podcasts/all.ts b/src/pages/api/podcasts/all.ts index e6d9352..c62e074 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, 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"; +const sql = "SELECT items.id, podcasts.link_plafthorm_ya, podcasts.link_plafthorm_yu, 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,