diff --git a/src/App.tsx b/src/App.tsx index 8d53a5c..ff61bdd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,24 +1,11 @@ import React from "react"; -import logo from "./assets/images/logo.svg"; -import "./assets/styles/App.css"; +import Header from "./components/Header"; +import "./assets/styles/reset.css"; function App() { return ( -
-
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - -
+
+
); } diff --git a/src/assets/styles/App.css b/src/assets/styles/App.css deleted file mode 100644 index 74b5e05..0000000 --- a/src/assets/styles/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/src/assets/styles/Header.css b/src/assets/styles/Header.css new file mode 100644 index 0000000..bf93fbc --- /dev/null +++ b/src/assets/styles/Header.css @@ -0,0 +1,34 @@ +.wrapper { + max-width: 1140px; + padding-left: 1rem; + padding-right: 1rem; + margin-left: auto; + margin-right: auto; +} + +.brand { + font-weight: bold; + font-size: 20px; + text-decoration: none; + color: #222; + padding: 1.5rem 1rem; +} + +.site-header { + position: relative; + background-color: #def7ff; +} + +.site-header__wrapper { + padding-top: 1rem; + padding-bottom: 1rem; +} +@media (min-width: 600px) { + .site-header__wrapper { + display: flex; + justify-content: space-between; + align-items: center; + padding-top: 0; + padding-bottom: 0; + } +} diff --git a/src/assets/styles/index.css b/src/assets/styles/index.css index f5f17d7..ce5fda7 100644 --- a/src/assets/styles/index.css +++ b/src/assets/styles/index.css @@ -6,8 +6,3 @@ body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", - monospace; -} diff --git a/src/assets/styles/reset.css b/src/assets/styles/reset.css new file mode 100644 index 0000000..45a05ec --- /dev/null +++ b/src/assets/styles/reset.css @@ -0,0 +1,129 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, +body, +div, +span, +applet, +object, +iframe, +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +big, +cite, +code, +del, +dfn, +em, +img, +ins, +kbd, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +b, +u, +i, +center, +dl, +dt, +dd, +ol, +ul, +li, +fieldset, +form, +label, +legend, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td, +article, +aside, +canvas, +details, +embed, +figure, +figcaption, +footer, +header, +hgroup, +menu, +nav, +output, +ruby, +section, +summary, +time, +mark, +audio, +video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +menu, +nav, +section { + display: block; +} +body { + line-height: 1; +} +ol, +ul { + list-style: none; +} +blockquote, +q { + quotes: none; +} +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ""; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/src/components/Header.tsx b/src/components/Header.tsx new file mode 100644 index 0000000..eac0924 --- /dev/null +++ b/src/components/Header.tsx @@ -0,0 +1,16 @@ +import React from "react"; +import "./../assets/styles/Header.css"; + +function Header() { + return ( +
+
+ + 都道府県別の総人口推移グラフ + +
+
+ ); +} + +export default Header;