diff --git a/frontend/src/components/common/Preloader.jsx b/frontend/src/components/common/Preloader.jsx index 1128de2..bf86013 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"; 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: [],