Skip to content

Commit

Permalink
Added Loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushgarg-dev committed Dec 26, 2022
1 parent b92c36c commit cdbc61d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"react-browser-ui": "^1.3.5",
"react-device-detect": "^2.2.2",
"react-dom": "18.2.0",
"react-loader-spinner": "^5.3.4",
"react-slick": "^0.29.0",
"react-terminal": "^1.3.0",
"reactstrap": "^9.1.1",
Expand Down
29 changes: 27 additions & 2 deletions pages/projects/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Head from "next/head";
import { Container, Row, Col } from "reactstrap";
import Browser, { Chrome } from "react-browser-ui";
import { isMobile } from "react-device-detect";
import { MagnifyingGlass } from "react-loader-spinner";

import projects from "../../components/data/projects";

Expand All @@ -14,8 +15,32 @@ const Page = ({ project }) => {

if (status === "loading")
return (
<Container>
<h3>Loading</h3>
<Container
style={{
width: "100vw",
height: "50vh",
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<div>
<MagnifyingGlass
visible={true}
height="80"
width="80"
ariaLabel="MagnifyingGlass-loading"
wrapperStyle={{}}
wrapperClass="MagnifyingGlass-wrapper"
glassColor="#c0efff"
color="#e15b64"
>
Loading...
</MagnifyingGlass>
<div>
<h3>Loading...</h3>
</div>
</div>
</Container>
);

Expand Down
21 changes: 20 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2668,6 +2668,20 @@ react-is@^16.13.1, react-is@^16.7.0:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==

react-is@^18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b"
integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==

react-loader-spinner@^5.3.4:
version "5.3.4"
resolved "https://registry.yarnpkg.com/react-loader-spinner/-/react-loader-spinner-5.3.4.tgz#43c22a41944e2bf3c84a249192450f1166592f30"
integrity sha512-G2vw4ssX+RDZ/vfaeva06yfNqyFViv/u+tVZ3kFLy5TKNlNx2DbuwreBSpRtPespQA+VxinxUJsigwLwG9erOg==
dependencies:
react-is "^18.2.0"
styled-components "^5.3.5"
styled-tools "^1.7.2"

react-popper@^2.2.4:
version "2.3.0"
resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-2.3.0.tgz#17891c620e1320dce318bad9fede46a5f71c70ba"
Expand Down Expand Up @@ -2950,7 +2964,7 @@ strnum@^1.0.5:
resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db"
integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==

styled-components@^5.1.0:
styled-components@^5.1.0, styled-components@^5.3.5:
version "5.3.6"
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-5.3.6.tgz#27753c8c27c650bee9358e343fc927966bfd00d1"
integrity sha512-hGTZquGAaTqhGWldX7hhfzjnIYBZ0IXQXkCYdvF1Sq3DsUaLx6+NTHC5Jj1ooM2F68sBiVz3lvhfwQs/S3l6qg==
Expand All @@ -2971,6 +2985,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.0.2.tgz#ff230fd593b737e9e68b630a694d460425478729"
integrity sha512-LqPQrbBh3egD57NBcHET4qcgshPks+yblyhPlH2GY8oaDgKs8SK4C3dBh3oSJjgzJ3G5t1SYEZGHkP+QEpX9EQ==

styled-tools@^1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/styled-tools/-/styled-tools-1.7.2.tgz#a8f71198535cf785d7db0927cc1c1b88337c4440"
integrity sha512-IjLxzM20RMwAsx8M1QoRlCG/Kmq8lKzCGyospjtSXt/BTIIcvgTonaxQAsKnBrsZNwhpHzO9ADx5te0h76ILVg==

supports-color@^5.3.0, supports-color@^5.5.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
Expand Down

0 comments on commit cdbc61d

Please sign in to comment.