Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions apps/website/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactElement, ReactNode, useMemo, useState } from "react";
import type { NextPage } from "next";
import type { AppProps } from "next/app";
import Head from "next/head";
import { DxcApplicationLayout, DxcButton, DxcToastsQueue } from "@dxc-technology/halstack-react";
import { DxcApplicationLayout, DxcLink, DxcToastsQueue } from "@dxc-technology/halstack-react";
import MainContent from "@/common/MainContent";
import { useRouter } from "next/router";
import { LinkDetails, LinksSectionDetails, LinksSections } from "@/common/pagesList";
Expand Down Expand Up @@ -115,13 +115,9 @@ export default function App({ Component, pageProps, emotionCache = clientSideEmo
<DxcApplicationLayout.Header
appTitle="Theme Generator"
sideContent={
<Link href="/utilities/theme-generator/user-guide">
<DxcButton
label="Halstack Design System"
icon="description"
mode="secondary"
size={{ height: "large", width: "fitContent" }}
/>
// Will navigate to a documentation page that will probably be open in a different tab.
<Link href="" legacyBehavior passHref>
<DxcLink icon="description">Documentation</DxcLink>
</Link>
}
/>
Expand All @@ -142,7 +138,7 @@ export default function App({ Component, pageProps, emotionCache = clientSideEmo
>
<DxcApplicationLayout.Main>
<DxcToastsQueue duration={7000}>
<MainContent>{componentWithLayout}</MainContent>
{!isThemeGenerator ? <MainContent>{componentWithLayout}</MainContent> : <>{componentWithLayout}</>}
</DxcToastsQueue>
</DxcApplicationLayout.Main>
</DxcApplicationLayout>
Expand Down
2 changes: 1 addition & 1 deletion apps/website/pages/theme-generator/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Head from "next/head";
import ThemeGeneratorPage from "screens/utilities/theme-generator/ThemeGeneratorPage";
import ThemeGeneratorPage from "screens/theme-generator/ThemeGeneratorPage";

const Index = () => {
return (
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions apps/website/screens/theme-generator/ThemeGeneratorPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { DxcLink, DxcContainer, DxcFlex, DxcHeading, DxcTypography } from "@dxc-technology/halstack-react";
import Link from "next/link";

const ThemeGeneratorPage = () => {
return (
<>
<DxcContainer
width="100%"
boxSizing="border-box"
background={{
image: "url(/theme-generator-landing-bg.png)",
position: "0px 50%",
size: "cover",
}}
borderRadius="0% 0% 640px 0%"
height="305px"
>
<DxcFlex direction="column" fullHeight alignItems="center" justifyContent="center">
<DxcContainer width="80%">
<DxcFlex direction="column" fullHeight justifyContent="center" gap="var(--spacing-gap-ml)">
<DxcFlex direction="column" justifyContent="center" gap="var(--spacing-gap-m)">
<DxcHeading text="Welcome to Halstack Theme Generator" />
<DxcContainer maxWidth="60%">
<DxcTypography fontSize="var(--typography-body-xl)">
Create and explore your brand within Halstack. Configure your core colors, upload your logo
variants, and see in real time how your theme works across components, layouts, and real product
scenarios.
</DxcTypography>
</DxcContainer>
</DxcFlex>
<Link href="" passHref legacyBehavior>
<DxcLink icon="arrow_forward" iconPosition="after">
Start your theme
</DxcLink>
</Link>
</DxcFlex>
</DxcContainer>
</DxcFlex>
</DxcContainer>
</>
);
};
export default ThemeGeneratorPage;

This file was deleted.