feature/body #8

Merged
SavioCarvalhoMoraes merged 10 commits from feature/body into development 2023-01-16 22:24:50 +00:00
6 changed files with 67 additions and 4 deletions
Showing only changes of commit a714aa1415 - Show all commits

View File

@ -0,0 +1,36 @@
import Col from "react-bootstrap/Col";
import ListGroup from "react-bootstrap/ListGroup";
import Row from "react-bootstrap/Row";
import Tab from "react-bootstrap/Tab";
import styles from "./accordionBody.module.scss";
const AccordionBody = () => {
return (
<Tab.Container id="list-group-tabs" defaultActiveKey="#link1">
<Row>
<Col sm={4}>
<ListGroup>
<ListGroup.Item className={styles["acc-item"]} action href="#link1">
Link 1
</ListGroup.Item>
<ListGroup.Item action href="#link2">
Link 2
</ListGroup.Item>
</ListGroup>
</Col>
<Col sm={8}>
<Tab.Content>
<Tab.Pane eventKey="#link1">
<p>oi</p>
</Tab.Pane>
<Tab.Pane eventKey="#link2">
<p>tchau</p>
</Tab.Pane>
</Tab.Content>
</Col>
</Row>
</Tab.Container>
);
};
export { AccordionBody };

View File

@ -0,0 +1,17 @@
.accordion-wrapper {
display: flex;
flex-direction: column;
}
.accordion-item {
display: flex;
flex-direction: row;
}
.accordion-header {
}
/*
.list-group-tabs.active {
background-color: red;
}*/
.acc-item .active {
background-color: red;
}

View File

@ -195,7 +195,7 @@ const FormInput = () => {
</div>
<div className={styles["form-col"]}>
<div className={styles["form-text"]}>
<label htmlFor="nascimento">Data de Nascimento</label>
<label htmlFor="nascimento">Data de Nascimento:</label>
<ErrorMessage
component="span"
name="nascimento"

View File

@ -23,7 +23,7 @@
margin: 0 auto;
padding: 0 12px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
@ -31,6 +31,7 @@
font-weight: 700;
font-size: 27px;
margin: 0 0 12px 0;
@media screen and (min-width: 2500px) {
font-size: 48px;
}

View File

@ -1,11 +1,11 @@
import React from "react";
import { FormInput } from "../components/FormInput/FormInput";
import { AccordionBody } from "../components/AccordionBody/AccordionBody";
const Home = () => {
//const style = { background: "black" };
return (
<div /*style={style}*/>
<FormInput></FormInput>
<AccordionBody />
</div>
);
};

View File

@ -18,3 +18,12 @@ button {
li {
list-style-type: none;
}
/*
$grid-breakpoints: (
xs: 0,
sm: 375px,
md: 768px,
lg: 1025px,
xl: 1280px,
xxl: 2500px,
);*/