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' } from 'mdb-react-ui-kit'
import Image from 'next/image' import Image from 'next/image'
import { AppFile, AppUrl } from '../../../lib/api' 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') const moment = require('moment-jalaali')
@@ -74,24 +74,41 @@ const News = ({ post }) => {
<MDBCardBody> <MDBCardBody>
<MDBCardTitle className={'flex align-items-center justify-content-between'}> <MDBCardTitle className={'flex align-items-center justify-content-between'}>
<div>{post.title}</div> <div>{post.title}</div>
</MDBCardTitle> </MDBCardTitle>
<hr /> <hr />
<br /> <br />
<MDBCardText className='text-right news-content right right-align' style={{ direction: 'rtl' }}> <MDBCardText
{parse(post.text)} 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> </MDBCardText>
</MDBCardBody> </MDBCardBody>
</MDBCard> </MDBCard>
</MDBCol> </MDBCol>
<MDBCol xs={12} md={12} lg={3}> <MDBCol xs={12} md={12} lg={3}>
{/* <Link href={'https://panel.mehriranianco.ir/welcome'}> <Link href={'https://panel.mehriranianco.ir/welcome'}>
<MDBCardImage <MDBCardImage
className={'rounded-6 cursor-pointer'} className={'rounded-6 cursor-pointer'}
style={{ width: 512, height: 275 }} 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'}> <Link href={'https://panel.mehriranianco.ir/welcome'}>
<MDBCardImage <MDBCardImage
className={'rounded-6 cursor-pointer mt-3'} className={'rounded-6 cursor-pointer mt-3'}
@@ -104,7 +121,7 @@ const News = ({ post }) => {
<MDBCardTitle>مطالب اخیر </MDBCardTitle> <MDBCardTitle>مطالب اخیر </MDBCardTitle>
<hr /> <hr />
<MDBCardText className={'mt-4'}> <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'}> <MDBListGroupItem style={{ cursor: 'pointer' }} className={'border-none bk-light p-1'}>
<FiChevronLeft /> <FiChevronLeft />
خرید سهام خرید سهام
@@ -145,7 +162,7 @@ const News = ({ post }) => {
</MDBRow> </MDBRow>
<br /> <br />
<hr /> <hr />
<MDBTypography> <MDBTypography className='dana font-light'>
تاریخ انتشار :{moment(post.created_at, 'YYYY-M-D HH:mm:ss').format('HH:mm - jYYYY/jM/jD')} تاریخ انتشار :{moment(post.created_at, 'YYYY-M-D HH:mm:ss').format('HH:mm - jYYYY/jM/jD')}
</MDBTypography> </MDBTypography>
</div> </div>
+2 -1
View File
@@ -3,6 +3,7 @@ import AppContainer from '../appContainer'
import Image from 'next/image' import Image from 'next/image'
import { MDBContainer } from 'mdb-react-ui-kit' import { MDBContainer } from 'mdb-react-ui-kit'
import CollapseItem from './Collapse' import CollapseItem from './Collapse'
import { Stock_price } from '../../src/vat'
const QuestionAndAnswer = () => { const QuestionAndAnswer = () => {
const Parallax = ({ quality }) => { const Parallax = ({ quality }) => {
@@ -12,7 +13,7 @@ const QuestionAndAnswer = () => {
{ {
id: 1, id: 1,
title: ' قیمت سهام ', title: ' قیمت سهام ',
text: ' (بروزرسانی : 30 اسفند 1401) فروش سهام با تعداد محدود و مدت محدود با قيمت 100,000,000 تومان' text: ` (بروزرسانی : خرداد 1401 ) فروش سهام با تعداد محدود و مدت محدود با ${Stock_price} قيمت تومان`
}, },
{ {
id: 2, id: 2,
+2 -2
View File
@@ -33,8 +33,8 @@ const Recruitment = jobs => {
<div className={'flex flex-column'}> <div className={'flex flex-column'}>
<div className={'mb-5'}> <div className={'mb-5'}>
<h2 className={'center-align bk-med text-white header_back service-text dana font-weight-bold'}> <h2 className={'center-align bk-med text-white header_back service-text dana font-weight-bold'}>
{' '}
فرصت های شغلی بیمارستان مهر ایرانیان پرند{' '} فرصت های شغلی بیمارستان مهر ایرانیان
</h2> </h2>
</div> </div>
<br /> <br />
+2 -1
View File
@@ -14,6 +14,7 @@ import {AiOutlinePhone} from "react-icons/ai";
import {HandlePage} from "../../../lib/HnadelPagge"; import {HandlePage} from "../../../lib/HnadelPagge";
import NumberFormat from "react-number-format"; import NumberFormat from "react-number-format";
import IMGAE from '../../../public/resource/Smart/coins-outline.gif' import IMGAE from '../../../public/resource/Smart/coins-outline.gif'
import { Stock_price } from '../../../src/vat';
function MDBRadio(props) { function MDBRadio(props) {
return null; return null;
@@ -36,7 +37,7 @@ const StepThree = () => {
</p> </p>
<div className={'dana flex align-items-center text-sm'}> <div className={'dana flex align-items-center text-sm'}>
<MDBCardImage className={'ml-2'} src={IMGAE} width={50} height={50} /> <MDBCardImage className={'ml-2'} src={IMGAE} width={50} height={50} />
قیمت پایه هر سهم : 100.000.000 {Stock_price}
تومان تومان
</div> </div>
</div> </div>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

+2 -1
View File
@@ -57,13 +57,14 @@ const StockPriceChart = () => {
> >
<div className='flex bg-white px-4 md:flex-col sm:flex-col lg:flex-row py-3 items-center rounded-lg'> <div className='flex bg-white px-4 md:flex-col sm:flex-col lg:flex-row py-3 items-center rounded-lg'>
<div className='mt-2 flex md:flex-col md:items-center sm:items-center sm:flex-col lg:flex-row'> <div className='mt-2 flex md:flex-col md:items-center sm:items-center sm:flex-col lg:flex-row'>
<div className='flex justify-center'> <div className='flex items-center justify-center'>
<span className='blob mb-3 mt-2 ml-3' /> <span className='blob mb-3 mt-2 ml-3' />
</div> </div>
<h3 className='text-success bk-med'>قیمت روز سهام : </h3> <h3 className='text-success bk-med'>قیمت روز سهام : </h3>
<h3 className='text-success mr-2'> <h3 className='text-success mr-2'>
<CountUp start={0} end={150000000} separator=',' /> <CountUp start={0} end={150000000} separator=',' />
</h3> </h3>
<p className='flex items-center mr-2' style={{ fontSize: 12 }}>تومان</p>
<p <p
style={{ fontSize: 15, backgroundColor: '#2dd4bf' }} style={{ fontSize: 15, backgroundColor: '#2dd4bf' }}
className=' text-white p-1 rounded-full flex justify-center items-center mr-2 mt-1' className=' text-white p-1 rounded-full flex justify-center items-center mr-2 mt-1'
+1
View File
@@ -0,0 +1 @@
export const Stock_price = '150,000,000'