diff --git a/lab2/src/components/App/App.css b/lab2/src/components/App/App.css index 61e3b2e..8a4bc3d 100644 --- a/lab2/src/components/App/App.css +++ b/lab2/src/components/App/App.css @@ -1,31 +1,27 @@ -#root { - background: whitesmoke; -} - .App { - padding: 25px 15px 25px 15px; - border: 2px solid gray; - min-height: 250px; + padding: 25px 15px 25px 15px; + border: 2px solid gray; + min-height: 250px; } .App-header { - background-color: #222; - height: 150px; - padding: 20px; - color: white; - font-size: 42px; - text-align: center; + background-color: #222; + height: 150px; + padding: 20px; + color: white; + font-size: 42px; + text-align: center; } .App-header-description { - font-size: 18px; + font-size: 18px; } @keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } } diff --git a/lab2/src/components/BackgroundColorPicker/BackgroundColorPicker.js b/lab2/src/components/BackgroundColorPicker/BackgroundColorPicker.js index 958d31b..31606c4 100644 --- a/lab2/src/components/BackgroundColorPicker/BackgroundColorPicker.js +++ b/lab2/src/components/BackgroundColorPicker/BackgroundColorPicker.js @@ -1,40 +1,20 @@ import React, { Component } from "react"; +import colors from "./colors"; import "./BackgroundColorPicker.css"; -const BackgroundColorPicker = ({ onChange }) => { - const colors = [ - { - hex: "lavender", - name: "lavender", - }, - { - hex: "gold", - name: "gold", - }, - { - hex: "#f48c42", - name: "đ", - }, - { - hex: "rebeccapurple", - name: "Beautiful purple", - }, - ]; - - return ( -