Skip to content
Snippets Groups Projects
Commit 65047983 authored by lfr20's avatar lfr20
Browse files

Changes images of no content

parent e48e5834
No related branches found
No related tags found
2 merge requests!69Fixed upload page: recaptcha not implemented, lack of blocking (part one, two,...,!59Fix production bugs luis
......@@ -61,14 +61,17 @@ export default function VideoPlayer (props) {
)
:
(
props.videoType === "video/mp4" ?
<VideoContainer>
<video controls className="video">
<source src={props.videoUrl} type="video/webm" />
<source src={props.videoUrl} type="video/mp4" />
<p>Seu navegador não permite a exibição deste vídeo. É necessário baixar o vídeo para poder visualizá-lo.</p>
</video>
</VideoContainer>
:
<ErrorParagraph>
Seu navegador não permite a exibição deste vídeo. É necessário baixar o vídeo para poder visualizá-lo.
</ErrorParagraph>
)
}
</>
......@@ -89,3 +92,7 @@ const VideoContainer = styled.div`
left : 0;
}
`
const ErrorParagraph = styled.p`
text-align: center;
`
......@@ -18,19 +18,20 @@ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>
import React from 'react'
import styled from 'styled-components'
import NoContentImage from '../../../img/img-16.png'
import defaultNoContent from '../../../img/img-16.png'
export default function NoContent(props) {
export default function NoContent({text, image}) {
return (
<DivTextoNoPublications>
<InnerDiv>
<ImgDiv>
<img alt="" src={NoContentImage} style={{ width: "130px", verticalAlign: "middle", border: "0" }} />
<img alt="" src={image || defaultNoContent } style={{ width: "130px", verticalAlign: "middle", border: "0" }} />
</ImgDiv>
<TextDiv>
<NoPubSpan>{props.text}</NoPubSpan>
<NoPubSpan>{text}</NoPubSpan>
</TextDiv>
</InnerDiv>
</DivTextoNoPublications>
......
......@@ -24,6 +24,7 @@ import Title from './PanelTitle.js'
import { WhiteContainer, StyledGrid } from '../StyledComponents.js'
import { ButtonsAreaColecao } from './ButtonsArea'
import LoadingSpinner from '../../LoadingSpinner.js'
import noCollFound from '../../../img/Pagina_vazia_colecao.png'
export default function PanelTemplateColecao(props) {
const RenderFollowedColCard = (card, followerBoolean) => {
......@@ -86,7 +87,10 @@ export default function PanelTemplateColecao(props) {
:
props.length === 0 ?
(
<NoContent text={props.noContentText} />
<NoContent
text={props.noContentText}
image={noCollFound}
/>
)
:
(
......
......@@ -24,6 +24,7 @@ import Title from './PanelTitle.js'
import { WhiteContainer, StyledGrid } from '../StyledComponents.js'
import { ButtonsAreaRecurso } from './ButtonsArea'
import LoadingSpinner from '../../LoadingSpinner.js'
import noLearnObjFound from '../../../img/Pagina_vazia_Sem_publicar.png'
export default function Template(props) {
......@@ -46,6 +47,7 @@ export default function Template(props) {
(
<NoContent
text={props.noContentText}
image={noLearnObjFound}
/>
)
:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment