Skip to content

Commit

Permalink
Merge pull request #31 from caronae/feature/cae-94
Browse files Browse the repository at this point in the history
Feature/cae 94
  • Loading branch information
andradenathan authored May 31, 2024
2 parents dafadaf + 7cb8ea9 commit ec09a83
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 48 deletions.
89 changes: 48 additions & 41 deletions src/components/SeInteressouPeloProjeto/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,65 @@ import { TextInput, TextArea, SubmitButton } from '../Form';
import ImagePill from '../ImagePill';
import MailIcon from '../MailIcon';

export default function SeInteressouPeloProjeto() {
export default function SeInteressouPeloProjeto({
withDecoration = true
}) {
return (
<div className="se-interessou-container">
<SeInteressouHeading />
<SeInteressouForm />

<MarginDecoration
element={
<Pill
width="400px"
height="130px"
backgroundColor="rgba(23, 178, 112, 1)"
{ withDecoration ?
(
<>
<MarginDecoration
element={
<Pill
width="400px"
height="130px"
backgroundColor="rgba(23, 178, 112, 1)"
/>
}
rotation="-25deg"
left="-300px"
top="-140px"
/>
}
rotation="-25deg"
left="-300px"
top="-140px"
/>

<MarginDecoration
element={<MailIcon size="140px" backgroundColor="#2B388A" />}
rotation="30deg"
left="-200px"
top="100px"
/>
<MarginDecoration
element={<MailIcon size="140px" backgroundColor="#2B388A" />}
rotation="30deg"
left="-200px"
top="100px"
/>

<MarginDecoration
element={<MailIcon size="140px" backgroundColor="#EB3D38" />}
rotation="-20deg"
right="-100px"
top="-180px"
/>
<MarginDecoration
element={<MailIcon size="140px" backgroundColor="#EB3D38" />}
rotation="-20deg"
right="-100px"
top="-180px"
/>

<MarginDecoration
element={
<Pill
width="400px"
height="130px"
backgroundColor="rgba(110, 54, 31, 1)"
<MarginDecoration
element={
<Pill
width="400px"
height="130px"
backgroundColor="rgba(110, 54, 31, 1)"
/>
}
rotation="25deg"
right="-450px"
top="80px"
/>
}
rotation="25deg"
right="-450px"
top="80px"
/>

<MarginDecoration
element={<MailIcon size="175px" backgroundColor="#ED8024" />}
rotation="30deg"
right="-250px"
bottom="0px"
/>
<MarginDecoration
element={<MailIcon size="175px" backgroundColor="#ED8024" />}
rotation="30deg"
right="-250px"
bottom="0px"
/>
</>
) : null}
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/SeInteressouPeloProjeto/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
display: flex;
flex-direction: row;
gap: 100px;
justify-content: space-between;
margin-top: 200px;
justify-content: space-around;
margin: 200px 0px 100px 0px;
height: 400px;
width: 100%;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/SejaUmMotorista/SejaUmMotorista.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
.sejaUmMotorista {
position: relative;
display: flex;
width: 1250px;
width: 100%;
height: 467px;
margin-bottom: 100px;
margin-top: 100px;
margin: 180px 0px;
justify-content: space-around;
}

.cards {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SejaUmMotorista/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Cards = () => {
const Content = () => {
return (
<div className={ styles.content }>
<h1>Viage com mais vantagens</h1>
<h1>Viaje com mais vantagens</h1>
<h2>Seja um motorista ou passageiro do Caronaê!</h2>
<p>
Se você é motorista, pode economizar dinheiro dividindo os custos
Expand Down
6 changes: 5 additions & 1 deletion src/pages/MobileApp/index.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import ComoOAppFunciona from '../../components/ComoOAppFunciona';
import Footer from '../../components/Footer';
import Navbar from '../../components/Navbar';
import SeInteressouPeloProjeto from '../../components/SeInteressouPeloProjeto';
import SejaUmMotorista from '../../components/SejaUmMotorista';
import VaDeCaronae from '../../components/VaDeCaronae';

const MobileApp = () => {
return (
<>
<Navbar />
<SejaUmMotorista />
<VaDeCaronae />
<SejaUmMotorista />
<ComoOAppFunciona />
<SeInteressouPeloProjeto withDecoration={false} />
<Footer/>
</>
);
};
Expand Down

0 comments on commit ec09a83

Please sign in to comment.