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 (
|
||||
<div id="pageNotFoundPage" className="centered">
|
||||
<div id="mural">
|
||||
<img className="muralPolygon1" src="img/404-mural/polygon1.svg" />
|
||||
<img className="muralPolygon2" src="img/404-mural/polygon2.svg" />
|
||||
<img className="muralPolygon3" src="img/404-mural/polygon3.svg" />
|
||||
<img className="muralPolygon4" src="img/404-mural/polygon4.svg" />
|
||||
<img className="muralPolygon5" src="img/404-mural/polygon5.svg" />
|
||||
<img
|
||||
className="muralPolygon1"
|
||||
src={`${props.config.baseUrl}img/404-mural/polygon1.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 id="message">
|
||||
<div className="title">404</div>
|
||||
|
@ -63,7 +63,7 @@ const COMMUNICATION_CHANNELS = [
|
||||
}
|
||||
];
|
||||
|
||||
const Portrait = props => {
|
||||
const Portrait = (config, props) => {
|
||||
return (
|
||||
<a
|
||||
href={props.link}
|
||||
@ -72,7 +72,7 @@ const Portrait = props => {
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img className="portrait" src={props.image} />
|
||||
<img className="portrait" src={`${config.baseUrl}${props.image}`} />
|
||||
<div className="overlay">
|
||||
<span>{props.firstName}</span>
|
||||
<span>{props.lastName}</span>
|
||||
@ -81,7 +81,7 @@ const Portrait = props => {
|
||||
);
|
||||
};
|
||||
|
||||
const CommunicationChannel = props => {
|
||||
const CommunicationChannel = (config, props) => {
|
||||
return (
|
||||
<a
|
||||
className="option"
|
||||
@ -89,13 +89,13 @@ const CommunicationChannel = props => {
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img className="icon" src={props.icon} />
|
||||
<img className="icon" src={`${config.baseUrl}${props.icon}`} />
|
||||
{props.description}
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = () => {
|
||||
module.exports = props => {
|
||||
const pinnedMembers = TEAM.filter(member => member.pinned);
|
||||
const membersCeilCount = Math.ceil(pinnedMembers.length / 2);
|
||||
const membersInFistColumn = pinnedMembers.slice(0, membersCeilCount);
|
||||
@ -104,15 +104,19 @@ module.exports = () => {
|
||||
return (
|
||||
<div id="contactPage" className="centered">
|
||||
<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">
|
||||
{membersInSecondColumn.map(Portrait)}
|
||||
{membersInSecondColumn.map(entry => Portrait(props.config, entry))}
|
||||
</div>
|
||||
</div>
|
||||
<div id="message">
|
||||
<div className="title">Talk to us</div>
|
||||
<div className="communicationOptions">
|
||||
{COMMUNICATION_CHANNELS.map(CommunicationChannel)}
|
||||
{COMMUNICATION_CHANNELS.map(entry =>
|
||||
CommunicationChannel(props.config, entry)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -43,22 +43,22 @@ const PARTNERS = [
|
||||
}
|
||||
];
|
||||
|
||||
const Feature = props => (
|
||||
const Feature = (config, props) => (
|
||||
<div className="feature" key={props.title}>
|
||||
<img src={props.image} />
|
||||
<img src={`${config.baseUrl}${props.image}`} />
|
||||
<h1>{props.title}</h1>
|
||||
<p>{props.content}</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
const Partner = props => (
|
||||
const Partner = (config, props) => (
|
||||
<a
|
||||
href={props.link}
|
||||
title={props.name}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img src={props.image} />
|
||||
<img src={`${config.baseUrl}${props.image}`} />
|
||||
</a>
|
||||
);
|
||||
|
||||
@ -83,13 +83,15 @@ module.exports = props => {
|
||||
</div>
|
||||
</div>
|
||||
<div id="features" className="centered">
|
||||
{FEATURES.map(Feature)}
|
||||
{FEATURES.map(entry => Feature(props.config, entry))}
|
||||
</div>
|
||||
<div id="partners">
|
||||
<div className="centered wrapper">
|
||||
<span id="heading">Our Partners</span>
|
||||
<div id="list">
|
||||
{PARTNERS.filter(entry => entry.pinned).map(Partner)}
|
||||
{PARTNERS.filter(entry => entry.pinned).map(entry =>
|
||||
Partner(props.config, entry)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user