diff --git a/src/pages/employers/index.tsx b/src/app/(informational)/employers/index.tsx similarity index 100% rename from src/pages/employers/index.tsx rename to src/app/(informational)/employers/index.tsx diff --git a/src/app/(informational)/layout.tsx b/src/app/(informational)/layout.tsx new file mode 100644 index 0000000..4f12dbb --- /dev/null +++ b/src/app/(informational)/layout.tsx @@ -0,0 +1,58 @@ +import { headers } from "next/headers"; +import classnames from 'classnames'; +import Navbar from '@/components/Navbar'; +import Footer from '@/components/Footer'; + + +export default async function LandingPageLayout({ children }: { children: React.ReactNode }) { + const headersList = await headers(); + const pathname = headersList.get("x-current-path"); + const landingPageType = pathname?.split('/').pop() || ""; + const headerText = landingPageType.charAt(0).toUpperCase() + landingPageType.slice(1); + + return ( + <> + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {headerText} +
+
+
+
+
+
+
+ {children} +
+
+
+
+ + ) +} \ No newline at end of file diff --git a/src/pages/members/index.tsx b/src/app/(informational)/members/indexold.tsx similarity index 93% rename from src/pages/members/index.tsx rename to src/app/(informational)/members/indexold.tsx index 73a6c53..31d6ffc 100644 --- a/src/pages/members/index.tsx +++ b/src/app/(informational)/members/indexold.tsx @@ -1,5 +1,5 @@ -import LandingPage from '../../components/LandingPage'; -import InlineLink from "../../components/InlineLink"; +import LandingPage from '../../../components/LandingPage'; +import InlineLink from "../../../components/InlineLink"; // import TextImage50 from "../../components/TextImage50-50"; export default function Members() { diff --git a/src/app/(informational)/members/page.tsx b/src/app/(informational)/members/page.tsx new file mode 100644 index 0000000..eaf938c --- /dev/null +++ b/src/app/(informational)/members/page.tsx @@ -0,0 +1,49 @@ +import { Schibsted_Grotesk } from 'next/font/google' +import classnames from 'classnames'; +import InlineLink from "@/components/InlineLink"; +import QuickAccessLinks, { QuickLink } from '@/components/QuickAccessLinks'; + +const font = Schibsted_Grotesk({ subsets: ['latin'] }) + +const quickLinks: QuickLink[] = [ + { + display: "Login/Registration", + url: "/" + }, + { + display: "Link to Thing 1", + url: "/" + }, + { + display: "Link to Thing 2", + url: "/" + }, + { + display: "Link to another Thing", + url: "/" + } +] + + +export default function Members() { + return ( + <> + +
+ At Britton Benefit Services, LLC we're making employee benefits more affordable. In addition to the cost savings you receive when your employer chooses Britton Benefit Services, LLC we also make sure the important information you need is at your fingertips. +
+
+ That's why our member portal offers you 24/7 access to things like in-network provider lists, claim forms and prescription medication information. Select from any of the links below to get access to the benefit information and forms you need to file a claim, search for a provider or learn more about your benefits plan. +
+
+ At Britton Benefit Services, LLC we're making employee benefits more affordable. In addition to the cost savings you receive when your employer chooses Britton Benefit Services, LLC we also make sure the important information you need is at your fingertips. +
+
+ That's why our member portal offers you 24/7 access to things like in-network provider lists, claim forms and prescription medication information. Select from any of the links below to get access to the benefit information and forms you need to file a claim, search for a provider or learn more about your benefits plan. +
+ + ) +} \ No newline at end of file diff --git a/src/pages/dashboard/broker/index.tsx b/src/app/dashboard/broker/index.tsx similarity index 100% rename from src/pages/dashboard/broker/index.tsx rename to src/app/dashboard/broker/index.tsx diff --git a/src/app/dashboard/layout.tsx b/src/app/dashboard/layout.tsx new file mode 100644 index 0000000..fee9a5f --- /dev/null +++ b/src/app/dashboard/layout.tsx @@ -0,0 +1,72 @@ +"user client" + +import { sideNavItems } from '@/lib/dashboard'; +import { headers } from "next/headers"; +import Script from 'next/script'; + +import AccountDropdown from '../../components/AccountDropdown'; +import SideNav from "@/components/SideNav"; +import DashboardHeader from "@/components/DashboardHeader"; +import Image from 'next/image'; +import classnames from 'classnames'; + + +export default async function DashboardLayout({ children }: { children: React.ReactNode }) { + const headersList = await headers(); + const pathname = headersList.get("x-current-path"); + const dashboardType = pathname?.split('/').pop() || ""; + const pageNavItems = sideNavItems[dashboardType]; + + return ( +
+