Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 89162110a5 | |||
| dbe10fd339 | |||
| c30e085f05 | |||
| 91b9f8bbe8 | |||
| b1422b0c41 | |||
| b1cc36f152 |
@@ -1,14 +1,14 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./styles/variables.css";
|
||||
import "./styles/base.css";
|
||||
import { DM_Sans } from "next/font/google";
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter", subsets: ["latin"],
|
||||
const dmSans = DM_Sans({
|
||||
variable: "--font-dm-sans", subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Axis - Personal Growth Platform", description: "Map your growth across mind, body, spirit, and vocation. Track your progress and achieve true life balance."};
|
||||
title: "Axis - Personal Growth Platform", description: "Track your mind, body, spirit, and vocation in one unified system. Transform scattered self-improvement into structured, measurable progress."};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@@ -17,29 +17,23 @@ export default function RootLayout({
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={`${inter.variable}`}>
|
||||
{children}
|
||||
<script
|
||||
id="lenis-script"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
const html = document.documentElement;
|
||||
const body = document.body;
|
||||
let lenis;
|
||||
const initLenis = () => {
|
||||
import('https://cdn.jsdelivr.net/gh/darkroomengineering/lenis@latest/bundled/lenis.js').then(() => {
|
||||
lenis = new window.Lenis();
|
||||
function raf(time) {
|
||||
lenis.raf(time);
|
||||
requestAnimationFrame(raf);
|
||||
}
|
||||
requestAnimationFrame(raf);
|
||||
});
|
||||
};
|
||||
initLenis();
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
<body className={`${dmSans.variable} antialiased`}>
|
||||
<ServiceWrapper>
|
||||
<Tag />
|
||||
{children}
|
||||
</ServiceWrapper>
|
||||
<script>
|
||||
{`
|
||||
(function() {
|
||||
try {
|
||||
const theme = localStorage.getItem('theme') || 'light';
|
||||
if (theme === 'dark') {
|
||||
document.documentElement.classList.add('dark');
|
||||
}
|
||||
} catch (e) {}
|
||||
})();
|
||||
`}
|
||||
</script>
|
||||
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
@@ -1410,4 +1404,12 @@ export default function RootLayout({
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
function ServiceWrapper({ children }: { children: React.ReactNode }) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
function Tag() {
|
||||
return null;
|
||||
}
|
||||
@@ -31,7 +31,6 @@ export default function LandingPage() {
|
||||
brandName="Axis"
|
||||
navItems={[
|
||||
{ name: "Features", id: "howitworks" },
|
||||
{ name: "How It Works", id: "howitworks" },
|
||||
{ name: "Testimonials", id: "testimonials" },
|
||||
{ name: "FAQ", id: "faq" },
|
||||
{ name: "Contact", id: "contact" }
|
||||
@@ -167,6 +166,8 @@ export default function LandingPage() {
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="left"
|
||||
faqsAnimation="slide-up"
|
||||
animationType="smooth"
|
||||
showCard={true}
|
||||
faqs={[
|
||||
{
|
||||
id: "1", title: "What makes Axis different from other self-improvement apps?", content: "Axis provides a unified system for tracking growth across four key life dimensions—mind, body, spirit, and vocation—rather than forcing you to juggle multiple specialized apps. Our holistic approach reveals how balance (or imbalance) in one area affects others, and our data-driven insights help you make meaningful progress."
|
||||
@@ -213,7 +214,6 @@ export default function LandingPage() {
|
||||
{
|
||||
title: "Product", items: [
|
||||
{ label: "Features", href: "#howitworks" },
|
||||
{ label: "How It Works", href: "#howitworks" },
|
||||
{ label: "Pricing", href: "#" },
|
||||
{ label: "Download", href: "https://example.com/download" }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user