forked from zonayedpca/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.js
More file actions
54 lines (50 loc) · 1 KB
/
Copy pathheader.js
File metadata and controls
54 lines (50 loc) · 1 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import React from "react"
import styled from "@emotion/styled"
import NavBar from "./navbar"
const HeaderArea = styled.header`
background-color: #f8f9fa;
.contributor {
list-style: none;
margin-bottom: 15px;
}
.contributor p {
margin-bottom: 10px;
font-weight: 900;
}
.contributor li {
display: inline-block;
position: relative;
margin: 0 5px;
}
.contributor-profile span {
position: absolute;
bottom: 5px;
right: -2px;
font-weight: bold;
background-color: #4caf50;
color: #fff;
font-size: 11px;
width: 15px;
height: 15px;
line-height: 15px;
border-radius: 40px;
}
.contributor-profile img {
width: 40px;
border-radius: 40px;
border: 3px solid #ffc107;
}
`
const HeaderEl = styled.div`
width: 940px;
margin: 80px auto 0 auto;
@media only screen and (max-width: 940px) {
width: 100%;
}
`
export default ({ children }) => (
<HeaderArea>
<NavBar />
<HeaderEl>{children}</HeaderEl>
</HeaderArea>
)