Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NYU-Abu-Dhabi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
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
2024 Competition
NYU-Abu-Dhabi
Commits
eb744c27
Commit
eb744c27
authored
8 months ago
by
swostikpati
Browse files
Options
Downloads
Patches
Plain Diff
removed loading spinner added random gif
parent
5635bade
Branches
revert-3bb2b039
Branches containing commit
No related tags found
1 merge request
!14
Loading screen implementation
Pipeline
#391493
canceled
8 months ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Loading.css
+6
-14
6 additions, 14 deletions
src/components/Loading.css
src/components/Loading.jsx
+5
-1
5 additions, 1 deletion
src/components/Loading.jsx
src/containers/App/App.jsx
+6
-1
6 additions, 1 deletion
src/containers/App/App.jsx
with
17 additions
and
16 deletions
src/components/Loading.css
+
6
−
14
View file @
eb744c27
...
...
@@ -4,25 +4,17 @@
justify-content
:
center
;
align-items
:
center
;
height
:
100vh
;
background-color
:
var
(
--cream
);
}
.loading-spinner
{
border
:
4px
solid
rgba
(
0
,
0
,
0
,
0.1
);
width
:
36px
;
height
:
36px
;
border-radius
:
50%
;
border-left-color
:
#09f
;
animation
:
spin
1s
linear
infinite
;
}
@keyframes
spin
{
to
{
transform
:
rotate
(
360deg
);
}
.loading-gif
{
width
:
150px
;
/* Adjust the size as needed */
height
:
150px
;
/* Adjust the size as needed */
}
.loading-container
p
{
margin-top
:
10px
;
font-size
:
18px
;
color
:
#555
;
color
:
var
(
--dark-blue
);
font
:
var
(
--primary-font
);
}
This diff is collapsed.
Click to expand it.
src/components/Loading.jsx
+
5
−
1
View file @
eb744c27
...
...
@@ -4,7 +4,11 @@ import "./Loading.css"; // Optional: Add this if you want to style your loading
const
Loading
=
()
=>
{
return
(
<
div
className
=
"loading-container"
>
<
div
className
=
"loading-spinner"
></
div
>
<
img
src
=
"https://static.igem.wiki/teams/5125/small-bouncing-coraline.gif"
alt
=
"Loading..."
className
=
"loading-gif"
/>
<
p
>
Loading...
</
p
>
</
div
>
);
...
...
This diff is collapsed.
Click to expand it.
src/containers/App/App.jsx
+
6
−
1
View file @
eb744c27
...
...
@@ -33,7 +33,12 @@ const App = () => {
},
[
title
,
location
.
pathname
]);
if
(
loading
)
{
return
<
Loading
/>;
return
(
<>
<
Navbar
/>
<
Loading
/>
</>
);
}
return
(
...
...
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