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. 30
      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; urlImg: string;
link_plafthorm_ya: string; link_plafthorm_ya: string;
link_plafthorm_go: string; link_plafthorm_go: string;
link_plafthorm_ap: string;
title_items: string; title_items: string;
children: Node; children: Node;
datePub: string; 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="m-3 card lg:card-side bg-base-100 shadow-xl">
<div className="grid grid-rows-1 grid-flow-col gap-4"> <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 <Image
src={'/img/'+urlImg} src={'/img/'+urlImg}
alt={title_items} alt={title_items}
width="0" width="0"
height="0" height="0"
sizes="100vw" sizes="100vh"
className="w-auto m-3 row-span-2" className="w-full"
/> />
</div>
<div className="col-span-2 width_99 m-3"> <div className="width_99 flex flex-col justify-between p-4 leading-normal flex-auto">
<h2 className="card-title">{title_items}</h2> <h2 className="card-title">{title_items}</h2>
<p>{description}</p> <p>{description}</p>
<div className="card-actions justify-end"> <div className="card-actions justify-end">
@ -68,7 +70,7 @@ const PodcastBlocks: React.FC<Props> = ({id, audio, description, urlImg, title_i
alt={title_items} alt={title_items}
width="0" width="0"
height="0" height="0"
sizes="15vw" sizes="200vw"
className="w-auto row-span-2" className="w-auto row-span-2"
/> />
</a> </a>
@ -80,7 +82,19 @@ const PodcastBlocks: React.FC<Props> = ({id, audio, description, urlImg, title_i
alt={title_items} alt={title_items}
width="0" width="0"
height="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" className="w-auto row-span-2"
/> />
</a> </a>

@ -1,7 +1,7 @@
import Select from "../../../server/db/select"; import Select from "../../../server/db/select";
import type { NextApiRequest, NextApiResponse } from 'next'; 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( export default function handler(
req: NextApiRequest, req: NextApiRequest,

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

Loading…
Cancel
Save