From 0636ba64d7f843b24ab7a0606299df1e5d6d39f5 Mon Sep 17 00:00:00 2001 From: deflax Date: Sat, 4 May 2024 02:42:49 +0300 Subject: [PATCH] migrate style.css into index.css --- rfront/public/style.css | 14 --------- rfront/src/index.css | 65 +++++++++++++++++++++++++++++++++++++++++ rfront/src/index.js | 10 ++++--- 3 files changed, 71 insertions(+), 18 deletions(-) delete mode 100644 rfront/public/style.css create mode 100644 rfront/src/index.css diff --git a/rfront/public/style.css b/rfront/public/style.css deleted file mode 100644 index ad5c070..0000000 --- a/rfront/public/style.css +++ /dev/null @@ -1,14 +0,0 @@ -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} - diff --git a/rfront/src/index.css b/rfront/src/index.css new file mode 100644 index 0000000..28205a4 --- /dev/null +++ b/rfront/src/index.css @@ -0,0 +1,65 @@ +* { + box-sizing: border-box; +} + +html { + font-family: sans-serif; +} + +body { + margin: 0; + background-color: #383838; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +label { + font-weight: bold; + margin-bottom: 0.5rem; + display: block; + font-size: 1.25rem; +} + +input { + font: inherit; + padding: 1rem; + border: 1px solid #ccc; + font-size: 1.5rem; + display: block; + width: 100%; + margin-bottom: 1rem; + border-radius: 30px; + text-align: center; + color: #242424; +} + +input:focus { + outline: none; + border-color: #6e0040; + background-color: #ffdff2; +} + +button { + font: inherit; + background-color: #6e0040; + color: white; + border: 1px solid #6e0040; + border-radius: 30px; + padding: 0.5rem 1.5rem; + cursor: pointer; + font-size: 2rem; +} + +button:hover, +button:active { + background-color: #b80e71; + border-color: #b80e71; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + monospace; +} \ No newline at end of file diff --git a/rfront/src/index.js b/rfront/src/index.js index ad010a7..c748bbc 100644 --- a/rfront/src/index.js +++ b/rfront/src/index.js @@ -1,6 +1,8 @@ -import React from "react"; -import ReactDOM from "react-dom/client"; +import React from 'react'; +import ReactDOM from 'react-dom/client'; + +import './index.css'; import App from './components/App'; -const root = ReactDOM.createRoot(document.getElementById("root")); -root.render(); +const root = ReactDOM.createRoot(document.getElementById('root')); +root.render(); \ No newline at end of file