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
Harbor Registry
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
7fccd151
Commit
7fccd151
authored
5 years ago
by
mrp19
Browse files
Options
Downloads
Patches
Plain Diff
Aplicando o carousel na seção 1 do site
parent
a03a9428
No related branches found
No related tags found
1 merge request
!9
Resolve "Criar tela de termos de uso"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Components/Carrossel.js
+52
-0
52 additions, 0 deletions
src/Components/Carrossel.js
src/Components/Modal.js
+54
-34
54 additions, 34 deletions
src/Components/Modal.js
src/Pages/UserTerms.js
+2
-3
2 additions, 3 deletions
src/Pages/UserTerms.js
with
108 additions
and
37 deletions
src/Components/Carrossel.js
+
52
−
0
View file @
7fccd151
/*Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana
This file is part of Plataforma Integrada MEC.
Plataforma Integrada MEC is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Plataforma Integrada MEC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
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/>.*/
import
React
{
Component
}
from
'
react
'
;
import
{
Carousel
}
from
'
react-responsive-carousel
'
;
const
areaStyle
=
{
paddingTop
:
"
5px
"
,
fontSize
:
"
16px
"
,
textAlign
:
"
left
"
,
backgroundColor
:
"
inherit
"
,
width
:
"
700px
"
,
padding
:
"
20px
"
,
minHeight
:
"
150px
"
}
export
default
class
CarouselTermosResumidos
extends
Component
{
constructor
(
props
){
super
(
props
);
};
render
(){
return
(
<
Carousel
showThumbs
=
{
false
}
infiniteLoop
=
{
true
}
showStatus
=
{
false
}
>
<
div
>
TESTE
<
/div
>
<
div
>
DO
<
/div
>
<
div
>
CAROUSEL
<
/div
>
<
div
>
AGORA
<
/div
>
<
div
>
VAI
<
/div
>
<
div
>
POR
<
/div
>
<
div
>
FAVOR
<
/div
>
<
/Carousel
>
);
}
}
This diff is collapsed.
Click to expand it.
src/Components/Modal.js
+
54
−
34
View file @
7fccd151
import
React
from
'
react
'
;
/*Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre
import
{
makeStyles
}
from
'
@material-ui/core/styles
'
;
Departamento de Informatica - Universidade Federal do Parana
import
Modal
from
'
@material-ui/core/Modal
'
;
function
rand
()
{
This file is part of Plataforma Integrada MEC.
return
Math
.
round
(
Math
.
random
()
*
20
)
-
10
;
}
function
getModalStyle
()
{
Plataforma Integrada MEC is free software: you can redistribute it and/or modify
const
top
=
50
+
rand
();
it under the terms of the GNU Affero General Public License as published by
const
left
=
50
+
rand
();
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
return
{
Plataforma Integrada MEC is distributed in the hope that it will be useful,
top
:
`
${
top
}
%`
,
but WITHOUT ANY WARRANTY; without even the implied warranty of
left
:
`
${
left
}
%`
,
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
transform
:
`translate(-
${
top
}
%, -
${
left
}
%)`
,
GNU Affero General Public License for more details.
};
}
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/>.*/
import
React
from
'
react
'
;
import
{
makeStyles
}
from
'
@material-ui/styles
'
;
import
Modal
from
'
@material-ui/core/Modal
'
;
import
{
Carousel
}
from
'
react-responsive-carousel
'
;
import
Backdrop
from
'
@material-ui/core/Backdrop
'
;
import
Fade
from
'
@material-ui/core/Fade
'
;
const
useStyles
=
makeStyles
(
theme
=>
({
const
useStyles
=
makeStyles
(
theme
=>
({
modal
:
{
display
:
"
flex
"
,
alignItems
:
"
center
"
,
justifyContent
:
"
center
"
},
paper
:
{
paper
:
{
position
:
'
absolute
'
,
backgroundColor
:
"
blue
"
,
width
:
400
,
backgroundColor
:
theme
.
palette
.
background
.
paper
,
border
:
'
2px solid #000
'
,
border
:
'
2px solid #000
'
,
boxShadow
:
theme
.
shadows
[
5
],
boxShadow
:
"
0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)
"
padding
:
theme
.
spacing
(
2
,
4
,
3
),
},
},
carousel
:
{
background
:
"
blue
"
,
width
:
"
750px
"
,
height
:
"
370px
"
}
}));
}));
export
default
function
Simple
Modal
()
{
export
default
function
Transitions
Modal
()
{
const
classes
=
useStyles
();
const
classes
=
useStyles
();
// getModalStyle is not a pure function, we roll the style only on the first render
const
[
modalStyle
]
=
React
.
useState
(
getModalStyle
);
const
[
open
,
setOpen
]
=
React
.
useState
(
false
);
const
[
open
,
setOpen
]
=
React
.
useState
(
false
);
const
handleOpen
=
()
=>
{
const
handleOpen
=
()
=>
{
...
@@ -44,23 +55,32 @@ export default function SimpleModal() {
...
@@ -44,23 +55,32 @@ export default function SimpleModal() {
return
(
return
(
<
div
>
<
div
>
<
p
>
Click
to
get
the
full
Modal
experience
!<
/p
>
<
button
type
=
"
button
"
onClick
=
{
handleOpen
}
>
<
button
type
=
"
button
"
onClick
=
{
handleOpen
}
>
Open
Modal
react
-
transition
-
group
<
/button
>
<
/button
>
<
Modal
<
Modal
aria
-
labelledby
=
"
simple-modal-title
"
aria
-
labelledby
=
"
transition-modal-title
"
aria
-
describedby
=
"
simple-modal-description
"
aria
-
describedby
=
"
transition-modal-description
"
className
=
{
classes
.
modal
}
open
=
{
open
}
open
=
{
open
}
onClose
=
{
handleClose
}
onClose
=
{
handleClose
}
closeAfterTransition
BackdropComponent
=
{
Backdrop
}
BackdropProps
=
{{
timeout
:
500
,
}}
>
>
<
div
style
=
{
modalStyle
}
className
=
{
classes
.
paper
}
>
<
Fade
in
=
{
open
}
>
<
h2
id
=
"
simple-modal-title
"
>
Text
in
a
modal
<
/h2
>
<
Carousel
className
=
{
classes
.
carousel
}
showThumbs
=
{
false
}
infiniteLoop
=
{
true
}
showStatus
=
{
false
}
>
<
p
id
=
"
simple-modal-description
"
>
<
div
>
TESTE
<
/div
>
Duis
mollis
,
est
non
commodo
luctus
,
nisi
erat
porttitor
ligula
.
<
div
>
DO
<
/div
>
<
/p
>
<
div
>
CAROUSEL
<
/div
>
<
SimpleModal
/>
<
div
>
AGORA
<
/div
>
<
/div
>
<
div
>
VAI
<
/div
>
<
div
>
POR
<
/div
>
<
div
>
FAVOR
<
/div
>
<
/Carousel
>
<
/Fade
>
<
/Modal
>
<
/Modal
>
<
/div
>
<
/div
>
);
);
...
...
This diff is collapsed.
Click to expand it.
src/Pages/UserTerms.js
+
2
−
3
View file @
7fccd151
...
@@ -20,7 +20,6 @@ import React, {Component} from 'react';
...
@@ -20,7 +20,6 @@ import React, {Component} from 'react';
import
ExpansionPanels
from
'
../Components/ExpansionPanels
'
import
ExpansionPanels
from
'
../Components/ExpansionPanels
'
import
Grid
from
'
@material-ui/core/Grid
'
;
import
Grid
from
'
@material-ui/core/Grid
'
;
import
Banner1
from
"
../img/termos/banner.jpg
"
;
import
Banner1
from
"
../img/termos/banner.jpg
"
;
import
{
AutoRotatingCarousel
}
from
'
material-auto-rotating-carousel
'
import
Modal
from
'
../Components/Modal
'
import
Modal
from
'
../Components/Modal
'
...
@@ -63,8 +62,8 @@ class UserTerms extends Component {
...
@@ -63,8 +62,8 @@ class UserTerms extends Component {
<
div
>
<
div
>
<
div
style
=
{
bannerStyle
}
>
<
div
style
=
{
bannerStyle
}
>
<
h2
style
=
{{
width
:
"
100%
"
,
height
:
"
370px
"
,
textAlign
:
"
center
"
,
marginTop
:
"
0px
"
,
paddingTop
:
"
9rem
"
,
fontSize
:
"
52px
"
}}
>
TERMOS
DE
USO
<
/h2
>
<
h2
style
=
{{
width
:
"
100%
"
,
textAlign
:
"
center
"
,
marginTop
:
"
0px
"
,
paddingTop
:
"
9rem
"
,
fontSize
:
"
52px
"
}}
>
TERMOS
DE
USO
<
/h2
>
<
div
>
<
Modal
/>
<
/div
>
<
Modal
/>
<
/div
>
<
/div
>
<
div
style
=
{
secao2
}
>
<
div
style
=
{
secao2
}
>
...
...
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