|
|
@ -20,6 +20,12 @@ const fontSize = { |
|
|
|
h2: window.innerWidth > maxDesktopSize ? 20 : window.innerWidth / 70, |
|
|
|
h2: window.innerWidth > maxDesktopSize ? 20 : window.innerWidth / 70, |
|
|
|
li: window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 80, |
|
|
|
li: window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 80, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
mobile: { |
|
|
|
|
|
|
|
h1: window.innerWidth > maxMobileSize ? 30 : window.innerWidth / 18, |
|
|
|
|
|
|
|
p: window.innerWidth > maxMobileSize ? 18 : window.innerWidth / 28, |
|
|
|
|
|
|
|
h2: window.innerWidth > maxMobileSize ? 20 : window.innerWidth / 23, |
|
|
|
|
|
|
|
li: window.innerWidth > maxMobileSize ? 16 : window.innerWidth / 28, |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export default class About extends Component { |
|
|
|
export default class About extends Component { |
|
|
@ -121,22 +127,26 @@ export default class About extends Component { |
|
|
|
<div className="mobile-about d-flex flex-column"> |
|
|
|
<div className="mobile-about d-flex flex-column"> |
|
|
|
<Navbar page={"about"} /> |
|
|
|
<Navbar page={"about"} /> |
|
|
|
<div className="mobile-about__fury d-flex flex-column"> |
|
|
|
<div className="mobile-about__fury d-flex flex-column"> |
|
|
|
<h1 style={{ fontSize: fontSize.desktop.h1 }}>{fury.title}</h1> |
|
|
|
<div> |
|
|
|
<p style={{ fontSize: fontSize.desktop.p }}>{fury.text}</p> |
|
|
|
<h1 style={{ fontSize: fontSize.mobile.h1 }}>{fury.title}</h1> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<p style={{ fontSize: fontSize.mobile.p }}>{fury.text}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="mobile-about__images-- d-flex"> |
|
|
|
<div className="mobile-about__images d-flex"> |
|
|
|
{this.props.absoluteImages.map((item, i) => ( |
|
|
|
{this.props.absoluteImages.map((item, i) => ( |
|
|
|
<img src={item.imageUrl} className={item.class} alt="عکس" /> |
|
|
|
<img src={item.imageUrl} className={item.class} alt="عکس" /> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="right-bottom align-self-end"> |
|
|
|
<div className="mobile-about__keys align-self-end"> |
|
|
|
<h2 style={{ fontSize: fontSize.desktop.h2 }}> |
|
|
|
<div> |
|
|
|
|
|
|
|
<h2 style={{ fontSize: fontSize.mobile.h2 }}> |
|
|
|
{keywords.title} |
|
|
|
{keywords.title} |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
|
|
|
|
</div> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
{keywords.list.map((item, i) => ( |
|
|
|
{keywords.list.map((item, i) => ( |
|
|
|
<Fragment key={i}> |
|
|
|
<Fragment key={i}> |
|
|
|
<li style={{ fontSize: fontSize.desktop.li }}>{item}</li> |
|
|
|
<li style={{ fontSize: fontSize.mobile.li }}>{item}</li> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
</Fragment> |
|
|
|
</Fragment> |
|
|
|
))} |
|
|
|
))} |
|
|
@ -145,14 +155,16 @@ export default class About extends Component { |
|
|
|
<div className="mobile-about__video d-flex"> |
|
|
|
<div className="mobile-about__video d-flex"> |
|
|
|
<img src={pic} alt={"عکس"} /> |
|
|
|
<img src={pic} alt={"عکس"} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="mobile-about__advantages--left"> |
|
|
|
<div className="mobile-about__advantages d-flex flex-column"> |
|
|
|
<h1 style={{ fontSize: fontSize.desktop.h1 }}> |
|
|
|
<div> |
|
|
|
|
|
|
|
<h1 style={{ fontSize: fontSize.mobile.h1 }}> |
|
|
|
{advantages.title} |
|
|
|
{advantages.title} |
|
|
|
</h1> |
|
|
|
</h1> |
|
|
|
|
|
|
|
</div> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
{advantages.list.map((item, i) => ( |
|
|
|
{advantages.list.map((item, i) => ( |
|
|
|
<Fragment key={i}> |
|
|
|
<Fragment key={i}> |
|
|
|
<li style={{ fontSize: fontSize.desktop.li }}>{item}</li> |
|
|
|
<li style={{ fontSize: fontSize.mobile.li }}>{item}</li> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
</Fragment> |
|
|
|
</Fragment> |
|
|
|
))} |
|
|
|
))} |
|
|
@ -167,9 +179,33 @@ export default class About extends Component { |
|
|
|
|
|
|
|
|
|
|
|
About.defaultProps = { |
|
|
|
About.defaultProps = { |
|
|
|
absoluteImages: [ |
|
|
|
absoluteImages: [ |
|
|
|
{ class: "about__fury--left__1", imageUrl: aboutLg }, |
|
|
|
{ |
|
|
|
{ class: "about__fury--left__2", imageUrl: aboutMd }, |
|
|
|
class: |
|
|
|
{ class: "about__fury--left__3", imageUrl: aboutXs1 }, |
|
|
|
window.innerWidth > 1000 |
|
|
|
{ class: "about__fury--left__4", imageUrl: aboutXs2 }, |
|
|
|
? "about__fury--left__1" |
|
|
|
|
|
|
|
: "mobile-about__images--1", |
|
|
|
|
|
|
|
imageUrl: aboutLg, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
class: |
|
|
|
|
|
|
|
window.innerWidth > 1000 |
|
|
|
|
|
|
|
? "about__fury--left__2" |
|
|
|
|
|
|
|
: "mobile-about__images--2", |
|
|
|
|
|
|
|
imageUrl: aboutMd, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
class: |
|
|
|
|
|
|
|
window.innerWidth > 1000 |
|
|
|
|
|
|
|
? "about__fury--left__3" |
|
|
|
|
|
|
|
: "mobile-about__images--3", |
|
|
|
|
|
|
|
imageUrl: aboutXs1, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
class: |
|
|
|
|
|
|
|
window.innerWidth > 1000 |
|
|
|
|
|
|
|
? "about__fury--left__4" |
|
|
|
|
|
|
|
: "mobile-about__images--4", |
|
|
|
|
|
|
|
imageUrl: aboutXs2, |
|
|
|
|
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
}; |
|
|
|