Skip to content

Commit f8334c7

Browse files
chore: Removed inline styles (webpack#4005)
1 parent 09994d9 commit f8334c7

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

src/components/Sponsors/Sponsors.jsx

+6-11
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,18 @@ import WebpackIcon from '../../assets/icon-square-small.svg';
1010
import '../Sponsors/Sponsors.scss';
1111

1212
// Create and export the component
13-
export default props => {
13+
export default (props) => {
1414
return (
1515
<div className="sponsors">
1616
<Link
1717
className="sponsors__content"
18-
to="https://www.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship">
19-
<img src={ AGLogo } />
20-
<img src={ WebpackIcon } style={{ width: '100px' }} />
21-
<div style={{
22-
marginTop: '1em',
23-
fontSize: '2em',
24-
textAlign: 'center',
25-
color: '#535353'
26-
}}>
18+
to="https://www.ag-grid.com/?utm_source=webpack&utm_medium=banner&utm_campaign=sponsorship"
19+
>
20+
<img src={AGLogo} />
21+
<img className="sponsors__img__webpack" src={WebpackIcon} />
22+
<div className="sponsors__content-cont">
2723
ag-grid is proud to partner with webpack
2824
</div>
29-
3025
</Link>
3126
</div>
3227
);

src/components/Sponsors/Sponsors.scss

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
width: 250px;
88
margin-left: -250px;
99

10+
&__content-cont {
11+
margin-top: 1rem;
12+
font-size: 2em;
13+
text-align: center;
14+
color: #535353;
15+
}
1016
&__content {
1117
position: sticky;
1218
display: none;
@@ -29,4 +35,9 @@
2935
background-color: getColor(concrete);
3036
}
3137
}
38+
&__img {
39+
&__webpack {
40+
width: 100px;
41+
}
42+
}
3243
}

0 commit comments

Comments
 (0)