Skip to content

Commit a682313

Browse files
committed
Add missing file
1 parent 884df78 commit a682313

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.babelrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"presets": [
3+
[
4+
"next/babel",
5+
{
6+
"styled-jsx": {
7+
"plugins": ["styled-jsx-plugin-postcss"]
8+
}
9+
}
10+
]
11+
]
12+
}

src/navigation/Navbar.tsx

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React, { ReactNode } from 'react';
2+
3+
type INavbarProps = {
4+
children: ReactNode;
5+
};
6+
7+
const Navbar = (props: INavbarProps) => (
8+
<ul className="navbar flex flex-wrap text-xl">
9+
{props.children}
10+
11+
<style jsx>
12+
{`
13+
.navbar :global(a) {
14+
@apply text-gray-700;
15+
}
16+
17+
.navbar :global(a:hover) {
18+
@apply no-underline text-gray-900;
19+
}
20+
`}
21+
</style>
22+
</ul>
23+
);
24+
25+
export { Navbar };

0 commit comments

Comments
 (0)