|
1 | 1 | import React from "react"; |
2 | | -import { Navbar, Badge } from "react-bootstrap"; |
| 2 | +import { Navbar, Badge, Container } from "react-bootstrap"; |
| 3 | +import pkgJson from "../../package.json"; |
3 | 4 | import type { FC } from "react"; |
4 | 5 | import "@/css/header.css"; |
5 | | -import pkgJson from "../../package.json"; |
6 | 6 |
|
7 | 7 | export const Header: FC = () => ( |
8 | 8 | <Navbar bg="light"> |
9 | | - <Navbar.Brand> |
10 | | - TypeScript ESLint Demo |
11 | | - <Badge variant="secondary" className="version-badge">v{pkgJson.version}</Badge> |
12 | | - </Navbar.Brand> |
| 9 | + <Container> |
| 10 | + <Navbar.Brand> |
| 11 | + TypeScript ESLint Demo |
| 12 | + <Badge variant="secondary" className="version-badge"> |
| 13 | + v{pkgJson.version} |
| 14 | + </Badge> |
| 15 | + </Navbar.Brand> |
13 | 16 |
|
14 | | - <Navbar.Collapse className="justify-content-end"> |
15 | | - <Navbar.Text> |
16 | | - <a |
17 | | - className="github-button" |
18 | | - href="https://github.com/yeonjuan/typescript-eslint-demo" |
19 | | - data-icon="octicon-star" |
20 | | - aria-label="Star yeonjuan/typescript-eslint-demo on GitHub" |
21 | | - > |
22 | | - Star |
23 | | - </a> |
24 | | - </Navbar.Text> |
25 | | - <Navbar.Text> |
26 | | - <a |
27 | | - className="github-button" |
28 | | - href="https://github.com/yeonjuan/typescript-eslint-demo/issues" |
29 | | - data-icon="octicon-issue-opened" |
30 | | - aria-label="Issue yeonjuan/typescript-eslint-demo on GitHub" |
31 | | - > |
32 | | - Issue |
33 | | - </a> |
34 | | - </Navbar.Text> |
35 | | - <ul className="version-list"> |
36 | | - <li> |
37 | | - <Navbar.Text className="version"> |
38 | | - TypeScript-ESLint v |
39 | | - {pkgJson.dependencies["@typescript-eslint/eslint-plugin"]} |
40 | | - </Navbar.Text> |
41 | | - </li> |
42 | | - <li> |
43 | | - <Navbar.Text className="version"> |
44 | | - TypeScript v{pkgJson.dependencies["typescript"]} |
45 | | - </Navbar.Text> |
46 | | - </li> |
47 | | - </ul> |
48 | | - </Navbar.Collapse> |
| 17 | + <Navbar.Collapse className="justify-content-end"> |
| 18 | + <Navbar.Text className="gh-btn"> |
| 19 | + <a |
| 20 | + className="github-button" |
| 21 | + href="https://github.com/yeonjuan/typescript-eslint-demo" |
| 22 | + data-icon="octicon-star" |
| 23 | + aria-label="Star yeonjuan/typescript-eslint-demo on GitHub" |
| 24 | + > |
| 25 | + Star |
| 26 | + </a> |
| 27 | + </Navbar.Text> |
| 28 | + <Navbar.Text className="gh-btn"> |
| 29 | + <a |
| 30 | + className="github-button" |
| 31 | + href="https://github.com/yeonjuan/typescript-eslint-demo/issues" |
| 32 | + data-icon="octicon-issue-opened" |
| 33 | + aria-label="Issue yeonjuan/typescript-eslint-demo on GitHub" |
| 34 | + > |
| 35 | + Issue |
| 36 | + </a> |
| 37 | + </Navbar.Text> |
| 38 | + <ul className="version-list"> |
| 39 | + <li> |
| 40 | + <Navbar.Text className="version"> |
| 41 | + TypeScript-ESLint v |
| 42 | + {pkgJson.dependencies["@typescript-eslint/eslint-plugin"]} |
| 43 | + </Navbar.Text> |
| 44 | + </li> |
| 45 | + <li> |
| 46 | + <Navbar.Text className="version"> |
| 47 | + TypeScript v{pkgJson.dependencies["typescript"]} |
| 48 | + </Navbar.Text> |
| 49 | + </li> |
| 50 | + </ul> |
| 51 | + </Navbar.Collapse> |
| 52 | + </Container> |
49 | 53 | </Navbar> |
50 | 54 | ); |
0 commit comments