-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWidgets.js
37 lines (30 loc) · 1.1 KB
/
Widgets.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
import React from 'react';
import "./Widgets.css";
import InfoIcon from "@material-ui/icons/Info";
import FiberManualRecordIcon from "@material-ui/icons/FiberManualRecord";
function Widgets() {
const newsArticle = (heading, subtitle) => (
<div className="widgets__article">
<div className="widgets__articleLeft">
<FiberManualRecordIcon/>
</div>
<div className="widgets__articleRight">
<h4>{heading}</h4>
<p>{subtitle}</p>
</div>
</div>
);
return (
<div className="widgets">
<div className="widgets__header">
<h2>LinkedIn News</h2>
<InfoIcon />
</div>
{newsArticle("Tanya is back!","Top news- 20M readers")}
{newsArticle("Tesla hits new highs!","Cars & Auto- 60M readers")}
{newsArticle("Is Redux too good?","Code- 2M readers")}
{newsArticle("Bitcoin Breaks $222k","Crypto- 10M readers")}
</div>
)
}
export default Widgets;