feat: add new items to nes page

This commit is contained in:
rezakarimi
2023-06-02 12:03:27 +03:30
parent c9d6403a66
commit aa7b5ce67b
8 changed files with 35 additions and 14 deletions
+26 -9
View File
@@ -21,7 +21,7 @@ import {
} from 'mdb-react-ui-kit'
import Image from 'next/image'
import { AppFile, AppUrl } from '../../../lib/api'
import { Box, SimpleGrid } from '@chakra-ui/react'
import { Tag, TagLabel, HStack } from '@chakra-ui/react'
const moment = require('moment-jalaali')
@@ -74,24 +74,41 @@ const News = ({ post }) => {
<MDBCardBody>
<MDBCardTitle className={'flex align-items-center justify-content-between'}>
<div>{post.title}</div>
</MDBCardTitle>
<hr />
<br />
<MDBCardText className='text-right news-content right right-align' style={{ direction: 'rtl' }}>
{parse(post.text)}
<MDBCardText
className='text-right news-content right !bk-light right-align'
style={{ direction: 'rtl', lineHeight: '2.3' }}
>
{parse(post.text.replace('/n', ' '))}
<hr />
<HStack spacing={4}>
<Tag size='md' className='flex gap-x-10' borderRadius='full'>
<TagLabel className='text-sm p-2'>سرمایه گذاری</TagLabel>
</Tag>
<Tag size='md' className='flex gap-x-10' borderRadius='full'>
<TagLabel className='text-sm p-2'>بیمارستان پرند </TagLabel>
</Tag>
<Tag size='md' className='flex gap-x-10' borderRadius='full'>
<TagLabel className='text-sm p-2'>شهر پرند </TagLabel>
</Tag>
<Tag size='md' className='flex gap-x-10' borderRadius='full'>
<TagLabel className='text-sm p-2'>سرمایه گذاری در بخش درمان </TagLabel>
</Tag>
</HStack>
</MDBCardText>
</MDBCardBody>
</MDBCard>
</MDBCol>
<MDBCol xs={12} md={12} lg={3}>
{/* <Link href={'https://panel.mehriranianco.ir/welcome'}>
<Link href={'https://panel.mehriranianco.ir/welcome'}>
<MDBCardImage
className={'rounded-6 cursor-pointer'}
style={{ width: 512, height: 275 }}
src={'/resource/images/animation.gif.gif'}
src={'/resource/images/price-anim.gif'}
/>
</Link> */}
</Link>
<Link href={'https://panel.mehriranianco.ir/welcome'}>
<MDBCardImage
className={'rounded-6 cursor-pointer mt-3'}
@@ -104,7 +121,7 @@ const News = ({ post }) => {
<MDBCardTitle>مطالب اخیر </MDBCardTitle>
<hr />
<MDBCardText className={'mt-4'}>
<Link href={'/page/news/36'}>
<Link href={'https://panel.mehriranianco.ir/welcome'}>
<MDBListGroupItem style={{ cursor: 'pointer' }} className={'border-none bk-light p-1'}>
<FiChevronLeft />
خرید سهام
@@ -145,7 +162,7 @@ const News = ({ post }) => {
</MDBRow>
<br />
<hr />
<MDBTypography>
<MDBTypography className='dana font-light'>
تاریخ انتشار :{moment(post.created_at, 'YYYY-M-D HH:mm:ss').format('HH:mm - jYYYY/jM/jD')}
</MDBTypography>
</div>