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