Merge branch 'fixing-broken-images-on-contact-page' into 'dev'
Fix for broken images See merge request ligolang/ligo!241
This commit is contained in:
commit
204aeb4f85
@ -5,11 +5,26 @@ module.exports = props => {
|
|||||||
return (
|
return (
|
||||||
<div id="pageNotFoundPage" className="centered">
|
<div id="pageNotFoundPage" className="centered">
|
||||||
<div id="mural">
|
<div id="mural">
|
||||||
<img className="muralPolygon1" src="img/404-mural/polygon1.svg" />
|
<img
|
||||||
<img className="muralPolygon2" src="img/404-mural/polygon2.svg" />
|
className="muralPolygon1"
|
||||||
<img className="muralPolygon3" src="img/404-mural/polygon3.svg" />
|
src={`${props.config.baseUrl}img/404-mural/polygon1.svg`}
|
||||||
<img className="muralPolygon4" src="img/404-mural/polygon4.svg" />
|
/>
|
||||||
<img className="muralPolygon5" src="img/404-mural/polygon5.svg" />
|
<img
|
||||||
|
className="muralPolygon2"
|
||||||
|
src={`${props.config.baseUrl}img/404-mural/polygon2.svg`}
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
className="muralPolygon3"
|
||||||
|
src={`${props.config.baseUrl}img/404-mural/polygon3.svg`}
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
className="muralPolygon4"
|
||||||
|
src={`${props.config.baseUrl}img/404-mural/polygon4.svg`}
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
className="muralPolygon5"
|
||||||
|
src={`${props.config.baseUrl}img/404-mural/polygon5.svg`}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div id="message">
|
<div id="message">
|
||||||
<div className="title">404</div>
|
<div className="title">404</div>
|
||||||
|
@ -63,7 +63,7 @@ const COMMUNICATION_CHANNELS = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const Portrait = props => {
|
const Portrait = (config, props) => {
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
href={props.link}
|
href={props.link}
|
||||||
@ -72,7 +72,7 @@ const Portrait = props => {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<img className="portrait" src={props.image} />
|
<img className="portrait" src={`${config.baseUrl}${props.image}`} />
|
||||||
<div className="overlay">
|
<div className="overlay">
|
||||||
<span>{props.firstName}</span>
|
<span>{props.firstName}</span>
|
||||||
<span>{props.lastName}</span>
|
<span>{props.lastName}</span>
|
||||||
@ -81,7 +81,7 @@ const Portrait = props => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const CommunicationChannel = props => {
|
const CommunicationChannel = (config, props) => {
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
className="option"
|
className="option"
|
||||||
@ -89,13 +89,13 @@ const CommunicationChannel = props => {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<img className="icon" src={props.icon} />
|
<img className="icon" src={`${config.baseUrl}${props.icon}`} />
|
||||||
{props.description}
|
{props.description}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = () => {
|
module.exports = props => {
|
||||||
const pinnedMembers = TEAM.filter(member => member.pinned);
|
const pinnedMembers = TEAM.filter(member => member.pinned);
|
||||||
const membersCeilCount = Math.ceil(pinnedMembers.length / 2);
|
const membersCeilCount = Math.ceil(pinnedMembers.length / 2);
|
||||||
const membersInFistColumn = pinnedMembers.slice(0, membersCeilCount);
|
const membersInFistColumn = pinnedMembers.slice(0, membersCeilCount);
|
||||||
@ -104,15 +104,19 @@ module.exports = () => {
|
|||||||
return (
|
return (
|
||||||
<div id="contactPage" className="centered">
|
<div id="contactPage" className="centered">
|
||||||
<div id="mural">
|
<div id="mural">
|
||||||
<div className="column">{membersInFistColumn.map(Portrait)}</div>
|
<div className="column">
|
||||||
|
{membersInFistColumn.map(entry => Portrait(props.config, entry))}
|
||||||
|
</div>
|
||||||
<div className="offset column">
|
<div className="offset column">
|
||||||
{membersInSecondColumn.map(Portrait)}
|
{membersInSecondColumn.map(entry => Portrait(props.config, entry))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="message">
|
<div id="message">
|
||||||
<div className="title">Talk to us</div>
|
<div className="title">Talk to us</div>
|
||||||
<div className="communicationOptions">
|
<div className="communicationOptions">
|
||||||
{COMMUNICATION_CHANNELS.map(CommunicationChannel)}
|
{COMMUNICATION_CHANNELS.map(entry =>
|
||||||
|
CommunicationChannel(props.config, entry)
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,22 +43,22 @@ const PARTNERS = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const Feature = props => (
|
const Feature = (config, props) => (
|
||||||
<div className="feature" key={props.title}>
|
<div className="feature" key={props.title}>
|
||||||
<img src={props.image} />
|
<img src={`${config.baseUrl}${props.image}`} />
|
||||||
<h1>{props.title}</h1>
|
<h1>{props.title}</h1>
|
||||||
<p>{props.content}</p>
|
<p>{props.content}</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
const Partner = props => (
|
const Partner = (config, props) => (
|
||||||
<a
|
<a
|
||||||
href={props.link}
|
href={props.link}
|
||||||
title={props.name}
|
title={props.name}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<img src={props.image} />
|
<img src={`${config.baseUrl}${props.image}`} />
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -83,13 +83,15 @@ module.exports = props => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="features" className="centered">
|
<div id="features" className="centered">
|
||||||
{FEATURES.map(Feature)}
|
{FEATURES.map(entry => Feature(props.config, entry))}
|
||||||
</div>
|
</div>
|
||||||
<div id="partners">
|
<div id="partners">
|
||||||
<div className="centered wrapper">
|
<div className="centered wrapper">
|
||||||
<span id="heading">Our Partners</span>
|
<span id="heading">Our Partners</span>
|
||||||
<div id="list">
|
<div id="list">
|
||||||
{PARTNERS.filter(entry => entry.pinned).map(Partner)}
|
{PARTNERS.filter(entry => entry.pinned).map(entry =>
|
||||||
|
Partner(props.config, entry)
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user