Compare commits

...

2 commits

Author SHA1 Message Date
b3690093bf move things around 2024-05-04 02:43:52 +03:00
0636ba64d7 migrate style.css into index.css 2024-05-04 02:42:49 +03:00
5 changed files with 75 additions and 22 deletions

View file

@ -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;
}

View file

@ -1,6 +1,6 @@
import "./App.css"; import "./styles/App.css";
import Messages from "./Messages"; import Messages from "./components/Messages";
import TextField from "./TextField"; import TextField from "./components/TextField";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { io } from "socket.io-client"; import { io } from "socket.io-client";

View file

@ -1,6 +1,8 @@
import React from "react"; import React from 'react';
import ReactDOM from "react-dom/client"; import ReactDOM from 'react-dom/client';
import App from './components/App';
const root = ReactDOM.createRoot(document.getElementById("root")); import './styles/index.css';
import App from './App';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />); root.render(<App />);

View file

@ -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;
}