From 08bfa5d6bad83c4997e15f50d09e9f873e61508a Mon Sep 17 00:00:00 2001 From: Rucha-Ambaliya Date: Thu, 9 Jan 2025 22:17:32 +0530 Subject: [PATCH 1/3] Converted styling of PreLoader.jsx --- frontend/src/components/common/Preloader.jsx | 48 ++++++++----- .../src/styles/components/_preloader.scss | 72 ------------------- frontend/src/styles/style.scss | 1 - 3 files changed, 30 insertions(+), 91 deletions(-) delete mode 100644 frontend/src/styles/components/_preloader.scss diff --git a/frontend/src/components/common/Preloader.jsx b/frontend/src/components/common/Preloader.jsx index 1128de2..045cdd6 100644 --- a/frontend/src/components/common/Preloader.jsx +++ b/frontend/src/components/common/Preloader.jsx @@ -3,23 +3,35 @@ import logo from "../../assets/header.png"; const Preloader = () => { return ( -
-
-
-
- - - - - -
-
- TelMedSphere Logo -
-
-
+
+
+ {/* Wave Animation */} +
+ + + + + +
+ + {/* Logo with Pulse Animation */} +
+ TelMedSphere Logo +
+
); -}; - -export default Preloader; + }; + + export default Preloader; \ No newline at end of file diff --git a/frontend/src/styles/components/_preloader.scss b/frontend/src/styles/components/_preloader.scss deleted file mode 100644 index 955f824..0000000 --- a/frontend/src/styles/components/_preloader.scss +++ /dev/null @@ -1,72 +0,0 @@ -.st-perloader { - position: fixed; - height: 100vh; - width: 100vw; - z-index: 99999; - left: 0; - top: 0; - background-color: #fff; - display: flex; - align-items: center; - justify-content: center; -} - -.st-perloader .st-perloader-in { - position: relative; - text-align: center; -} - -.st-perloader .st-perloader-in svg { - width: 110px; - height: 110px; -} - -.st-perloader .st-wave-second { - position: relative; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 110px; - overflow: hidden; - animation: spark 1.25s linear infinite; -} - -.st-perloader .st-wave-second svg { - fill: red; -} - -.st-perloader.st-color1 .st-wave-second svg, -.st-perloader.st-color2 .st-wave-second svg { - fill: red; -} - -@keyframes spark { - 0% { - max-width: 0; - } - 100% { - max-width: 100%; - } -} - -.preloader-text h1 { - font-size: 3rem; - margin-top: 30px; - color: rgb(255, 55, 0); - animation: pulse 2s infinite; -} - -@keyframes pulse { - 0%, 100% { - transform: scale(1); - } - 50% { - transform: scale(1.1); - } -} - -.preloader-image img { - height: 75px; - margin-top: 0px; - animation: pulse 2s infinite; -} diff --git a/frontend/src/styles/style.scss b/frontend/src/styles/style.scss index 1584a69..a5e1bb1 100644 --- a/frontend/src/styles/style.scss +++ b/frontend/src/styles/style.scss @@ -10,7 +10,6 @@ @import "./components/form"; @import "./components/filterbar"; @import "./components/searchbar"; -@import "./components/preloader"; // Pages @import "./pages/home"; From c18cc1bdb51a83eeb2882fd9296389196999a578 Mon Sep 17 00:00:00 2001 From: Rucha-Ambaliya Date: Thu, 9 Jan 2025 22:26:01 +0530 Subject: [PATCH 2/3] Made responsive for small screen --- frontend/src/components/common/Preloader.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/common/Preloader.jsx b/frontend/src/components/common/Preloader.jsx index 045cdd6..bf86013 100644 --- a/frontend/src/components/common/Preloader.jsx +++ b/frontend/src/components/common/Preloader.jsx @@ -13,7 +13,7 @@ const Preloader = () => { @@ -22,11 +22,11 @@ const Preloader = () => {
{/* Logo with Pulse Animation */} -
+
TelMedSphere Logo
From 2d51c54e1fce5cf6673f210e3506a9faa0e121dc Mon Sep 17 00:00:00 2001 From: Rucha-Ambaliya Date: Thu, 9 Jan 2025 22:41:53 +0530 Subject: [PATCH 3/3] Added custum animation --- frontend/tailwind.config.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 0557cd2..7e86ddf 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -72,6 +72,29 @@ module.exports = { xs: "480px", xxs: "400px", }, + animation: { + spark: "spark 1.5s linear infinite", + "pulse-custom": "pulse 2s infinite", + }, + keyframes: { + spark: { + "0%": { + maxWidth: "0%", + }, + "100%": { + maxWidth: "100%", + }, + }, + pulse: { + "0%, 100%": { + transform: "scale(1)", + }, + "50%": { + transform: "scale(1.1)", + opacity: "1", + }, + }, + }, }, }, plugins: [],