diff --git a/src/components/App/App.css b/src/components/App/App.css index 4931613..e927e6e 100644 --- a/src/components/App/App.css +++ b/src/components/App/App.css @@ -1,3 +1,5 @@ .App { - text-align: center; + max-width: 80vw; + max-height: 100vh; + margin: 0 auto; } diff --git a/src/components/App/App.tsx b/src/components/App/App.tsx index bb03cae..4a1cf22 100644 --- a/src/components/App/App.tsx +++ b/src/components/App/App.tsx @@ -1,6 +1,7 @@ import React from 'react'; import Logo from '../Logo/Logo'; +import Board from '../Board/Board'; import './App.css'; @@ -8,6 +9,7 @@ function App() { return (
+
); } diff --git a/src/components/Board/Board.css b/src/components/Board/Board.css index e69de29..6cbc580 100644 --- a/src/components/Board/Board.css +++ b/src/components/Board/Board.css @@ -0,0 +1,24 @@ +.Board { + display: grid; + justify-content: center; + grid-template-columns: repeat(8, 8vw); + column-gap: 15px; + row-gap: 15px; + user-select: none; + text-align: center; +} + +.Letter { + font-weight: bold; + font-size: larger; + padding: 20px; + background: ghostwhite; + border-radius: 25px; + border-color: #E5E5EA; + color: brown; + cursor: pointer; +} + +.Letter:hover { + background: #e4e4ff; +} diff --git a/src/components/Board/Board.tsx b/src/components/Board/Board.tsx index e69de29..2fc12ca 100644 --- a/src/components/Board/Board.tsx +++ b/src/components/Board/Board.tsx @@ -0,0 +1,46 @@ +import React, { Component } from 'react'; + +import './Board.css'; + +class Board extends Component { + + genSquares() { + let squares = []; + for (let i = 0; i < 64; i++) { + let x = String.fromCharCode(i % 8 + 65); + let y = String.fromCharCode(i / 8 + 49); + let letter = x + y; + squares.push( +
+ {letter} +
+ ); + } + return squares; + } + + onMouseDown() { + console.log("down") + } + + onMouseMove() { + console.log("move") + } + + render() { + return ( +
+ {this.genSquares()} +
+ ); + } +} + +export default Board; diff --git a/src/components/Logo/Logo.css b/src/components/Logo/Logo.css index a7f19c4..9d57e89 100644 --- a/src/components/Logo/Logo.css +++ b/src/components/Logo/Logo.css @@ -1,4 +1,8 @@ .Logo { - background: red; - width: 20vw; + padding: 40px 0; +} + +.Logo-wide { + width: 50%; + margin-left: 25%; } diff --git a/src/components/Logo/Logo.tsx b/src/components/Logo/Logo.tsx index 171b0f6..0779b1d 100644 --- a/src/components/Logo/Logo.tsx +++ b/src/components/Logo/Logo.tsx @@ -1,11 +1,12 @@ import React from 'react'; -import '../../styles/Logo.css'; +import Wide from './crosski_wide.svg' +import './Logo.css'; function Logo() { return (
- asdsdasdadsads + Logo
); } diff --git a/src/components/Logo/crosski_square.svg b/src/components/Logo/crosski_square.svg new file mode 100644 index 0000000..4759860 --- /dev/null +++ b/src/components/Logo/crosski_square.svg @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/src/components/Logo/crosski_wide.svg b/src/components/Logo/crosski_wide.svg new file mode 100644 index 0000000..958d33b --- /dev/null +++ b/src/components/Logo/crosski_wide.svg @@ -0,0 +1,40 @@ + + + + + + background + + + + Layer 1 + + + + + + + + + + +