add initial layout of new assessment manual page

This commit is contained in:
WindowsCrashed
2023-08-05 00:43:15 -03:00
parent d596937598
commit 0d0aaf4f7b
2 changed files with 35 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import { Controller, useForm } from "react-hook-form";
import { Axis, Query } from "../../__generated__/graphql-schema";
import { Button, Card, Input, Navigator } from '../../components';
import { SideBar } from "./components/SideBar";
type NewAssessementManualForm = {
axisWeights: Record<string, any>
@@ -48,9 +49,22 @@ export const NewAssessementManual = () => {
const selectedAxis: Axis[] = axes.filter((axis) => subjectsIds.includes(axis.id))
return (
<div></div>
<>
<Navigator home />
<div className="grid grid-cols-5 gap-4 mt-4 mx-6">
<SideBar border="r"> {/*bgColor="bg-red-700"*/}
Filters
</SideBar>
<div className="col-span-3"> {/*bg-blue-500*/}
Questions
</div>
<SideBar border="l"> {/*bgColor="bg-yellow-400"*/}
Selected Questions
</SideBar>
</div>
</>
// <>
// <Navigator home />
//
// <div className="m-auto grid gap-4 mt-4 mx-6">
// <Card title="Detalhes">
// <div className="flex flex-col">

View File

@@ -0,0 +1,19 @@
import React, { FC, PropsWithChildren } from "react";
interface Props extends PropsWithChildren {
bgColor?: string;
border?: 'l' | 'r'
}
export const SideBar: FC<Props> = ({ bgColor, border, children }) => {
return (
<div className={`
${border ? `border-${border}-2 ` : ''}
border-gray-500 ${bgColor ?? ""}
`}>
<div className="mx-2">
{children}
</div>
</div>
)
}