diff --git a/code/frontend/src/App.js b/code/frontend/src/App.js index f1ff643..0541f9b 100644 --- a/code/frontend/src/App.js +++ b/code/frontend/src/App.js @@ -6,6 +6,7 @@ import Button from "./components/Button" import { faArchive, faArrowRight, faExclamationTriangle, faSearch, faTrash } from "@fortawesome/free-solid-svg-icons" import Input from "./components/Input" import InputWithIcon from "./components/InputWithIcon" +import Layout from "./components/Layout" export default function App() { @@ -13,27 +14,29 @@ export default function App() { return (
- -
+ +
- Ammirate: +
+ Ammirate: +
+
+ + + + +
+
+ E già che ci siamo, un Input, con e senza icona: +
+
+ +
-
- - - - -
-
- E già che ci siamo, un Input, con e senza icona: -
-
- -
-
-
+ +
) } diff --git a/code/frontend/src/components/Layout.js b/code/frontend/src/components/Layout.js new file mode 100644 index 0000000..4c3b8ab --- /dev/null +++ b/code/frontend/src/components/Layout.js @@ -0,0 +1,16 @@ +import React from "react" +import Style from "./Layout.module.css" +import classNames from "classnames" +import Sidebar from "./Sidebar" + + +export default function Layout({ children, className, ...props }) { + return ( +
+ +
+ {children} +
+
+ ) +} diff --git a/code/frontend/src/components/Layout.module.css b/code/frontend/src/components/Layout.module.css new file mode 100644 index 0000000..78199c0 --- /dev/null +++ b/code/frontend/src/components/Layout.module.css @@ -0,0 +1,21 @@ +.Layout { + width: 100%; + height: 100%; + + display: grid; + + grid-template-areas: + "a b" + ; + grid-template-columns: 250px 1fr; + + grid-gap: 10px; +} + +.LayoutSidebar { + grid-area: a; +} + +.LayoutContent { + grid-area: b; +} diff --git a/code/frontend/src/components/Sidebar.js b/code/frontend/src/components/Sidebar.js new file mode 100644 index 0000000..413d619 --- /dev/null +++ b/code/frontend/src/components/Sidebar.js @@ -0,0 +1,12 @@ +import React from "react" +import Style from "./Sidebar.module.css" +import classNames from "classnames" + + +export default function Sidebar({ children, className, ...props }) { + return ( +
+ {children} +
+ ) +} diff --git a/code/frontend/src/components/Sidebar.module.css b/code/frontend/src/components/Sidebar.module.css new file mode 100644 index 0000000..9676496 --- /dev/null +++ b/code/frontend/src/components/Sidebar.module.css @@ -0,0 +1,9 @@ +.Sidebar { + display: flex; + flex-direction: column; + width: 100%; + height: 100%; + + background-color: var(--bg-light); + border-radius: 25px; +}