-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contact.js
42 lines (40 loc) 路 1.24 KB
/
Contact.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react';
import { IntlProvider, FormattedMessage } from 'react-intl';
class Contact extends React.Component {
render() {
const locale = this.props.match.params.lang === 'ja' ? 'ja' : 'en';
const messages = require(`./locale/${locale}.json`);
return (
<IntlProvider locale={locale} messages={messages}>
<section id="contact" className="main">
<h2>
<a href="#contact">
<i className="fa fa-envelope-o"></i><FormattedMessage id="contact"/>
</a>
</h2>
<table>
<tbody>
<tr>
<th><FormattedMessage id="name"/></th>
<td><FormattedMessage id="ikko.hamamura"/></td>
</tr>
<tr>
<th><FormattedMessage id="email"/></th>
<td> hamamura[*atmark*]<wbr/>nucleng<wbr/>.kyoto-u.ac.jp</td>
</tr>
<tr>
<th><FormattedMessage id="office"/></th>
<td><FormattedMessage id="address"/></td>
</tr>
<tr>
<th><FormattedMessage id="phone"/></th>
<td><FormattedMessage id="phone.number"/></td>
</tr>
</tbody>
</table>
</section>
</IntlProvider>
);
}
}
export default Contact;