Add loader in index html

This commit is contained in:
Nabarun 2024-08-08 16:04:32 +05:30
parent ec20b61078
commit 1c90a0241c
2 changed files with 48 additions and 8 deletions

View File

@ -20,19 +20,12 @@
"@react-navigation/stack": "^6.4.1", "@react-navigation/stack": "^6.4.1",
"@testing-library/jest-dom": "^5.14.1", "@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0", "@testing-library/react": "^13.0.0",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@walletconnect/web3wallet": "^1.13.0", "@walletconnect/web3wallet": "^1.13.0",
"assert": "^2.1.0", "assert": "^2.1.0",
"chain-registry": "^1.41.2", "chain-registry": "^1.41.2",
"cosmjs-types": "^0.9.0", "cosmjs-types": "^0.9.0",
"eslint": "^8.3.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-webpack-plugin": "^3.1.1",
"ethers": "5.7.2", "ethers": "5.7.2",
"https-browserify": "^1.0.0", "https-browserify": "^1.0.0",
"husky": "^9.0.11",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
@ -84,7 +77,14 @@
"@types/node": "^16.7.13", "@types/node": "^16.7.13",
"@types/react": "^18.0.0", "@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0", "@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"crypto-browserify": "^3.12.0", "crypto-browserify": "^3.12.0",
"eslint": "^8.3.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-webpack-plugin": "^3.1.1",
"husky": "^9.0.11",
"react-app-rewired": "^2.2.1", "react-app-rewired": "^2.2.1",
"stream-browserify": "^3.0.0" "stream-browserify": "^3.0.0"
} }

View File

@ -25,10 +25,50 @@
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<title>Laconic Wallet</title> <title>Laconic Wallet</title>
<style>
body {
margin: 0;
padding: 0;
height: 100%;
}
.loader-wrapper {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
display: grid;
place-items: center;
}
.loader {
border: 16px solid #e3e3e3;
border-top: 16px solid #6750a4;
border-radius: 50%;
width: 140px;
height: 140px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root">
<div class="loader-wrapper">
<div class="loader"></div>
</div>
</div>
<!-- <!--
This HTML file is a template. This HTML file is a template.
If you open it directly in the browser, you will see an empty page. If you open it directly in the browser, you will see an empty page.