diff --git a/code/frontend/src/App.js b/code/frontend/src/App.js index 9fda99e..593efa9 100644 --- a/code/frontend/src/App.js +++ b/code/frontend/src/App.js @@ -1,14 +1,22 @@ import {useState} from "react" import classNames from "classnames" import Style from "./App.module.css" +import Box from "./components/Box" export default function App() { - const [theme, setTheme] = useState("theme-dark"); + const [theme, ] = useState("theme-dark"); return (
- Ciao mondo! + +
+ Ciao +
+
+ mondo! +
+
) } diff --git a/code/frontend/src/components/Box.js b/code/frontend/src/components/Box.js new file mode 100644 index 0000000..f7fe631 --- /dev/null +++ b/code/frontend/src/components/Box.js @@ -0,0 +1,15 @@ +import React from "react" +import Style from "./Box.module.css" +import classNames from "classnames" + + +export default function Box({ children, className, ...props }) { + return ( +
+ {children} +
+ ) +} diff --git a/code/frontend/src/components/Box.module.css b/code/frontend/src/components/Box.module.css new file mode 100644 index 0000000..81f8966 --- /dev/null +++ b/code/frontend/src/components/Box.module.css @@ -0,0 +1,7 @@ +.Box { + display: flex; + + background-color: var(--bg-light); + border-radius: 999999px; +} +