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

32 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-04-20 22:23:35 +00:00
import {useState} from "react"
import classNames from "classnames"
import Style from "./App.module.css"
2021-04-20 23:03:59 +00:00
import BoxWithHeader from "./components/BoxWithHeader"
import Button from "./components/Button"
import { faArchive, faArrowRight, faExclamationTriangle, faTrash } from "@fortawesome/free-solid-svg-icons"
2021-04-20 22:09:13 +00:00
2021-04-20 22:07:39 +00:00
2021-04-20 22:23:35 +00:00
export default function App() {
2021-04-20 22:37:25 +00:00
const [theme, ] = useState("ThemeDark");
2021-04-20 22:23:35 +00:00
2021-04-20 22:09:13 +00:00
return (
2021-04-20 23:03:59 +00:00
<div className={classNames(Style.App, theme)}>
<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>
</BoxWithHeader>
2021-04-20 22:09:13 +00:00
</div>
)
2021-04-20 22:07:39 +00:00
}