diff --git a/package-lock.json b/package-lock.json index 3fb4758..9bfc740 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,8 @@ "animate.css": "^4.1.1", "next": "16.2.1", "react": "19.2.4", - "react-dom": "19.2.4" + "react-dom": "19.2.4", + "typed.js": "^3.0.0" }, "devDependencies": { "@tailwindcss/postcss": "^4", @@ -6363,6 +6364,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/typed.js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/typed.js/-/typed.js-3.0.0.tgz", + "integrity": "sha512-X4pjf0E7riZBo6j3NS21/7cJJ20osSOtD1OxlRoKfFU3GsdPuSpWlFcIKWf0k8uoKwBBrPuHGx+fKeU6GzRcKg==", + "license": "GPL-3.0" + }, "node_modules/typescript": { "version": "5.9.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", diff --git a/package.json b/package.json index 7de588a..a0d67a8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "animate.css": "^4.1.1", "next": "16.2.1", "react": "19.2.4", - "react-dom": "19.2.4" + "react-dom": "19.2.4", + "typed.js": "^3.0.0" }, "devDependencies": { "@tailwindcss/postcss": "^4", diff --git a/public/file.svg b/public/file.svg deleted file mode 100644 index 004145c..0000000 --- a/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/globe.svg b/public/globe.svg deleted file mode 100644 index 567f17b..0000000 --- a/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index 7705396..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/window.svg b/public/window.svg deleted file mode 100644 index b2b2a44..0000000 --- a/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index 5ea88bc..ec5df3a 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -57,4 +57,17 @@ .sidemenu{ height:100%; width: 100%; +} + +@keyframes ecgMove { + 0% { + transform: translateX(0%); + } + 100% { + transform: translateX(-50%); + } +} + +.animate-ecg { + animation: ecgMove 6s linear infinite; } \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 883ee88..1c6d148 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -16,6 +16,7 @@ export default function RootLayout({ return ( {children} diff --git a/src/app/page.tsx b/src/app/page.tsx index b3a68b0..abfc481 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,9 +1,108 @@ "use client" +import { useEffect, useRef } from "react"; +import Typed from "typed.js"; +import Link from "next/link"; export default function Home(){ + const el = useRef(null); + useEffect(() => { + const typed = new Typed(el.current, { + strings: ['A minimal friction', 'A zero-login'], + typeSpeed: 50, + loop:true + }); + return () => { + typed.destroy(); // cleanup (IMPORTANT) + }; + }, []); + return( <> - +
+
+
+
+ +
+ + + +
+
+

CalcForCardiac:

calculator

+

+ When every second counts, clarity matters. CalcForCardiac gives you instant, precise cardiac calculations — no clutter, no login, just what you need. +

+

+ No login required • Free • Instant results +

+
+ + +
+
+
+
+
+

+ Start with What You Need +

+

+ Fast and reliable medical calculators — ready when you are. +

+
+
+
+

Cockcroft Gault Equation

+

Takes age, weight, creatinine and gender as input and returns Creatinine Clearance

+
+ +
+
+
+
+
+

IMPACT Score

+

A risk assessment score used to calculate 1-year mortality prediction rate after a cardiac transplant by using 12 parameters

+
+ +
+
+
+
+
+

TIMI Score

+

a clinical risk assessment tool used to predict 14-day mortality and ischemic events in patients with UA/NSTEMI (unstable angina/non-ST-elevation myocardial infarction)

+
+ +
+
+
+ +
+
+
+
+
+ +

+ Built with ❤️ by Saksham Vitwekar +

+ +
); } \ No newline at end of file