-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathMain.js
More file actions
40 lines (37 loc) · 1.46 KB
/
Main.js
File metadata and controls
40 lines (37 loc) · 1.46 KB
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
import React, { Fragment } from 'react';
import { Link } from 'gatsby';
const Main = (props) => {
const titleMetaData = props.titleMetaData;
if(!titleMetaData) return null
return(
<Fragment>
<div className="container main hero-content-main">
<div className="col-12">
{
titleMetaData.map((title) =>
<div className="container content-main">
<div className="row">
<div className="col-12">
<h3>{title.labelTitle}</h3>
</div>
</div>
<div className="row">
<div className="col-sm">
<ul>
{title.topics.map((topics) =>
<li>
<Link to={topics.url} title={topics.title}>{topics.title}</Link>
</li>
)}
</ul>
</div>
</div>
</div>
)
}
</div>
</div>
</Fragment>
);
}
export default Main;