Skip to content

Commit 1b92894

Browse files
committed
add github icon :octocat:
1 parent 0f5ceda commit 1b92894

File tree

6 files changed

+22
-1
lines changed

6 files changed

+22
-1
lines changed

src/assets/github-icon.png

3.64 KB
Loading

src/components/app/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import Cards from '../cards/Cards';
4+
import GitHub from '../github/GitHub';
45
import styles from './App.scss';
56

67
const App = ({ title }) => (
78
<div className={styles.container}>
9+
<GitHub />
810
<h1>{title}</h1>
911
<Cards />
1012
</div>

src/components/app/App.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ $screensize-range: 1020;
1212
margin: 0 auto;
1313

1414
& > h1 {
15-
text-align: center;
1615
@include responsive-font($min-fontsize, $fontsize-range, $min-screensize, $screensize-range);
1716
background: $darkblue;
1817
color: $somegray;

src/components/github/Github.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React from 'react';
2+
import styles from './Github.scss';
3+
4+
const GitHub = () => (
5+
<a className={styles.github} href="https://github.com/carloluis/webpack-demo" />
6+
);
7+
8+
export default GitHub;

src/components/github/Github.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@import '~styles/palette.scss';
2+
3+
.github {
4+
background: url(../../assets/github-icon.png) no-repeat center/100%;
5+
display: inline-block;
6+
position: fixed;
7+
top: -4px;
8+
right: -4px;
9+
width: 64px;
10+
height: 64px;
11+
}

src/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ body {
44
background: $darkblue;
55
color: $somegray;
66
font-family: Arial, Helvetica, sans-serif;
7+
text-align: center;
78
}
89

910
.sample-rule {

0 commit comments

Comments
 (0)