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
2054236e
Commit
2054236e
authored
4 years ago
by
Lucas Eduardo Schoenfelder
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
a2b712d4
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Pages/ResourcePage.js
+64
-10
64 additions, 10 deletions
src/Pages/ResourcePage.js
with
64 additions
and
10 deletions
src/Pages/ResourcePage.js
+
64
−
10
View file @
2054236e
...
@@ -16,16 +16,70 @@ GNU Affero General Public License for more details.
...
@@ -16,16 +16,70 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License
along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/
along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
AboutResource
from
'
../Components/AboutResource
'
import
styled
from
'
styled-components
'
import
axios
from
'
axios
'
import
{
apiUrl
,
apiDomain
}
from
'
../env
'
;
import
Grid
from
'
@material-ui/core/Grid
'
;
class
ResourcePage
extends
Component
{
export
default
function
LearningObjectPage
(
props
){
const
id
=
props
.
match
.
params
.
recursoId
render
()
{
useEffect
(
()
=>
{
return
(
axios
.
get
(
(
`
${
apiUrl
}
/learning_objects/`
+
id
)
<
AboutResource
/>
).
then
(
(
response
)
=>
{
console
.
log
(
response
)},
(
error
)
=>
{
console
.
log
(
error
)})
);
},
[])
}
}
return
(
<
Background
>
<
Grid
container
spacing
=
{
2
}
>
<
Grid
item
xs
=
{
12
}
>
<
Card
>
<
div
style
=
{{
height
:
"
50px
"
,
width
:
"
100px
"
}}
>
<
span
>
stuff
goes
here
<
/span
>
<
/div
>
<
/Card
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
Card
>
<
div
style
=
{{
height
:
"
50px
"
,
width
:
"
100px
"
}}
>
<
span
>
stuff
goes
here
<
/span
>
<
/div
>
<
/Card
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
Card
>
<
div
style
=
{{
height
:
"
50px
"
,
width
:
"
100px
"
}}
>
<
span
>
stuff
goes
here
<
/span
>
<
/div
>
<
/Card
>
<
/Grid
>
<
/Grid
>
<
/Background
>
)
}
const
Background
=
styled
.
div
`
background-color : #f4f4f4;
color : #666;
font-family : 'Roboto', sans serif;
`
export
default
ResourcePage
;
const
Card
=
styled
.
div
`
background-color : #fff;
box-shadow : 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
margin-bottom : 30px;
margin-right : auto;
margin-left : auto;
display : flex;
flex-direction : column;
@media screen and (min-width: 1200px) {
width : 1170px;
}
@media screen and (min-width: 992px) and (max-width : 1199px){
width : 970px;
}
@media screen and (min-width: 768px) and (max-width : 991px) {
width : 750px;
}
`
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