Skip to content

Commit

Permalink
Merge pull request #3952 from signalco-io/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
AleksandarDev authored Nov 26, 2023
2 parents ef5d9c8 + d054bba commit 216379a
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 87 deletions.
8 changes: 7 additions & 1 deletion web/apps/doprocess/app/(rest)/(marketing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { ListTodo, Play, Share } from '@signalco/ui-icons';
import { NavigatingButton } from '@signalco/ui/NavigatingButton';
import { KnownPages } from '../../../src/knownPages';
import Footer from '../../../components/pages/Footer';
import { ImagePlaceholder } from '../../../components/images/ImagePlaceholder';

function FeaturesSection() {
return (
<section className="w-full py-2 sm:py-8 md:py-12 lg:py-24 xl:py-32">
<div className="container mx-auto px-2 sm:px-4 md:px-6">
<div className="mb-5 text-center md:mb-10 lg:mb-20">
<h1 className="text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl">Explore</h1>
<h1
id="explore"
className="pt-5 text-3xl font-bold tracking-tighter sm:text-4xl md:pt-10 md:text-5xl lg:pt-20">
Explore
</h1>
<p className="mx-auto mt-4 max-w-[700px] text-zinc-500 dark:text-zinc-400 md:text-lg">
Explore our features and start your journey with us.
</p>
Expand Down Expand Up @@ -76,6 +81,7 @@ export default function LandingPage() {
<main>
<CoverSection />
<FeaturesSection />
<Footer />
</main>
);
}
4 changes: 4 additions & 0 deletions web/apps/doprocess/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ html, body, #__next {
height: 100%;
width: 100%;
}

:target {
scroll-margin-top: 64px;
}
57 changes: 57 additions & 0 deletions web/apps/doprocess/components/NavMenu.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
'use client';

import { Link } from '@signalco/ui-primitives/Link';
import { Button } from '@signalco/ui-primitives/Button';
import { Navigate } from '@signalco/ui-icons';
import { SignInButton, SignUpButton, SignedIn, SignedOut } from '@clerk/nextjs';
import { KnownPages } from '../src/knownPages';
import { UserButton } from './UserButton';

type NavLinkItem = {
href: string,
text: string
};

export const navLinks: NavLinkItem[] = [
{ href: '#explore', text: 'Explore' },
// { href: KnownPages.Pricing, text: 'Pricing' }
];

export function NavMenu({ cta }: { cta?: boolean; }) {
return (
<>
{navLinks.map(nl => (
<Link key={nl.href} href={nl.href}>
<Button variant="plain" size="lg">{nl.text}</Button>
</Link>
))}
<SignedOut>
<SignInButton
redirectUrl={KnownPages.Runs}
mode="modal">
<Button variant="plain">Sign in</Button>
</SignInButton>
<SignUpButton
redirectUrl={KnownPages.Processes}
mode="modal">
<Button
variant="solid"
endDecorator={<Navigate />}>
Start for free
</Button>
</SignUpButton>
</SignedOut>
<SignedIn>
{cta && (
<Button
variant="solid"
href={KnownPages.Runs}
endDecorator={<Navigate />}>
Go to app
</Button>
)}
<UserButton afterSignOutUrl="/" />
</SignedIn>
</>
);
}
54 changes: 1 addition & 53 deletions web/apps/doprocess/components/PageNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,10 @@ import { Row } from '@signalco/ui-primitives/Row';
import { Link } from '@signalco/ui-primitives/Link';
import { cx } from '@signalco/ui-primitives/cx';
import { Container } from '@signalco/ui-primitives/Container';
import { Button } from '@signalco/ui-primitives/Button';
import { Navigate } from '@signalco/ui-icons';
import { SignInButton, SignUpButton, SignedIn, SignedOut } from '@clerk/nextjs';
import { KnownPages } from '../src/knownPages';
import { UserButton } from './UserButton';
import { NavMenu } from './NavMenu';
import DoProcessLogo from './brand/DoProcessLogo';

type NavLinkItem = {
href: string,
text: string
};

const navLinks: NavLinkItem[] = [
// { href: '/features', text: 'Features' },
// { href: KnownPages.Pricing, text: 'Pricing' }
];

function NavMenu({ cta }: { cta?: boolean }) {
return (
<>
{navLinks.map(nl => (
<Link key={nl.href} href={nl.href}>
<Button variant="plain" size="lg">{nl.text}</Button>
</Link>
))}
<SignedOut>
<SignInButton
redirectUrl={KnownPages.Runs}
mode="modal">
<Button variant="plain">Sign in</Button>
</SignInButton>
<SignUpButton
redirectUrl={KnownPages.Processes}
mode="modal">
<Button
variant="solid"
endDecorator={<Navigate />}>
Start for free
</Button>
</SignUpButton>
</SignedOut>
<SignedIn>
{cta && (
<Button
variant="solid"
href={KnownPages.Runs}
endDecorator={<Navigate />}>
Go to app
</Button>
)}
<UserButton afterSignOutUrl="/" />
</SignedIn>
</>
);
}

export function PageNav({ fullWidth, cta }: { fullWidth?: boolean, cta?: boolean }) {
return (
<nav className={cx(
Expand Down
65 changes: 33 additions & 32 deletions web/apps/doprocess/components/pages/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,33 @@ import { Container } from '@signalco/ui-primitives/Container';
import { isDeveloper } from '../../src/services/EnvProvider';
import { now } from '../../src/services/DateTimeProvider';


type FooterSectionType = {
header: string,
links: { name: string, href: string, developerOnly?: boolean }[]
developerOnly?: boolean
}

const footerLinks: FooterSectionType[] = [
{
header: 'Product',
links: [
]
},
{
header: 'Community',
links: [
{ name: 'Discussions on GitHub', href: 'https://github.com/signalco-io/signalco/discussions', developerOnly: true },
{ name: 'r/signalco', href: 'https://www.reddit.com/r/signalco/' }
]
},
// {
// header: 'Product',
// links: [
// ]
// },
// {
// header: 'Community',
// links: [
// // { name: 'Discussions on GitHub', href: 'https://github.com/signalco-io/signalco/discussions', developerOnly: true },
// // { name: 'r/signalco', href: 'https://www.reddit.com/r/signalco/' }
// ]
// },
];

const socialLinks = [
{ name: 'GitHub', href: 'https://github.com/signalco-io/signalco', icon: <Typography>gh</Typography> },
{ name: 'reddit', href: 'https://www.reddit.com/r/signalco/', icon: <Typography>/r</Typography> },
{ name: 'X formerly known as Twitter', href: 'https://x.com/signalco_io', icon: <Typography>X</Typography> },
]

export default function Footer() {
return (
<footer className="self-stretch px-2">
Expand All @@ -49,25 +54,21 @@ export default function Footer() {
))}
</div>
<Stack>
<Stack alignItems="center" justifyContent="space-between">
<Typography level="body3">Copyright © {now().getFullYear()} signalco. All rights reserved.</Typography>
<Row spacing={1}>
<IconButton
aria-label="X formerly known as Twitter"
href="https://x.com/signalco_io">
<Typography>X</Typography>
</IconButton>
<IconButton
aria-label="reddit"
href="https://www.reddit.com/r/signalco/">
<Typography>/r</Typography>
</IconButton>
<IconButton
aria-label="GitHub"
href="https://github.com/signalco-io/signalco">
<Typography>gh</Typography>
</IconButton>
</Row>
<Stack spacing={1} alignItems="center" justifyContent="space-between">
<Typography level="body3">Copyright © {now().getFullYear()} doprocess. All rights reserved.</Typography>
{socialLinks && (
<Row spacing={1}>
{socialLinks.map(socialLink => (
<IconButton
key={socialLink.name}
aria-label={socialLink.name}
href={socialLink.href}
variant="link">
{socialLink.icon}
</IconButton>
))}
</Row>
)}
</Stack>
</Stack>
</Stack>
Expand Down
2 changes: 2 additions & 0 deletions web/apps/doprocess/components/shared/InAppCtaSignUp.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { Typography } from '@signalco/ui-primitives/Typography';
import { Row } from '@signalco/ui-primitives/Row';
import { Button } from '@signalco/ui-primitives/Button';
Expand Down
3 changes: 2 additions & 1 deletion web/packages/ui-primitives/src/IconButton/IconButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { forwardRef, type ComponentProps, PropsWithChildren, useMemo } from 'react';
import { Link , LoaderSpinner } from '@signalco/ui-icons';
import { LoaderSpinner } from '@signalco/ui-icons';
import { Slot } from '@radix-ui/react-slot';
import { Link } from '../Link';
import { cx } from '../cx';
import { Button } from '../Button';

Expand Down

7 comments on commit 216379a

@vercel
Copy link

@vercel vercel bot commented on 216379a Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

signalco-blog – ./web/apps/blog

signalco-blog-signalco.vercel.app
signalco-blog.vercel.app
blog.signalco.io
signalco-blog-git-main-signalco.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 216379a Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 216379a Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

signalco-ui-docs – ./web/apps/ui-docs

signalco-ui-docs.vercel.app
ui.signalco.io
signalco-ui-docs-signalco.vercel.app
signalco-ui-docs-git-main-signalco.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 216379a Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 216379a Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

signalco-app – ./web/apps/app

signalco-app.vercel.app
signalco-app-git-main-signalco.vercel.app
signalco-app-signalco.vercel.app
app.signalco.io

@vercel
Copy link

@vercel vercel bot commented on 216379a Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 216379a Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

signalco-slco – ./web/apps/slco

signalco-slco.vercel.app
slco.signalco.io
signalco-slco-git-main-signalco.vercel.app
signalco-slco-signalco.vercel.app
slco.io

Please sign in to comment.