Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PortalMEC-React
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PortalMEC
PortalMEC-React
Commits
e3f0993d
Commit
e3f0993d
authored
4 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
added links and removed verifications if its published
parent
7333c7b2
No related branches found
No related tags found
4 merge requests
!57
Merge of develop into master
,
!56
Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...
,
!39
Update admin system
,
!36
Fix perfil into develop
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Components/ResourceCardFunction.js
+43
-70
43 additions, 70 deletions
src/Components/ResourceCardFunction.js
with
43 additions
and
70 deletions
src/Components/ResourceCardFunction.js
+
43
−
70
View file @
e3f0993d
...
...
@@ -21,28 +21,10 @@ import Card from '@material-ui/core/Card';
import
{
apiDomain
}
from
'
../env
'
;
import
ResourceCardOptions
from
'
./ResourceCardOptions
'
import
noAvatar
from
"
../img/default_profile.png
"
;
// import { makeStyles } from '@material-ui/core/styles';
import
Button
from
'
@material-ui/core/Button
'
;
import
styled
from
'
styled-components
'
// import animacao from "../img/laranja/ANIMACAO_SIMULACAO.jpg";
// import apresentacao from "../img/laranja/APRESENTACAO.jpg";
// import aplicativo from "../img/laranja/APP.jpg";
// import audio from "../img/laranja/AUDIO.jpg";
// import vazio from "../img/laranja/EMPTY.jpg";
// import imagem from "../img/laranja/IMAGEM.jpg";
// import grafico from "../img/laranja/INFOGRAFICO.jpg";
// import jogo from "../img/laranja/JOGO.jpg";
// import livro from "../img/laranja/LIVRO_DIGITAL.jpg";
// import mapa from "../img/laranja/MAPA.jpg";
// import outros from "../img/laranja/OUTROS.jpg";
// import software from "../img/laranja/SOFTWARE.jpg";
// import texto from "../img/laranja/TEXTO.jpg";
// import video from "../img/laranja/VIDEO.jpg";
import
Rating
from
'
@material-ui/lab/Rating
'
;
import
StarBorderIcon
from
'
@material-ui/icons/StarBorder
'
;
// import AddIcon from '@material-ui/icons/CreateNewFolder';
// import Video from '@material-ui/icons/OndemandVideo';
// import MoreIcon from '@material-ui/icons/More';
import
FavoriteIcon
from
'
@material-ui/icons/Favorite
'
;
import
ButtonGuardarColecao
from
'
./ButtonGuardarColecao.js
'
import
Slide
from
'
@material-ui/core/Slide
'
;
...
...
@@ -102,10 +84,11 @@ export default function ResourceCardFunction(props) {
<
/AvatarDiv
>
<
EnviadoPor
item
xs
=
{
10
}
>
Enviado
por
:
<
br
/>
<
p
>
{
props
.
author
}
<
/p
>
<
/EnviadoPor
>
<
/HeaderContainer
>
{
props
.
tags
?
<
TagContainer
container
direction
=
"
row
"
>
{
props
.
tags
.
map
((
tag
)
=>
...
...
@@ -114,7 +97,9 @@ export default function ResourceCardFunction(props) {
<
/Grid
>
)
}
<
/TagContainer
>
<
/TagContainer>
:
null
}
<
/div
>
<
/SlideContentDiv
>
)
...
...
@@ -135,9 +120,7 @@ export default function ResourceCardFunction(props) {
<
/Slide
>
}
<
div
className
=
{
`slideContentLinkBeforeActive
${
slideIn
}
`
}
style
=
{{
height
:
'
100%
'
}}
>
<
Link
to
=
{
props
.
href
}
>
<
img
className
=
"
img-cover
"
src
=
{
thumbnail
}
alt
=
"
learning object thumbnail
"
style
=
{{
width
:
"
272.5px
"
}}
/
>
<
/Link
>
<
/div
>
<
/Header
>
<
Description
>
...
...
@@ -146,8 +129,6 @@ export default function ResourceCardFunction(props) {
{
props
.
title
}
<
/Title
>
<
/Link
>
{
props
.
published
&&
<
Rating
name
=
"
customized-empty
"
value
=
{
props
.
rating
}
...
...
@@ -155,27 +136,20 @@ export default function ResourceCardFunction(props) {
style
=
{{
color
:
"
#666
"
}}
emptyIcon
=
{
<
StarBorderIcon
fontSize
=
"
inherit
"
/>
}
/
>
}
<
Footer
>
<
Type
>
{
GetIconByName
(
label
)}
<
span
>
{
label
}
<
/span
>
<
/Type
>
{
props
.
published
&&
<
LikeCounter
>
<
span
>
{
likesCount
}
<
/span
>
<
ButtonNoWidth
onClick
=
{
handleLike
}
>
<
FavoriteIcon
style
=
{{
color
:
liked
?
"
red
"
:
"
#666
"
}}
/
>
<
/ButtonNoWidth
>
<
/LikeCounter
>
}
<
/Footer
>
<
/Description
>
<
/CardReaDiv
>
{
props
.
published
&&
<
CardReaFooter
>
<
div
style
=
{{
display
:
"
flex
"
,
height
:
"
100%
"
}}
>
<
ButtonGuardarColecao
thumb
=
{
props
.
thumbnail
}
title
=
{
props
.
title
}
recursoId
=
{
props
.
id
}
...
...
@@ -188,7 +162,6 @@ export default function ResourceCardFunction(props) {
title
=
{
props
.
title
}
/
>
<
/CardReaFooter
>
}
<
/CardDiv
>
<
/StyledCard
>
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment