2017-05-16 13:34:00 +02:00
|
|
|
|
|
|
|
import React from 'react'
|
2017-07-04 12:43:55 +02:00
|
|
|
import {connect} from 'react-redux'
|
2017-05-16 13:34:00 +02:00
|
|
|
|
|
|
|
import PageHeader from 'components/page-header'
|
|
|
|
|
|
|
|
import Lookup from 'components/lookup'
|
2017-06-28 14:02:54 +02:00
|
|
|
import LookupSummary from 'components/lookup/results-summary'
|
2017-05-16 13:34:00 +02:00
|
|
|
|
2018-06-26 17:12:16 +02:00
|
|
|
import Content from 'components/content'
|
|
|
|
|
2017-07-04 12:43:55 +02:00
|
|
|
class LookupView extends React.Component {
|
|
|
|
render() {
|
|
|
|
if (this.props.enabled == false) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="lookup-container">
|
|
|
|
<div className="col-md-8">
|
|
|
|
<Lookup />
|
|
|
|
</div>
|
|
|
|
<div className="col-md-4">
|
|
|
|
<LookupSummary />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const LookupPage = connect(
|
|
|
|
(state) => {
|
|
|
|
return {
|
|
|
|
enabled: state.config.prefix_lookup_enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)(LookupView);
|
|
|
|
|
|
|
|
|
2017-05-16 13:34:00 +02:00
|
|
|
export default class Welcome extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div className="welcome-page">
|
|
|
|
<PageHeader></PageHeader>
|
|
|
|
|
|
|
|
<div className="jumbotron">
|
2018-06-26 17:12:16 +02:00
|
|
|
<h1><Content id="welcome.title">Welcome to Alice!</Content></h1>
|
|
|
|
<p><Content id="welcome.tagline">Your friendly bird looking glass</Content></p>
|
2017-05-16 13:34:00 +02:00
|
|
|
</div>
|
|
|
|
|
2017-07-04 12:43:55 +02:00
|
|
|
<LookupPage />
|
|
|
|
|
2017-05-16 13:34:00 +02:00
|
|
|
</div>
|
2017-07-04 12:43:55 +02:00
|
|
|
);
|
2017-05-16 13:34:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|