-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4198 from signalco-io/feat/cms/core
Feat/cms/core
- Loading branch information
Showing
63 changed files
with
593 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,63 @@ | ||
import { ExoticComponent, memo } from 'react'; | ||
import { Heading1 } from '@signalco/cms-feature-marketing/Heading'; | ||
import { Footer1 } from '@signalco/cms-feature-marketing/Footer'; | ||
import { SectionsView } from '@signalco/cms-core/SectionsView'; | ||
import { type SectionData } from '@signalco/cms-core/SectionData'; | ||
import { KnownPages } from '../../../src/knownPages'; | ||
|
||
function Cover({ header }: { header?: string }) { | ||
return ( | ||
<div>{header}</div> | ||
) | ||
} | ||
const data: SectionData[] = [ | ||
{ | ||
component: 'Heading1', | ||
header: 'uier', | ||
ctas: [ | ||
{ label: 'Get Started', href: KnownPages.App }, | ||
] | ||
}, | ||
{ | ||
component: 'Footer1', | ||
features: [ | ||
{ | ||
header: 'Product', | ||
ctas: [ | ||
{ label: 'uier', href: KnownPages.App }, | ||
{ label: 'uier', href: KnownPages.App }, | ||
{ label: 'uier', href: KnownPages.App }, | ||
] | ||
}, | ||
{ | ||
header: 'Product', | ||
ctas: [ | ||
{ label: 'uier', href: KnownPages.App }, | ||
{ label: 'uier', href: KnownPages.App }, | ||
{ label: 'uier', href: KnownPages.App }, | ||
] | ||
}, | ||
{ | ||
header: 'Legal', | ||
ctas: [ | ||
{ label: 'Privacy Policy', href: KnownPages.LegalPrivacyPolicy }, | ||
{ label: 'Terms of Service', href: KnownPages.LegalTermsOfService }, | ||
{ label: 'Cookie Policy', href: KnownPages.LegalCookiePolicy }, | ||
{ label: 'Acceptable Use Policy', href: KnownPages.LegalAcceptableUsePolicy }, | ||
{ label: 'SLA', href: KnownPages.LegalSla } | ||
] | ||
} | ||
], | ||
tagline: 'uier', | ||
} | ||
]; | ||
|
||
export default function LandingPage() { | ||
const data = [ | ||
{ | ||
header: 'uier', | ||
ctas: [ | ||
{ label: 'Get Started', href: KnownPages.App }, | ||
] | ||
} | ||
]; | ||
|
||
const sections = [ | ||
Cover | ||
]; | ||
const sectionComponents: { [key: string]: ExoticComponent<SectionData> } = { | ||
'Heading1': memo(Heading1), | ||
'Footer1': memo(Footer1) | ||
}; | ||
|
||
export default function LandingPage() { | ||
return ( | ||
<main> | ||
{sections.map((Section, index) => { | ||
const sectionData = data[index]; | ||
return ( | ||
<Section key={index} {...sectionData} /> | ||
); | ||
})} | ||
<SectionsView | ||
sectionsData={data} | ||
componentsRegistry={sectionComponents} /> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
export const KnownPages = { | ||
Landing: '/', | ||
App: '/app', | ||
|
||
LegalPrivacyPolicy: '/legal/privacy-policy', | ||
LegalTermsOfService: '/legal/terms-of-service', | ||
LegalCookiePolicy: '/legal/cookie-policy', | ||
LegalAcceptableUsePolicy: '/legal/acceptable-use-policy', | ||
LegalSla: '/legal/sla' | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
export { PageLayout as default } from '../../components/layouts/PageLayout'; | ||
import { PageLayout } from '../../components/layouts/PageLayout'; | ||
|
||
export default function RestLayout() { | ||
return <PageLayout />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export function EmptyLayout(props: PropsWithChildren) { | ||
const { | ||
children | ||
} = props; | ||
|
||
return ( | ||
<div className="relative h-full"> | ||
{children} | ||
</div> | ||
<main className="relative h-full" {...props} /> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { Stack } from '@signalco/ui-primitives/Stack'; | ||
import Footer from '../pages/Footer'; | ||
import { PageNav } from '../PageNav'; | ||
import { PageLayout } from './PageLayout'; | ||
|
||
export function PageFullLayout(props: PropsWithChildren) { | ||
return ( | ||
<Stack spacing={4}> | ||
<PageNav fullWidth /> | ||
<div className="pt-20"> | ||
{props.children} | ||
</div> | ||
<Footer /> | ||
</Stack> | ||
); | ||
return <PageLayout fullWidth {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,76 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { Fragment, PropsWithChildren } from 'react'; | ||
import { Stack } from '@signalco/ui-primitives/Stack'; | ||
import { Container } from '@signalco/ui-primitives/Container'; | ||
import Footer from '../pages/Footer'; | ||
import { CompanyX, CompanyReddit, CompanyGitHub } from '@signalco/ui-icons'; | ||
import { Footer1 } from '@signalco/cms-feature-marketing/Footer'; | ||
import { SectionData } from '@signalco/cms-core/SectionData'; | ||
import { SystemStatusLabel } from '../pages/SystemStatusLabel'; | ||
import { PageNav } from '../PageNav'; | ||
import SignalcoLogotype from '../icons/SignalcoLogotype'; | ||
import { KnownPages } from '../../src/knownPages'; | ||
|
||
export function PageLayout({ children }: PropsWithChildren) { | ||
const footerData: SectionData = { | ||
tagline: 'signalco', | ||
asset: <SignalcoLogotype width={220} />, | ||
features: [ | ||
{ | ||
header: 'Product', | ||
ctas: [ | ||
{ label: 'Features', href: KnownPages.Features }, | ||
{ label: 'Channels', href: KnownPages.Channels }, | ||
{ label: 'App', href: KnownPages.App }, | ||
{ label: 'Pricing', href: KnownPages.Pricing }, | ||
{ label: 'Station', href: KnownPages.Station }, | ||
{ label: 'Roadmap', href: KnownPages.Roadmap }, | ||
] | ||
}, | ||
{ | ||
header: 'Community', | ||
ctas: [ | ||
{ label: 'r/signalco', href: 'https://www.reddit.com/r/signalco/' }, | ||
{ label: 'Discussions on GitHub', href: 'https://github.com/signalco-io/signalco/discussions' }, | ||
] | ||
}, | ||
{ | ||
header: 'Resources', | ||
ctas: [ | ||
{ label: 'Status', href: KnownPages.Status }, | ||
{ label: 'Design', href: KnownPages.UiDocs }, | ||
{ label: 'API', href: KnownPages.DocsApi } | ||
] | ||
}, | ||
{ | ||
header: 'Legal', | ||
ctas: [ | ||
{ label: 'Privacy Policy', href: KnownPages.LegalPrivacyPolicy }, | ||
{ label: 'Terms of Service', href: KnownPages.LegalTermsOfService }, | ||
{ label: 'Cookie Policy', href: KnownPages.LegalCookiePolicy }, | ||
{ label: 'Acceptable Use Policy', href: KnownPages.LegalAcceptableUsePolicy }, | ||
{ label: 'SLA', href: KnownPages.LegalSla }, | ||
] | ||
}, | ||
{ | ||
tagline: 'SystemStatus', | ||
asset: <SystemStatusLabel /> | ||
} | ||
], | ||
ctas: [ | ||
{ label: 'X formerly known as Twitter', href: 'https://x.com/signalco_io', icon: <CompanyX /> }, | ||
{ label: 'reddit', href: 'https://www.reddit.com/r/signalco/', icon: <CompanyReddit /> }, | ||
{ label: 'GitHub', href: 'https://github.com/signalco-io/signalco', icon: <CompanyGitHub /> }, | ||
] | ||
}; | ||
|
||
export function PageLayout({ children, fullWidth }: PropsWithChildren<{ fullWidth?: boolean }>) { | ||
const ContentContainer = fullWidth ? Fragment : Container; | ||
return ( | ||
<Stack spacing={4}> | ||
<PageNav /> | ||
<PageNav fullWidth={fullWidth} /> | ||
<main className="pt-20"> | ||
<Container> | ||
<ContentContainer> | ||
{children} | ||
</Container> | ||
</ContentContainer> | ||
</main> | ||
<Footer /> | ||
<Footer1 {...footerData} /> | ||
</Stack>); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.