Skip to content
Snippets Groups Projects
Commit 76563ff4 authored by Henrique Varella Ehrenfried's avatar Henrique Varella Ehrenfried :speech_balloon:
Browse files

Improve resposivity of HelpCenter

parent 9089f97a
No related branches found
No related tags found
5 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa,!31Fix console error
...@@ -75,7 +75,7 @@ const CardAjuda = styled.div` ...@@ -75,7 +75,7 @@ const CardAjuda = styled.div`
height: 360px; height: 360px;
margin-bottom: 20px; margin-bottom: 20px;
width: 100%
.card { .card {
height: 280px; height: 280px;
...@@ -84,7 +84,7 @@ const CardAjuda = styled.div` ...@@ -84,7 +84,7 @@ const CardAjuda = styled.div`
font-size: 14px; font-size: 14px;
background-color:#fff; background-color:#fff;
box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
margin-top:30px
h3 { h3 {
font-size: 23px; font-size: 23px;
font-weight: 400; font-weight: 400;
......
...@@ -93,7 +93,7 @@ const CardAjuda = styled.div` ...@@ -93,7 +93,7 @@ const CardAjuda = styled.div`
height: 360px; height: 360px;
margin-bottom: 20px; margin-bottom: 20px;
width: 100%
.card { .card {
height: 280px; height: 280px;
...@@ -102,6 +102,7 @@ const CardAjuda = styled.div` ...@@ -102,6 +102,7 @@ const CardAjuda = styled.div`
font-size: 14px; font-size: 14px;
background-color:#fff; background-color:#fff;
box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
margin-top:30px
h3 { h3 {
font-size: 23px; font-size: 23px;
......
...@@ -66,7 +66,8 @@ const CardAjuda = styled.div` ...@@ -66,7 +66,8 @@ const CardAjuda = styled.div`
height: 360px; height: 360px;
margin-bottom: 20px; margin-bottom: 20px;
width: 100%
.card { .card {
height: 280px; height: 280px;
...@@ -75,6 +76,8 @@ const CardAjuda = styled.div` ...@@ -75,6 +76,8 @@ const CardAjuda = styled.div`
font-size: 14px; font-size: 14px;
background-color:#fff; background-color:#fff;
box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
margin-top:30px
h3 { h3 {
font-size: 23px; font-size: 23px;
......
...@@ -74,7 +74,7 @@ const CardAjuda = styled.div` ...@@ -74,7 +74,7 @@ const CardAjuda = styled.div`
height: 360px; height: 360px;
margin-bottom: 20px; margin-bottom: 20px;
width: 100%
.card { .card {
height: 280px; height: 280px;
...@@ -83,7 +83,7 @@ margin-bottom: 20px; ...@@ -83,7 +83,7 @@ margin-bottom: 20px;
font-size: 14px; font-size: 14px;
background-color:#fff; background-color:#fff;
box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
margin-top:30px
h3 { h3 {
font-size: 23px; font-size: 23px;
font-weight: 400; font-weight: 400;
......
...@@ -36,7 +36,6 @@ function Alert(props) { ...@@ -36,7 +36,6 @@ function Alert(props) {
export default function ResourceList(props) { export default function ResourceList(props) {
console.log(props);
const [selected, setSelected] = useState(Array.apply( const [selected, setSelected] = useState(Array.apply(
null, {length: props.resources.length}).map(i => false)); null, {length: props.resources.length}).map(i => false));
......
...@@ -34,13 +34,20 @@ import CardGerenciando from '../Components/HelpCenter/Cards/CardGerenciando'; ...@@ -34,13 +34,20 @@ import CardGerenciando from '../Components/HelpCenter/Cards/CardGerenciando';
function HelpCenter(props) { function HelpCenter(props) {
let windowWidth = window.innerWidth
return( return(
<div style={{backgroundColor: "#f4f4f4"}}> <div style={{backgroundColor: "#f4f4f4"}}>
<link href="https://fonts.googleapis.com/css?family=Pompiere|Roboto:300,400&display=swap" rel="stylesheet"/> <link href="https://fonts.googleapis.com/css?family=Pompiere|Roboto:300,400&display=swap" rel="stylesheet"/>
<Secao1> <Secao1>
<div className= "container"> <div className= "container">
<img src={Banner3} alt="banner3"/> {
windowWidth > 420?
<img src={Banner3} alt="banner3"/>
:
<div/>
}
<div className= "conteudo"> <div className= "conteudo">
<div className= "title"> <div className= "title">
<h2>OLÁ! COMO PODEMOS AJUDAR?</h2> <h2>OLÁ! COMO PODEMOS AJUDAR?</h2>
...@@ -57,17 +64,17 @@ function HelpCenter(props) { ...@@ -57,17 +64,17 @@ function HelpCenter(props) {
<h2>Tópicos de Ajuda</h2> <h2>Tópicos de Ajuda</h2>
</div> </div>
<div> <div>
<Grid container spacing={2}> <Grid container justify="center" style={{margin:-8}}>
<Grid item xs={3}> <Grid item xs={12} md={5} style={{padding:8}}>
<CardPublicando/> <CardPublicando/>
</Grid> </Grid>
<Grid item xs={3}> <Grid item xs={12} md={5} style={{padding:8}}>
<CardEncontrando/> <CardEncontrando/>
</Grid> </Grid>
<Grid item xs={3}> <Grid item xs={12} md={5} style={{padding:8}}>
<CardParticipando/> <CardParticipando/>
</Grid> </Grid>
<Grid item xs={3}> <Grid item xs={12} md={5} style={{padding:8}}>
<CardGerenciando/> <CardGerenciando/>
</Grid> </Grid>
</Grid> </Grid>
...@@ -77,64 +84,66 @@ function HelpCenter(props) { ...@@ -77,64 +84,66 @@ function HelpCenter(props) {
</div> </div>
</Secao2> </Secao2>
<div style={{width:"100%"}}>
<Secao3> <Secao3>
<Grid style={{height:"100%"}} container spacing={2}> <Grid style={{height:"100%"}} container justify="center">
<Grid style={{backgroundColor: "#333",paddingInline:"0" }} item xs={6}> <Grid style={{backgroundColor: "#333",paddingInline:"0" }} item xs={12} md={6}>
<iframe title="Vídeo página ajuda" src="https://player.vimeo.com/video/231609051" width="100%" height="100%" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> <iframe title="Vídeo página ajuda" src="https://player.vimeo.com/video/231609051" width="100%" height="100%" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={12} md={6}>
<p className="titulo-sobre-ajuda">Plataforma MEC de Recursos Educacionais Digitais</p> <div>
<p className="conteudo-sobre-ajuda"> <p className="titulo-sobre-ajuda">Plataforma MEC de Recursos Educacionais Digitais</p>
Construa conosco a plataforma e amplie sua rede de conhecimento<br/> <p className="conteudo-sobre-ajuda">
interagindo com pessoas envolvidas com experiências que ocorrem<br/> Construa conosco a plataforma e amplie sua rede de conhecimento
em todo o Brasil! interagindo com pessoas envolvidas com experiências que ocorrem
</p> em todo o Brasil!
<hr/>
<Grid container spacing={1}>
<Grid item xs={6}>
<p className="links">
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '0'}
}}>O que é a Plataforma MEC</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '1'}
}}>Como foi construida a Plataforma<br/>MEC?</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '3'}
}}>Quais são os Portais Parceiros?</Link>
</p>
</Grid>
<Grid item xs={6}>
<p className="links">
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '2'}
}}>Entendendo as 3 áreas</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '4'}
}}>Tipos de recursos</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '5'}
}}>Softwares específicos</Link>
</p> </p>
</div>
<Grid container>
<Grid item xs={12} md={6}>
<p className="links">
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '0'}
}}>O que é a Plataforma MEC</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '1'}
}}>Como foi construida a Plataforma<br/>MEC?</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '3'}
}}>Quais são os Portais Parceiros?</Link>
</p>
</Grid>
<Grid item xs={12} md={6}>
<p className="links">
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '2'}
}}>Entendendo as 3 áreas</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '4'}
}}>Tipos de recursos</Link>
<br/>
<Link to={{
pathname : 'plataforma-mec',
state : {value : '5'}
}}>Softwares específicos</Link>
</p>
</Grid>
</Grid> </Grid>
</Grid>
</Grid>
</Grid> </Grid>
</Grid> </Secao3>
</Secao3> </div>
<Secao4> <Secao4>
<div className="container"> <div className="container">
...@@ -142,7 +151,7 @@ function HelpCenter(props) { ...@@ -142,7 +151,7 @@ function HelpCenter(props) {
<h2>Não encontrou o que você precisa?</h2> <h2>Não encontrou o que você precisa?</h2>
<span>Entre em contato com a nossa Central de Ajuda</span> <span>Entre em contato com a nossa Central de Ajuda</span>
<br/> <br/>
<button><a href="contato">ENTRAR EM CONTATO</a></button> <button style={{marginBottom:50, marginTop:20}}><a href="contato">ENTRAR EM CONTATO</a></button>
</div> </div>
</div> </div>
...@@ -156,27 +165,25 @@ export default HelpCenter; ...@@ -156,27 +165,25 @@ export default HelpCenter;
const Secao1 = styled.div` const Secao1 = styled.div`
height: 374px;
background-color:#00bcd4; background-color:#00bcd4;
text-align: center; text-align: center;
width: 100%;
.container { .container {
height: 100%; height: 100%;
width: 1170px;
display: flex; display: flex;
-webkit-box-pack: center; -webkit-box-pack: center;
justify-content: center; justify-content: center;
-webkit-box-align: center; -webkit-box-align: center;
align-items: center; align-items: center;
padding-right: 15px;
padding-left: 15px; padding-left: 15px;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
img { img {
position: relative; position: relative;
left: 82px;
top: 41.6%; top: 41.6%;
width: 230px; max-width: 230px;
width: 90%;
float: left; float: left;
min-height: 1px; min-height: 1px;
padding-right: 15px; padding-right: 15px;
...@@ -208,14 +215,13 @@ const Secao1 = styled.div` ...@@ -208,14 +215,13 @@ const Secao1 = styled.div`
` `
const Secao2 = styled.div` const Secao2 = styled.div`
height: 536px;
background-color:#f4f4f4; background-color:#f4f4f4;
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
padding-bottom: 50px
width: 100%;
.container { .container {
height: 100%; height: 100%;
width: 1170px;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
...@@ -243,7 +249,7 @@ const Secao2 = styled.div` ...@@ -243,7 +249,7 @@ const Secao2 = styled.div`
.card { .card {
height: 280px; height: 280px;
padding: 40px 15px; padding: 40px 0px;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
background-color:#fff; background-color:#fff;
...@@ -258,13 +264,6 @@ const Secao2 = styled.div` ...@@ -258,13 +264,6 @@ const Secao2 = styled.div`
line-height: 1.1; line-height: 1.1;
} }
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eee;
color: #a5a5a5;
}
a { a {
font-size: 15px; font-size: 15px;
...@@ -321,14 +320,12 @@ const Secao2 = styled.div` ...@@ -321,14 +320,12 @@ const Secao2 = styled.div`
` `
const Secao3 = styled.div` const Secao3 = styled.div`
height: 375px;
padding: 0; padding: 0;
text-align: center; text-align: center;
background-color: #fff; background-color: #fff;
width: 1170px;
margin-inline: auto; margin-inline: auto;
color: rgba(0,0,0,0.87); color: rgba(0,0,0,0.87);
width: 100%;
.links { .links {
font-size: 15px; font-size: 15px;
font-weight: lighter; font-weight: lighter;
...@@ -356,26 +353,16 @@ const Secao3 = styled.div` ...@@ -356,26 +353,16 @@ const Secao3 = styled.div`
margin: 0 0 10px; margin: 0 0 10px;
} }
hr {
width: 350px;
border: 0;
border-top: 1px solid #ccc;
margin-top: 20px;
margin-bottom: 20px;
}
` `
const Secao4 = styled.div` const Secao4 = styled.div`
height: 290px; width: 100%;
.container { .container {
height: 100%; height: 100%;
color: #a5a5a5; color: #a5a5a5;
width: 1170px;
margin-inline: auto; margin-inline: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment