forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavBar.js
More file actions
81 lines (67 loc) · 1.59 KB
/
Copy pathNavBar.js
File metadata and controls
81 lines (67 loc) · 1.59 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import React from "react";
import styled from "@emotion/styled";
import { BrandLogo } from "./BrandLogo";
const Navbar = styled.nav`
list-style: none;
margin: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0px 30px;
background: white;
height: 60px;
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
0 2px 6px 2px rgba(60, 64, 67, 0.15);
@media (max-width: 459px) {
padding: 0px 10px;
}
@media print {
box-shadow: none;
justify-content: center;
align-items: center;
}
ul li {
display: inline-block;
}
li.btn-add {
float: right;
@media only screen and (max-width: 460px) {
display: none;
}
}
.btn-add a {
background-color: #4caf50;
color: #fff;
text-decoration: none;
padding: 5px 10px;
border-radius: 4px;
}
`;
const NewButton = styled.a`
text-decoration: none;
display: inline-block;
padding: 8px 18px;
border-radius: 4px;
font-weight: 600;
line-height: 1;
transition: 0.2s all ease;
background: #02b3e4;
box-shadow: 8px 10px 20px 0 rgba(46, 61, 73, 0.15);
color: white;
text-shadow: 0 1px 3px #86888e;
@media print{
display: none;
}
&:hover {
box-shadow: 2px 4px 8px 0 rgba(46, 61, 73, 0.2);
background-color: #02b7e9;
}
`;
export default () => (
<Navbar>
<BrandLogo />
<NewButton href="https://github.com/devsonket/devsonket.github.io#%E0%A6%95%E0%A6%BF%E0%A6%AD%E0%A6%BE%E0%A6%AC%E0%A7%87-%E0%A6%95%E0%A6%BE%E0%A6%9C-%E0%A6%95%E0%A6%B0%E0%A7%87">
+ কন্ট্রিবিউট করুন
</NewButton>
</Navbar>
);