diff --git a/solutions/day-05/map-list-key/src/App.css b/solutions/day-05/map-list-key/src/App.css index 74b5e05..776230f 100644 --- a/solutions/day-05/map-list-key/src/App.css +++ b/solutions/day-05/map-list-key/src/App.css @@ -1,38 +1,34 @@ -.App { - text-align: center; +* { + margin: 0; + padding: 0; } -.App-logo { - height: 40vmin; - pointer-events: none; +.container ul { + list-style: none; } -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } +.box { + width: 100px; + height: 100px; } - -.App-header { - background-color: #282c34; - min-height: 100vh; +.container { display: flex; flex-direction: column; - align-items: center; justify-content: center; - font-size: calc(10px + 2vmin); - color: white; + align-items: center; } -.App-link { - color: #61dafb; +.numbersContainer { + max-width: 800px; } -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } +.numbersContainer ul { + display: flex; + flex-wrap: wrap; + margin: 1px 1px; } + +.numbersContainer ul li { + display: flex; + margin: 1px; +} \ No newline at end of file diff --git a/solutions/day-05/map-list-key/src/App.js b/solutions/day-05/map-list-key/src/App.js index 2b970a8..2b9b51e 100644 --- a/solutions/day-05/map-list-key/src/App.js +++ b/solutions/day-05/map-list-key/src/App.js @@ -1,10 +1,5 @@ import React from "react"; - -const Numbers = ({ numbers }) => { - // modifying array to array of li JSX - const list = numbers.map((num) =>
  • {num}
  • ); - return list; -}; +import "./App.css"; const App = () => { const numbers = [ @@ -14,10 +9,25 @@ const App = () => { return (
    -
    -

    Numbers List

    +

    30 Day os React

    +

    Number Generator

    +
      - + {/* */} + {numbers.map((number) => + number % 2 === 0 ? ( +
    • + {number} +
    • + ) : ( +
    • + {number} +
    • + ) + )}