diff --git a/package-lock.json b/package-lock.json index 486dcb9..b287e15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "calcforcardiac", "version": "0.1.0", "dependencies": { + "animate.css": "^4.1.1", "next": "16.2.1", "react": "19.2.4", "react-dom": "19.2.4" @@ -18,6 +19,7 @@ "@types/react": "^19", "@types/react-dom": "^19", "babel-plugin-react-compiler": "1.0.0", + "daisyui": "^5.5.19", "eslint": "^9", "eslint-config-next": "16.2.1", "tailwindcss": "^4", @@ -2180,6 +2182,12 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/animate.css": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/animate.css/-/animate.css-4.1.1.tgz", + "integrity": "sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ==", + "license": "MIT" + }, "node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -2672,6 +2680,16 @@ "dev": true, "license": "MIT" }, + "node_modules/daisyui": { + "version": "5.5.19", + "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.5.19.tgz", + "integrity": "sha512-pbFAkl1VCEh/MPCeclKL61I/MqRIFFhNU7yiXoDDRapXN4/qNCoMxeCCswyxEEhqL5eiTTfwHvucFtOE71C9sA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/saadeghi/daisyui?sponsor=1" + } + }, "node_modules/damerau-levenshtein": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", diff --git a/package.json b/package.json index 11579b1..a48b44f 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint": "eslint" }, "dependencies": { + "animate.css": "^4.1.1", "next": "16.2.1", "react": "19.2.4", "react-dom": "19.2.4" @@ -19,6 +20,7 @@ "@types/react": "^19", "@types/react-dom": "^19", "babel-plugin-react-compiler": "1.0.0", + "daisyui": "^5.5.19", "eslint": "^9", "eslint-config-next": "16.2.1", "tailwindcss": "^4", diff --git a/public/calcforcardiac_logo.png b/public/calcforcardiac_logo.png new file mode 100644 index 0000000..c94cec5 Binary files /dev/null and b/public/calcforcardiac_logo.png differ diff --git a/src/app/(calculators)/calculators/page.tsx b/src/app/(calculators)/calculators/page.tsx new file mode 100644 index 0000000..96da397 --- /dev/null +++ b/src/app/(calculators)/calculators/page.tsx @@ -0,0 +1,17 @@ +"use client" + +import Navbar from "@/app/utils/Navbar" +import Sidemenu from "@/app/utils/Sidemenu"; +import { useState } from "react"; + +export default function Calculators(){ + const [navbar, setNavbar] = useState(false); + return( +
+ + +
+
+
+ ); +} \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index a2dc41e..a638af1 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,26 +1,38 @@ @import "tailwindcss"; - -:root { - --background: #ffffff; - --foreground: #171717; +@plugin "daisyui"; +.calculators-container{ + display: grid; + grid-template-areas:"navbar navbar" "sidebar content" "footer footer"; + height: 100vh; } - -@theme inline { - --color-background: var(--background); - --color-foreground: var(--foreground); - --font-sans: var(--font-geist-sans); - --font-mono: var(--font-geist-mono); +.navbar{ + grid-area: navbar; + background: #ed1b24; + color: #FFFFFF; } - -@media (prefers-color-scheme: dark) { - :root { - --background: #0a0a0a; - --foreground: #ededed; - } +#logo{ + transform: translateY(1px); } - -body { - background: var(--background); - color: var(--foreground); - font-family: Arial, Helvetica, sans-serif; +.sidebar{ + grid-area: sidebar; + color: #E5E7EB; + background: #F9FAFB; } +.content{ + grid-area: content; + background: #F9FAFB; /* soft white */ +} +.footer{ + grid-area: footer; + background: #cccccc; +} +.website-name { + font-size: 18px; + font-weight: 600; + align-self: center; + line-height: 1; +} +.sidemenu{ + height:100%; + width: 100%; +} \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 976eb90..f1d8007 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,16 +1,6 @@ import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; - -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); +import 'animate.css'; export const metadata: Metadata = { title: "Create Next App", @@ -25,7 +15,6 @@ export default function RootLayout({ return ( {children} diff --git a/src/app/page.tsx b/src/app/page.tsx index 3f36f7c..d1e61da 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,64 +2,6 @@ import Image from "next/image"; export default function Home() { return ( -
-
- Next.js logo -
-

- To get started, edit the page.tsx file. -

-

- Looking for a starting point or more instructions? Head over to{" "} - - Templates - {" "} - or the{" "} - - Learning - {" "} - center. -

-
-
- - Vercel logomark - Deploy Now - - - Documentation - -
-
-
+ <> ); } diff --git a/src/app/utils/Navbar.tsx b/src/app/utils/Navbar.tsx new file mode 100644 index 0000000..e65c3fd --- /dev/null +++ b/src/app/utils/Navbar.tsx @@ -0,0 +1,43 @@ +"use client" + +type Props = { + navbarToggle: React.Dispatch>; +}; + +export default function Navbar({navbarToggle}: Props){ + return( +
+
+
+ + +
+
+
+ + + CalcForCardiac + +
+
+ + +
+
+ ); +} \ No newline at end of file diff --git a/src/app/utils/Sidemenu.tsx b/src/app/utils/Sidemenu.tsx new file mode 100644 index 0000000..a4cd6e5 --- /dev/null +++ b/src/app/utils/Sidemenu.tsx @@ -0,0 +1,30 @@ +"use client" + +type Props = { + isNavOpen: boolean; +} + +export default function Sidemenu({isNavOpen}: Props){ + return( +
+ +
+ ); +} \ No newline at end of file