"use client"; import { Button } from "@/components/ui/button"; import { ArrowLeft, Heart } from "lucide-react"; import React from "react"; import ReactMarkdown, { Components } from "react-markdown"; import remarkGfm from "remark-gfm"; import { useRouter } from "next/navigation"; const ReadmePage = () => { const router = useRouter(); const readmeContent = ` ## Attune Heart Therapy Welcome to your Attune Heart Therapy platform! This documentation provides everything you need to understand and navigate the complete system, including the landing page, booking system, user/client dashboard, and admin dashboard. --- ## 📂 What's Included Your Attune Heart Therapy platform includes a comprehensive system for managing therapy appointments and client interactions: | Section | Description | | --------------------- | ------------------------------------------------------------------------------------------------------- | | Landing Page | Public-facing homepage with navigation, services overview, and booking access | | Booking System | User-friendly appointment booking flow where clients can request therapy sessions | | User Dashboard | Client portal to view appointments, manage profile, and track booking status | | Admin Dashboard | Administrative interface to manage appointments, view statistics, and schedule sessions | --- ## 🔐 Admin Dashboard Access ### Step 1: Navigate to Login 1. Go to your website's homepage 2. Click on the **"Admin Panel"** link in the footer (under Quick Links) 3. Or navigate directly to: \`https://attunehearttherapy.com/login\` ### Step 2: Login Credentials **Email Address:** \`Hello@AttuneHeartTherapy.com\` ### Step 3: Access Dashboard 1. Enter your admin email address 2. Enter your password 3. Click **"Sign In"** 4. You will be automatically redirected to the Admin Dashboard --- ## 🔗 Quick Access Links [Visit Attune Heart Therapy](https://attunehearttherapy.com/) - Official website [Access Admin Dashboard](https://attunehearttherapy.com/login) - Login to manage your practice [Book an Appointment](https://attunehearttherapy.com/book-now) - Client booking page --- ## 📞 Support & Contact For technical assistance, questions, or issues: **Email:** [info@BlackBusinessLabs.com](mailto:info@BlackBusinessLabs.com) **Phone:** [(646) 895-4856](tel:+16468954856) - *CEO Tray Bailey's direct mobile* --- *For questions or additional support, please contact Black Business Labs at the information provided above.*`; const components: Components = { h1: ({ node, ...props }) => (
), h2: ({ node, children, ...props }) => { // Extract text content from children const extractText = (child: any): string => { if (typeof child === 'string') return child; if (typeof child === 'number') return String(child); if (React.isValidElement(child)) { const childProps = child.props as any; if (childProps?.children) { return React.Children.toArray(childProps.children).map(extractText).join(''); } } return ''; }; const textContent = React.Children.toArray(children).map(extractText).join(''); // Check if this is the title heading if (textContent.includes('Attune Heart Therapy - System Overview')) { return (
{children}
),
code: (props) => {
// Using `props: any` and casting to bypass TypeScript error with `inline` prop.
const {
node,
inline: isInline,
className,
children,
// Destructure known non-HTML props from react-markdown to prevent them from being spread onto the tag
index,
siblingCount,
ordered,
checked,
style: _style, // if style is passed in props, avoid conflict with style object below
...htmlProps // Spread remaining props, assuming they are valid HTML attributes for
} = props as any;
const codeStyleBase = {
fontFamily:
'SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace',
};
if (isInline) {
return (
{children}
);
}
// For block code (inside )
return (
wrapper
// However, ensure no extra padding/margin if pre handles it
padding: 0,
backgroundColor: "transparent", // Pre has the background
}}
{...htmlProps}
>
{children}
);
},
};
return (
{readmeContent}
);
};
export default ReadmePage;