Skip to content

Commit

Permalink
Merge branch 'features/design' of github.com:kloudlite/web into featu…
Browse files Browse the repository at this point in the history
…res/design
  • Loading branch information
abdheshnayak committed Jan 26, 2024
2 parents 22efc74 + 542d02e commit 9e04d6f
Show file tree
Hide file tree
Showing 43 changed files with 2,788 additions and 1,663 deletions.
3 changes: 2 additions & 1 deletion src/apps/auth/routes/_providers+/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const restActions = async (ctx: IRemixCtx) => {
).checkOauthEnabled({});

if (checkError) {
logger.error(checkError);
// logger.error(checkError);
console.log(checkError);
}

const { data, errors } = await GQLServerHandler(
Expand Down
2 changes: 1 addition & 1 deletion src/apps/devdoc/app/components/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Container = ({
className?: string;
}) => {
return (
<div className={cn('w-full max-w-[1440px] flex-1 m-auto flex', className)}>
<div className={cn('w-full flex-1 m-auto flex max-w-[1440px]', className)}>
{children}
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/apps/devdoc/app/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ const Footer = ({ config }: { config: IConfig }) => {
'menu' in config.footer
)
return (
<footer className="px-2xl py-6xl md:px-7xl md:py-8xl xl:px-9xl xl:py-8xl 2xl:px-11xl 2xl:py-10xl 3xl:px-14xl 3xl:py-10xl bg-surface-basic-default">
<div className="px-4xl flex flex-row flex-wrap justify-between gap-y-6xl lg:gap-x-2xl max-w-[1440px] m-auto">
<footer className="py-6xl md:py-8xl xl:py-8xl 2xl:py-10xl 3xl:py-10xl bg-surface-basic-default">
<div className="px-3xl md:!px-5xl lg:!px-8xl xl:!px-11xl 2xl:!px-12xl xl:max-w-[1024px] 2xl:max-w-[1120px] box-content flex flex-row flex-wrap justify-between gap-y-6xl lg:gap-x-2xl max-w-[1440px] m-auto">
{config.footer.brand && config.footer.brand}
{config.footer.menu.map((item) => (
<FooterMenu key={item.title} {...item} />
Expand Down
9 changes: 5 additions & 4 deletions src/apps/devdoc/app/components/graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const Graph = ({
<div
className={cn(
'graph',
'before:hidden xl:before:!flex',
{
'before:bg-[100%_5%,100%_5%,5%_100%,5%_100%]': blurSize === 'xs',
'before:bg-[100%_7%,100%_7%,7%_100%,7%_100%]': blurSize === 'sm',
Expand Down Expand Up @@ -74,16 +75,16 @@ export const GraphItem = ({
return (
<div className={cn('relative', className)}>
<div className="absolute pointer-events-none inset-0 z-10">
<div className="h-[calc(100%+40px)] md:h-[calc(100%+64px)] absolute -left-xs -top-[20px] md:-top-[32px]">
<div className="h-[calc(100%+40px)] lg:h-[calc(100%+64px)] absolute -left-xs -top-[20px] lg:-top-[32px]">
{lineVertical()}
</div>
<div className="h-[calc(100%+40px)] md:h-[calc(100%+64px)] absolute -right-xs -top-[20px] md:-top-[32px]">
<div className="h-[calc(100%+40px)] lg:h-[calc(100%+64px)] absolute -right-xs -top-[20px] lg:-top-[32px]">
{lineVertical()}
</div>
<div className="w-[calc(100%+40px)] md:w-[calc(100%+64px)] absolute -top-xs -left-[20px] md:-left-[32px]">
<div className="w-[calc(100%+40px)] lg:w-[calc(100%+64px)] absolute -top-xs -left-[20px] lg:-left-[32px]">
{lineHorizontal()}
</div>
<div className="w-[calc(100%+40px)] md:w-[calc(100%+64px)] absolute -bottom-xs -left-[20px] md:-left-[32px]">
<div className="w-[calc(100%+40px)] lg:w-[calc(100%+64px)] absolute -bottom-xs -left-[20px] lg:-left-[32px]">
{lineHorizontal()}
</div>
</div>
Expand Down
38 changes: 34 additions & 4 deletions src/apps/devdoc/app/components/header-secondary.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,35 @@
import { ReactNode } from 'react';
import { PageItem } from 'nextra/normalize-pages';
import Link from 'next/link';
import { HeaderLink } from './frequents';
import useConfig from '../utils/use-config';
import { cn } from '../utils/commons';
import MenuToggle from './menu-button';
import useMenu from '../utils/use-menu';

export const MobileMenu = ({
items = [],
extra,
}: {
items?: { title: string; to: string }[];
extra?: ReactNode;
}) => {
return (
<div className={cn('flex flex-col')}>
{items.map((item) => (
<Link
href={item.to}
key={item.to}
className="px-2xl py-lg text-text-soft bodyMd"
>
{item.title}
</Link>
))}

{extra}
</div>
);
};
const HeaderSecondary = ({
items,
extra,
Expand All @@ -13,12 +40,12 @@ const HeaderSecondary = ({
activePath?: PageItem[];
}) => {
const { config } = useConfig();

const { state, setState } = useMenu();
return (
<div className="flex flex-row sticky top-0 left-0 right-0 p-2 bg-surface-basic-default border-b border-border-default min-h-[76px] z-50">
<nav className="w-full md:max-w-[1440px] flex-1 m-auto flex flex-row items-center gap-6xl px-12xl">
<nav className="px-3xl md:!px-5xl lg:!px-8xl xl:!px-11xl 2xl:!px-12xl xl:max-w-[1024px] 2xl:max-w-[1120px] box-content flex flex-row items-center gap-6xl lg:m-auto w-full">
{config.logo}
<ul className="hidden md:flex flex-1 flex-row items-center justify-end gap-4xl list-none">
<ul className="hidden md:!flex flex-1 flex-row items-center justify-center gap-4xl list-none">
{items?.map((ni) => (
<li key={ni.to} className="list-none">
<HeaderLink
Expand All @@ -30,7 +57,10 @@ const HeaderSecondary = ({
</li>
))}
</ul>
{extra}
<div className="hidden md:!flex">{extra}</div>
<div className="flex-1 flex md:!hidden items-center justify-end">
<MenuToggle onClick={() => setState(!state)} toggle={state} />
</div>
</nav>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/apps/devdoc/app/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Header = ({

return (
<div className="flex flex-row sticky top-0 left-0 right-0 p-2 bg-surface-basic-default border-b border-border-default min-h-[76px] z-50">
<nav className="w-full md:max-w-[1404px] flex-1 m-auto flex flex-row items-center gap-6xl">
<nav className="px-3xl md:!px-5xl lg:!px-8xl xl:!px-11xl 2xl:!px-12xl xl:max-w-[1024px] 2xl:max-w-[1120px] box-content flex flex-row items-center gap-6xl lg:m-auto w-full">
{config.logo}
<ul className="hidden md:flex flex-1 flex-row items-center justify-end gap-4xl list-none">
{navitems?.items.map((ni) => (
Expand Down
68 changes: 68 additions & 0 deletions src/apps/devdoc/app/components/page/contact-us.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import Container from '~/app/components/container';
import { Button } from 'kl-design-system/atoms/button';
import { TextInput, TextArea } from 'kl-design-system/atoms/input';

const ContactRoot = () => {
return (
<Container className="relative flex flex-col items-center">
<div className="px-3xl md:!px-5xl lg:!px-8xl xl:!px-11xl 2xl:px-12xl pt-6xl md:!pt-8xl xl:!pt-10xl flex flex-col gap-3xl text-center">
<h1 className="heading4xl-marketing md:!heading5xl-marketing lg:!heading6xl-marketing text-text-default">
Contact us
</h1>
<p className="bodyLg-medium md:!bodyXl-medium text-text-soft">
Get in touch and let us know how we can help.
</p>
</div>
<div className="px-3xl md:!px-5xl lg:!px-8xl xl:!px-11xl 2xl:px-12xl py-6xl md:!py-8xl xl:!py-10xl gap-5xl md:!gap-8xl xl:!gap-10xl flex flex-col lg:!flex-row w-full">
<div className="flex flex-col gap-5xl flex-1 md:px-8xl lg:!px-0">
<div className="flex flex-col gap-3xl">
<TextInput label="Full name" size="lg" />
<div className="flex flex-col md:!flex-row gap-3xl">
<div className="basis-full">
<TextInput label="Company name" size="lg" />
</div>
<div className="basis-full">
<TextInput label="Email" size="lg" />
</div>
</div>
<div className="flex flex-col md:!flex-row gap-3xl">
<div className="basis-full">
<TextInput label="Country" size="lg" />
</div>
<div className="basis-full">
<TextInput label="Mobile" size="lg" />
</div>
</div>
<TextArea label="Message" />
</div>
<div className="w-full md:!w-fit">
<Button content="Request demo" size="lg" block />
</div>
</div>
<div className="h-xs lg:!h-auto lg:!w-xs bg-border-default" />
<div className="flex-1 flex flex-col md:!flex-row lg:!flex-col gap-7xl md:!gap-10xl justify-center md:!justify-between lg:!justify-center lg:!max-w-[300px]">
<div className="flex flex-col gap-2xl">
<div className="flex flex-col gap-lg">
<span className="headingLg text-text-default">Sales</span>
<span className="bodyLg text-text-soft">
We’d love to talk about how we can work together.
</span>
</div>
<Button variant="plain" content="[email protected]" />
</div>
<div className="flex flex-col gap-2xl">
<div className="flex flex-col gap-lg">
<span className="headingLg text-text-default">Support</span>
<span className="bodyLg text-text-soft">
We’re here to help with any questions you may have.
</span>
</div>
<Button variant="plain" content="[email protected]" />
</div>
</div>
</div>
</Container>
);
};

export default ContactRoot;
Loading

0 comments on commit 9e04d6f

Please sign in to comment.