new file: public/img/Apple_podcast.png

modified:   public/img/badge_white.png
	modified:   src/app/page.tsx
	modified:   src/pages/api/podcasts/all.ts
	modified:   "src/\321\201omponents/podcasts/getRssXml.ts"
master
joker 2 years ago
parent a76ae4606e
commit 3ecc8b4115
  1. BIN
      public/img/Apple_podcast.png
  2. BIN
      public/img/badge_white.png
  3. 42
      src/app/page.tsx
  4. 2
      src/pages/api/podcasts/all.ts
  5. 2
      src/сomponents/podcasts/getRssXml.ts

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 148 KiB

@ -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<Props> = ({id, audio, description, urlImg, title_items, datePub, link_plafthorm_ya, link_plafthorm_go}) => (
const PodcastBlocks: React.FC<Props> = ({id, audio, description, urlImg, title_items, datePub, link_plafthorm_ya, link_plafthorm_go, link_plafthorm_ap}) => (
<>
<div className="m-3 card lg:card-side bg-base-100 shadow-xl">
<div className="grid grid-rows-1 grid-flow-col gap-4">
<Image
src={'/img/'+urlImg}
alt={title_items}
width="0"
height="0"
sizes="100vw"
className="w-auto m-3 row-span-2"
/>
<div className="col-span-2 width_99 m-3">
<div className="flex flex-col items-center bg-white border border-gray-200 rounded-lg shadow md:flex-row ">
<div className="mb-3 object-cover rounded-t-lg md:w-auto md:min-w-64 md:max-w-64 md:rounded-s-lg md:m-3">
<Image
src={'/img/'+urlImg}
alt={title_items}
width="0"
height="0"
sizes="100vh"
className="w-full"
/>
</div>
<div className="width_99 flex flex-col justify-between p-4 leading-normal flex-auto">
<h2 className="card-title">{title_items}</h2>
<p>{description}</p>
<div className="card-actions justify-end">
@ -68,7 +70,7 @@ const PodcastBlocks: React.FC<Props> = ({id, audio, description, urlImg, title_i
alt={title_items}
width="0"
height="0"
sizes="15vw"
sizes="200vw"
className="w-auto row-span-2"
/>
</a>
@ -80,7 +82,19 @@ const PodcastBlocks: React.FC<Props> = ({id, audio, description, urlImg, title_i
alt={title_items}
width="0"
height="0"
sizes="15vw"
sizes="200vw"
className="w-auto row-span-2"
/>
</a>
</div>
<div className="basis-1/4">
<a href={link_plafthorm_ap}>
<Image
src={'/img/Apple_podcast.png'}
alt={title_items}
width="0"
height="0"
sizes="200vw"
className="w-auto row-span-2"
/>
</a>

@ -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,

@ -38,7 +38,7 @@ export const getRssXml = (data: Props) => {
<generator>krasnikov podcasts</generator>
<lastBuildDate>`+data.lastBuildDate+`</lastBuildDate>
<pubDate>`+data.lastBuildDate+`</pubDate>
<copyright><![CDATA[2023 © `+data.nameCompanies+`. Все права защищены.]]></copyright>
<copyright><![CDATA[2024 © `+data.nameCompanies+`. Все права защищены.]]></copyright>
<language><![CDATA[ru]]></language>
<itunes:type>episodic</itunes:type>
<itunes:explicit>no</itunes:explicit>

Loading…
Cancel
Save