1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/code/frontend/src/App.js
2021-04-21 15:08:54 +02:00

42 lines
1.6 KiB
JavaScript

import {useState} from "react"
import classNames from "classnames"
import Style from "./App.module.css"
import BoxWithHeader from "./components/BoxWithHeader"
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() {
const [theme, ] = useState("ThemeDark");
return (
<div className={classNames(Style.App, theme)}>
<Layout>
<BoxWithHeader
header={"Sto provando i bottoni!"}
>
<div>
<div>
Ammirate:
</div>
<div>
<Button color={"Green"} icon={faArrowRight}>Verde</Button>
<Button color={"Grey"} icon={faArchive}>Grigio</Button>
<Button color={"Yellow"} icon={faExclamationTriangle}>Giallo</Button>
<Button color={"Red"} icon={faTrash}>Rosso</Button>
</div>
<div>
E già che ci siamo, un Input, con e senza icona:
</div>
<div>
<Input/> <InputWithIcon icon={faSearch}/>
</div>
</div>
</BoxWithHeader>
</Layout>
</div>
)
}