@@ -3,29 +3,29 @@ import Link from "next/link";
3
3
import Image from "next/image" ;
4
4
import { ContentTreeArray } from "@/utils/data" ;
5
5
import DateIcon from "/public/svgs/date-icon.svg" ;
6
- import TagsIcon from "/public/svgs/tags-icon.svg" ;
7
6
import { ContentData , createSlug , formatDate , unsluggify } from "@/utils" ;
8
7
import { MicIcon } from "@bitcoin-dev-project/bdp-ui/icons" ;
9
8
import Pill from "./Pill" ;
9
+ import TagIcon from "../svgs/TagIcon" ;
10
10
11
11
const TranscriptDetailsCard = ( { data } : { data : ContentTreeArray ; slug : string [ ] } ) => {
12
12
const { speakers, tagsDetailed, summary, date, title, body, languageURL } = data ;
13
13
const calculateRemaining = ( data : ContentData [ ] | string [ ] ) => ( data ?. length && data . length > 3 ? data . length - 3 : 0 ) ;
14
14
15
15
return (
16
- < div className = 'border border-gray-custom-1200 rounded-lg p-4 md:p-5 2xl:p-6 flex flex-col gap-3 md:gap-4' >
16
+ < div className = 'border border-gray-custom-1200 dark:border-gray-custom-1800 rounded-lg p-4 md:p-5 2xl:p-6 flex flex-col gap-3 md:gap-4' >
17
17
< section className = 'flex justify-between' >
18
18
< div className = 'flex md:flex-row flex-col justify-between gap-2 w-full' >
19
19
< Link
20
20
href = { `${ languageURL } ` }
21
- className = 'font-bold text-base leading-[21.86px] md:text-xl 2xl:text-[22.5px] md:leading-[30px] text-orange-custom-100 md:text-black'
21
+ className = 'font-bold text-base leading-[21.86px] md:text-xl 2xl:text-[22.5px] md:leading-[30px] text-orange-custom-100 md:text-black dark:text-gray-custom-100 '
22
22
>
23
23
{ title }
24
24
</ Link >
25
25
{ date && (
26
26
< div className = 'flex gap-2 items-center h-fit' >
27
- < Image src = { DateIcon } alt = 'date icon' className = 'w-[18px] md:w-[20px]' />
28
- < p className = 'text-xs md:text-sm 2xl:text-base leading-[17.6px] font-medium text-gray-custom-800' > { formatDate ( date ! ) } </ p >
27
+ < Image src = { DateIcon } alt = 'date icon' className = 'w-[18px] md:w-[20px] dark:text-gray-custom-600 ' />
28
+ < p className = 'text-xs md:text-sm 2xl:text-base leading-[17.6px] font-medium text-gray-custom-800 dark:text-gray-custom-600 ' > { formatDate ( date ! ) } </ p >
29
29
</ div >
30
30
) }
31
31
</ div >
@@ -36,7 +36,7 @@ const TranscriptDetailsCard = ({ data }: { data: ContentTreeArray; slug: string[
36
36
< section className = 'flex gap-2 items-center max-md:gap-1' >
37
37
< >
38
38
< span >
39
- < MicIcon className = 'w-5 md:w-6' />
39
+ < MicIcon className = 'w-5 md:w-6 dark:text-gray-custom-100 ' />
40
40
</ span >
41
41
< div className = 'flex gap-[9px] flex-wrap' >
42
42
< div className = 'flex flex-wrap gap-[9px] max-md:gap-2' >
@@ -45,7 +45,7 @@ const TranscriptDetailsCard = ({ data }: { data: ContentTreeArray; slug: string[
45
45
) ) }
46
46
47
47
{ calculateRemaining ( speakers ) === 0 ? null : (
48
- < p className = 'py-[2px] px-5 rounded-[5px] bg-gray-custom-700 whitespace-nowrap text-nowrap max-md:px-3 lg:py-1 max-2xl:text-sm max-md:text-sm max-md:border max-md:border-gray-custom-300 max-md:leading-[100%]' >
48
+ < p className = 'py-[2px] px-5 rounded-[5px] bg-gray-custom-700 dark:bg-gray-custom-2100 whitespace-nowrap text-nowrap max-md:px-3 lg:py-1 max-2xl:text-sm max-md:text-sm max-md:border max-md:border-gray-custom-300 max-md:leading-[100%]' >
49
49
+ { calculateRemaining ( speakers ) } more
50
50
</ p >
51
51
) }
@@ -59,7 +59,7 @@ const TranscriptDetailsCard = ({ data }: { data: ContentTreeArray; slug: string[
59
59
{ tagsDetailed ?. length ? (
60
60
< >
61
61
< span >
62
- < Image src = { TagsIcon } alt = 'date icon' className = 'w-5 md:w-6' />
62
+ < TagIcon className = 'w-5 md:w-6 dark:text-gray-custom-100 ' />
63
63
</ span >
64
64
< div className = 'flex gap-[9px] flex-wrap' >
65
65
< div className = 'flex flex-wrap gap-[9px] max-md:gap-2' >
@@ -81,7 +81,7 @@ const TranscriptDetailsCard = ({ data }: { data: ContentTreeArray; slug: string[
81
81
82
82
{ summary || body ? (
83
83
< section >
84
- < p className = 'text-sm md:text 2xl:text-base text-custom-black-custom-300 2xl:leading-[25px] line-clamp-3' > { summary ? summary : body } </ p >
84
+ < p className = 'text-sm md:text 2xl:text-base text-custom-black-custom-300 dark:text-gray-custom-100 2xl:leading-[25px] line-clamp-3' > { summary ? summary : body } </ p >
85
85
</ section >
86
86
) : null }
87
87
</ div >
0 commit comments