-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from TeamXFive/devivan
Devivan
- Loading branch information
Showing
8 changed files
with
126 additions
and
14 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import "../../../../public/images/dex-androide.png" | ||
import "../../../style/Home/CallToAction/CallToAction.css" | ||
import CallToActionButton from '../CallToActionButton/CallToActionButton.jsx'; | ||
|
||
function CallToAction() { | ||
return( | ||
<article className="call-to-action"> | ||
<div className="fig-container"> | ||
<img src="../../../../public/images/dex-androide.png" id="dex-fig"></img> | ||
</div> | ||
|
||
<section className="section-home-text"> | ||
<div className="home-text"> | ||
DEX é um agente de IA generativa especializado em auxiliar os times de suporte a encontrarem soluções precisas de forma rapida e eficiente. | ||
<div className="call-button"> | ||
<CallToActionButton/> | ||
</div> | ||
</div> | ||
</section> | ||
</article> | ||
) | ||
} | ||
|
||
|
||
export default CallToAction; |
23 changes: 23 additions & 0 deletions
23
src/components/Home/CallToActionButton/CallToActionButton.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { useNavigate } from "react-router-dom" | ||
|
||
function CallToActionButton() { | ||
|
||
|
||
const navigate = useNavigate(); | ||
|
||
const redirectButton = () => { | ||
navigate('/chat'); | ||
} | ||
|
||
return ( | ||
<div className='call-button'> | ||
<button onClick={redirectButton}> | ||
Chatbot | ||
</button> | ||
</div> | ||
) | ||
|
||
} | ||
|
||
export default CallToActionButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.call-to-action { | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.fig-container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 50%; | ||
height: 100%; | ||
|
||
} | ||
|
||
#dex-fig { | ||
width: 50%; | ||
border-radius: 20%; | ||
} | ||
|
||
.section-home-text { | ||
display: flex; | ||
flex-direction: column; | ||
width: 50%; | ||
height: 100%; | ||
align-items: flex-center; | ||
justify-content: center; | ||
font-size: 30px; | ||
text-align: justify; | ||
|
||
@media (max-width: 720px) { | ||
font-size: 15px; | ||
} | ||
} | ||
|
||
.home-text { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 50%; | ||
width: 50%; | ||
color: white; | ||
} | ||
|
||
.call-button { | ||
margin: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.hero-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
position: relative; | ||
|
||
background: linear-gradient(0deg, rgba(var(--black-gray-rgb), 1), rgba(125, 179, 179, 0.1)); | ||
|
||
} | ||
|
||
/* @media screen and (min-width: 768px) { | ||
.hero-container { | ||
height: 65vh; | ||
} | ||
} | ||
@media screen and (min-width: 1024px) { | ||
.hero-container { | ||
height: 75vh; | ||
} | ||
} */ | ||
|