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
9622a67f
Commit
9622a67f
authored
3 years ago
by
lfr20
Browse files
Options
Downloads
Patches
Plain Diff
Add maintence banner in the top of the page
parent
37c890af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!57
Merge of develop into master
,
!56
Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...
,
!55
fixed anchor bug and added a logic to scroll to the top when user enters in...
,
!53
Fix admin bugs luis
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/App.js
+3
-0
3 additions, 0 deletions
src/App.js
src/Components/maintenance.js
+19
-0
19 additions, 0 deletions
src/Components/maintenance.js
with
22 additions
and
0 deletions
src/App.js
+
3
−
0
View file @
9622a67f
...
...
@@ -52,6 +52,7 @@ import CollectionPage from "./Pages/CollectionPage.js";
import
FormationMaterialPage
from
"
./Pages/FormationMaterialPage.js
"
;
import
FormationMaterialIframe
from
"
./Pages/FormationMaterialIframe.js
"
;
import
MaterialPage
from
"
./Pages/MaterialPage
"
;
import
Maintence
from
'
./Components/maintenance
'
import
NoteVariables
from
"
./Admin/Pages/Pages/SubPages/NoteVariables
"
;
import
Institution
from
"
./Admin/Pages/Pages/SubPages/Institutions
"
;
...
...
@@ -92,6 +93,7 @@ import EditRole from "./Admin/Components/Components/Inputs/EditRoles";
import
CreateRole
from
"
./Admin/Components/Components/Inputs/CreateRole
"
;
import
BlockedUser
from
"
./Admin/Pages/Pages/SubPages/BlockedUsers
"
;
import
AppBarAdmin
from
'
./Admin/Components/Components/AppBar
'
import
Maintenance
from
"
./Components/maintenance
"
;
export
default
function
App
()
{
// eslint-disable-next-line
...
...
@@ -147,6 +149,7 @@ export default function App() {
return
(
<
BrowserRouter
basename
=
"
/react
"
>
<
Maintenance
/>
<
Header
/>
<
div
style
=
{{
...
...
This diff is collapsed.
Click to expand it.
src/Components/maintenance.js
0 → 100644
+
19
−
0
View file @
9622a67f
import
React
from
'
react
'
import
styled
from
'
styled-components
'
export
default
function
Maintenance
()
{
return
(
<
MaintenanceDiv
>
Estamos
em
manuntenção
.
Em
breve
voltaremos
!
<
/MaintenanceDiv
>
)
}
const
MaintenanceDiv
=
styled
.
div
`
z-index: 1000;
position: fixed;
color:white;
background-color: red;
text-align: center;
width: 100%;
`
\ No newline at end of file
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