Download netflix-clone-using-react/src/components/loading/styles/loading.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.68 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/components/loading/styles/loading.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/components/loading/styles/loading.js
-
curl -L -o loading.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/components/loading/styles/loading.js
1.68 kB
| import styled, { createGlobalStyle } from 'styled-components'; | |
| export const LockBody = createGlobalStyle` | |
| body { | |
| overflow: hidden; | |
| } | |
| `; | |
| export const ReleaseBody = createGlobalStyle` | |
| body { | |
| overflow: visible; | |
| } | |
| `; | |
| export const Spinner = styled.div` | |
| position: fixed; | |
| width: 100%; | |
| height: 100%; | |
| background-color: black; | |
| z-index: 999; | |
| :after { | |
| content: ''; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| background-image: url(/images/misc/spinner.png); | |
| background-size: contain; | |
| background-repeat: no-repeat; | |
| margin-top: -150px; | |
| margin-left: -75px; | |
| width: 150px; | |
| height: 150px; | |
| animation-name: spin; | |
| animation-duration: 1000ms; | |
| animation-iteration-count: infinite; | |
| animation-timing-function: linear; | |
| } | |
| @-ms-keyframes spin { | |
| from { | |
| -ms-transform: rotate(0deg); | |
| } | |
| to { | |
| -ms-transform: rotate(360deg); | |
| } | |
| } | |
| @-moz-keyframes spin { | |
| from { | |
| -moz-transform: rotate(0deg); | |
| } | |
| to { | |
| -moz-transform: rotate(360deg); | |
| } | |
| } | |
| @-webkit-keyframes spin { | |
| from { | |
| -webkit-transform: rotate(0deg); | |
| } | |
| to { | |
| -webkit-transform: rotate(360deg); | |
| } | |
| } | |
| @keyframes spin { | |
| from { | |
| transform: rotate(0deg); | |
| } | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| `; | |
| export const Picture = styled.img` | |
| width: 50px; | |
| height: 50px; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| margin-top: -100px; | |
| margin-left: -22px; | |
| `; |