feat: add slider and price git

This commit is contained in:
rezakarimi
2023-05-30 02:00:30 +03:30
parent 1a4b0a2eb2
commit 9fc1d8b19c
7 changed files with 1584 additions and 10228 deletions
+1573 -10220
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -1,4 +1,5 @@
import React from 'react' import React from 'react'
import SliderZero from '../../public/resource/slider/PRICE_CHART.webp'
import SliderOne from '../../public/resource/slider/slier-1(1).webp' import SliderOne from '../../public/resource/slider/slier-1(1).webp'
import sliderJob from '../../public/resource/slider/slider-2(1).webp' import sliderJob from '../../public/resource/slider/slider-2(1).webp'
import sliderBook from '../../public/resource/slider/slider_3.webp' import sliderBook from '../../public/resource/slider/slider_3.webp'
@@ -12,6 +13,11 @@ const Slider = () => {
return ( return (
<div> <div>
<Swiper pagination={true} autoplay={true} loop={true} modules={[Pagination]} className='mySwiper'> <Swiper pagination={true} autoplay={true} loop={true} modules={[Pagination]} className='mySwiper'>
<SwiperSlide style={{ cursor: 'pointer' }} className='pointer'>
<Link href='/stock-price'>
<img src={SliderZero} />
</Link>
</SwiperSlide>
<SwiperSlide style={{ cursor: 'pointer' }} className='pointer'> <SwiperSlide style={{ cursor: 'pointer' }} className='pointer'>
<Link href='/stock-unit'> <Link href='/stock-unit'>
<img src={sliderCallCenter} /> <img src={sliderCallCenter} />
+2 -7
View File
@@ -74,12 +74,7 @@ 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>
<div className={'flex align-items-center'}>
<div className={'flex text-center align-items-center'}>
<FiUser className={'ml-2 mb-3'} size={15} />
<p style={{ fontSize: 15 }}>احمد سعیدی</p>
</div>
</div>
</MDBCardTitle> </MDBCardTitle>
<hr /> <hr />
<br /> <br />
@@ -94,7 +89,7 @@ const News = ({ post }) => {
<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/MIP.100MGIF(1)(1) (1).gif'} src={'/resource/images/animation.gif.gif'}
/> />
</Link> </Link>
<Link href={'https://panel.mehriranianco.ir/welcome'}> <Link href={'https://panel.mehriranianco.ir/welcome'}>
+3 -1
View File
@@ -1,8 +1,10 @@
import React from 'react' import React from 'react'
import dynamic from 'next/dist/next-server/lib/dynamic' import dynamic from 'next/dist/next-server/lib/dynamic'
import { Skeleton } from '@chakra-ui/react'
const StockPriceChart = dynamic(() => import('../../src/components/Chart'), { const StockPriceChart = dynamic(() => import('../../src/components/Chart'), {
ssr: false ssr: false,
loading: () => <Skeleton height={200} className='w-full'/>
}) })
const index = () => { const index = () => {
return ( return (
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB