From 3a9701411cef9b70116f8a32a53de8b90e6d2e03 Mon Sep 17 00:00:00 2001 From: djmil Date: Mon, 31 Jul 2023 13:35:46 +0200 Subject: [PATCH] Component 'square' --- src/App.js | 21 ++++----------------- src/index.css | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/App.js b/src/App.js index 3784575..71eede6 100644 --- a/src/App.js +++ b/src/App.js @@ -1,24 +1,11 @@ -import logo from './logo.svg'; import './App.css'; function App() { return ( -
-
- logo -

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

- - Learn React - -
-
+ <> + + + ); } diff --git a/src/index.css b/src/index.css index ec2585e..37c2575 100644 --- a/src/index.css +++ b/src/index.css @@ -11,3 +11,18 @@ code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } + +.square { + background: #fff; + border: 1px solid #999; + float: left; + font-size: 24px; + font-weight: bold; + line-height: 34px; + height: 34px; + margin-right: -1px; + margin-top: -1px; + padding: 0; + text-align: center; + width: 34px; +} \ No newline at end of file