Skip to content

Commit ede0f65

Browse files
committed
add screenshot
1 parent 870378c commit ede0f65

File tree

4 files changed

+83
-78
lines changed

4 files changed

+83
-78
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
Desktop version of Github with Electron.
44

55

6-
![Coming Soon](https://media.giphy.com/media/3o72FkiKGMGauydfyg/giphy.gif)
6+
7+
## Screenshot
8+
9+
![screenshot](https://raw.githubusercontent.com/omidnikrah/electron-github/master/screenshot.png)

screenshot.png

757 KB
Loading

src/app/Root.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,37 @@ import { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inmemo
88
import Routes from './Routes';
99

1010
type Props = {
11-
store: any,
12-
history: {}
11+
store: any,
12+
history: {}
1313
};
1414

1515
const fragmentMatcher = new IntrospectionFragmentMatcher({
16-
introspectionQueryResultData: {
17-
__schema: {
18-
types: [], // no types provided
19-
},
20-
},
16+
introspectionQueryResultData: {
17+
__schema: {
18+
types: [] // no types provided
19+
}
20+
}
2121
});
2222

2323
const cache = new InMemoryCache({ fragmentMatcher });
2424

25-
const client = new ApolloClient({
26-
uri: 'https://api.github.com/graphql',
27-
headers: {
28-
Authorization: `bearer 4479095b399544c9ca9c8d80ff7d10f6fc364946`
29-
},
30-
cache,
31-
});
25+
const client = new ApolloClient({
26+
uri: 'https://api.github.com/graphql',
27+
headers: {
28+
Authorization: `bearer d02f91b990bf37b75caed8343f6ea7519eaadb62`
29+
},
30+
cache
31+
});
3232

3333
export default class Root extends Component<Props> {
34-
render() {
35-
const { history } = this.props;
36-
return (
37-
<ApolloProvider client={client}>
38-
<BrowserRouter>
39-
<Routes />
40-
</BrowserRouter>
41-
</ApolloProvider>
42-
);
43-
}
34+
render() {
35+
const { history } = this.props;
36+
return (
37+
<ApolloProvider client={client}>
38+
<BrowserRouter>
39+
<Routes />
40+
</BrowserRouter>
41+
</ApolloProvider>
42+
);
43+
}
4444
}

src/components/UserItem/styles.js

Lines changed: 55 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,59 @@
33
import styled from 'styled-components';
44

55
export default styled.div`
6-
width: 100%;
7-
padding: 20px;
8-
display: flex;
9-
margin: 0 auto;
10-
align-items: center;
11-
justify-content: space-between;
12-
background-color: #fff;
13-
margin-bottom: 10px;
14-
border-radius: 5px;
15-
box-shadow: 0 0 15px rgba(0,0,0,0.03);
16-
cursor: pointer;
17-
.user-info {
18-
display: flex;
19-
align-items: center;
20-
&--avatar {
21-
width: 50px;
22-
height: 50px;
23-
border-radius: 10rem;
24-
overflow: hidden;
25-
margin: 0;
26-
float: left;
27-
img {
28-
width: 100%;
29-
height: 100%;
30-
object-fit: cover;
31-
}
32-
}
33-
&--name {
34-
float: left;
35-
font-size: 15px;
36-
color: #444;
37-
margin-left: 20px;
38-
text-align: left;
39-
span {
40-
cursor: pointer;
41-
&:last-child {
42-
opacity: 0.4;
43-
}
44-
}
45-
}
46-
}
47-
.repositories-count {
48-
background-color: #ff5959;
49-
padding: 10px;
50-
border-radius: 10rem;
51-
color: #fff;
52-
font-size: 13px;
53-
line-height: 1;
54-
min-height: 35px;
55-
display: inline-block;
56-
min-width: 35px;
57-
cursor: pointer;
58-
}
6+
width: 100%;
7+
padding: 20px;
8+
display: flex;
9+
margin: 0 auto;
10+
align-items: center;
11+
justify-content: space-between;
12+
background-color: #fff;
13+
margin-bottom: 10px;
14+
border-radius: 5px;
15+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
16+
cursor: pointer;
17+
.user-info {
18+
display: flex;
19+
align-items: center;
20+
&--avatar {
21+
width: 50px;
22+
height: 50px;
23+
border-radius: 10rem;
24+
overflow: hidden;
25+
margin: 0;
26+
float: left;
27+
img {
28+
width: 100%;
29+
height: 100%;
30+
object-fit: cover;
31+
}
32+
}
33+
&--name {
34+
float: left;
35+
font-size: 15px;
36+
color: #444;
37+
margin-left: 20px;
38+
text-align: left;
39+
span {
40+
cursor: pointer;
41+
display: block;
42+
&:last-child {
43+
opacity: 0.4;
44+
font-size: 12px;
45+
}
46+
}
47+
}
48+
}
49+
.repositories-count {
50+
background-color: #ff5959;
51+
padding: 10px;
52+
border-radius: 10rem;
53+
color: #fff;
54+
font-size: 13px;
55+
line-height: 1;
56+
min-height: 35px;
57+
display: inline-block;
58+
min-width: 35px;
59+
cursor: pointer;
60+
}
5961
`;

0 commit comments

Comments
 (0)