Skip to content

Commit

Permalink
Merge branch 'main' into test/header-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincontext authored Nov 15, 2024
2 parents f39fa1d + 33df453 commit 18c23e9
Show file tree
Hide file tree
Showing 10 changed files with 590 additions and 25 deletions.
16 changes: 16 additions & 0 deletions apps/nextjs/src/app/faqs/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Meta, StoryObj } from "@storybook/react";

import { FAQPageContent } from ".";

const meta: Meta<typeof FAQPageContent> = {
title: "Pages/FAQs",
component: FAQPageContent,
tags: ["autodocs"],
};

export default meta;
type Story = StoryObj<typeof FAQPageContent>;

export const Default: Story = {
args: {},
};
14 changes: 10 additions & 4 deletions apps/nextjs/src/app/faqs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import GetInTouchBox from "@/components/AppComponents/GetInTouchBox";
import Layout from "@/components/Layout";
import { OakBoxCustomMaxWidth } from "@/components/OakBoxCustomMaxWidth";

const FAQPage = () => {
export const FAQPageContent = () => {
const startingRef = useRef(null);
const featuresRef = useRef(null);
const supportRef = useRef(null);
Expand All @@ -36,7 +36,7 @@ const FAQPage = () => {
}
};
return (
<Layout>
<>
<OakMaxWidth>
<OakFlex $justifyContent="space-between">
<OakBox $display={["none", "block"]}>
Expand Down Expand Up @@ -849,8 +849,14 @@ const FAQPage = () => {
</OakBoxCustomMaxWidth>
</OakFlex>
</OakMaxWidth>
</Layout>
</>
);
};

export default FAQPage;
export default function FAQPage() {
return (
<Layout>
<FAQPageContent />
</Layout>
);
}
19 changes: 19 additions & 0 deletions apps/nextjs/src/app/home-page.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { Meta, StoryObj } from "@storybook/react";

import { HomePageContent } from "./home-page";

const meta: Meta<typeof HomePageContent> = {
title: "Pages/Homepage",
component: HomePageContent,
tags: ["autodocs"],
};

export default meta;
type Story = StoryObj<typeof HomePageContent>;

export const Default: Story = {
args: {
// NOTE: We're not including mux video links right now
pageData: null,
},
};
20 changes: 14 additions & 6 deletions apps/nextjs/src/app/home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,25 @@ const OakFlexCustomMaxWidthWithHalfWidth = styled(OakFlexCustomMaxWidth)`
}
`;

export default function HomePage({
pageData,
}: {
type HomePageProps = {
pageData: HomePageQueryResult | null;
}) {
};

export default function HomePage(props: HomePageProps) {
return (
<Layout>
<HomePageContent {...props} />
</Layout>
);
}

export function HomePageContent({ pageData }: HomePageProps) {
const user = useUser();

const { track } = useAnalytics();

return (
<Layout>
<>
<HeroContainer>
<OakFlex
$flexDirection={["column", "row"]}
Expand Down Expand Up @@ -334,7 +342,7 @@ export default function HomePage({
as possible.
</OakP>
</OakFlexWithBackground>
</Layout>
</>
);
}

Expand Down
Loading

0 comments on commit 18c23e9

Please sign in to comment.