Skip to content

Commit

Permalink
[ENG-1268] Add more information about what we can do at Konfig to web…
Browse files Browse the repository at this point in the history
…site (#306)

* fix docs image on mobile

* TODO: Demos section

* update

* save

* save

* save

* demo section done

* demo section + polish padding

* polisg

* fixed heading

* "Our Products" section

* fix doc

---------

Co-authored-by: konfig-bot <[email protected]>
  • Loading branch information
dphuang2 and konfig-bot authored Oct 20, 2023
1 parent d20ff99 commit 159fbb3
Show file tree
Hide file tree
Showing 28 changed files with 332 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ need to configure your GitHub repository to revalidate the portal on every push.
## GitHub Action

In the same repository that holds your `konfig.yaml` file(s), add the following
GitHub Action under `.github/workflows/konfig-push.yaml` to the repository that
GitHub Action under `.github/workflows/konfig-revalidate-portal.yaml` to the repository that
hosts your OAS. Replace the following values with your own:

<CH.Section>
Expand Down
2 changes: 2 additions & 0 deletions konfigthis.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"typescript": "5.0.4"
},
"devDependencies": {
"@types/highlight.js": "^10.1.0",
"@types/marked": "^6.0.0",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.27",
"tailwindcss": "^3.3.3"
Expand Down
Binary file added konfigthis.com/public/interactive-demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added konfigthis.com/public/portal-logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added konfigthis.com/public/video/demo-quick.mov
Binary file not shown.
Binary file added konfigthis.com/public/video/demo-quick.mp4
Binary file not shown.
Binary file added konfigthis.com/public/video/demo-quick.webm
Binary file not shown.
Binary file added konfigthis.com/public/video/demo.mov
Binary file not shown.
Binary file added konfigthis.com/public/video/demo.webm
Binary file not shown.
Binary file modified konfigthis.com/public/video/typing-quick.mov
Binary file not shown.
Binary file modified konfigthis.com/public/video/typing.mov
Binary file not shown.
26 changes: 11 additions & 15 deletions konfigthis.com/src/components/Cta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,14 @@ import {
Button,
rem,
Container,
clsx,
} from "@mantine/core";
import { IconCalendarEvent } from "@tabler/icons-react";

const useStyles = createStyles((theme) => ({
wrapper: {
display: "flex",
alignItems: "center",
padding: `calc(${theme.spacing.xl} * 2)`,
borderRadius: theme.radius.md,
backgroundColor:
theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.white,
border: `${rem(1)} solid ${
theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[3]
}`,

[theme.fn.smallerThan("sm")]: {
flexDirection: "column",
padding: theme.spacing.xl,
},
},

image: {
Expand Down Expand Up @@ -72,10 +61,17 @@ const useStyles = createStyles((theme) => ({
export function Cta() {
const { classes } = useStyles();
return (
<Container>
<div className={classes.wrapper}>
<Container className="px-4 sm:px-12">
<div
className={clsx(
classes.wrapper,
"bg-white rounded-xl border shadow-md p-4 sm:p-8 md:p-12"
)}
>
<div className={classes.body}>
<Title className={classes.title}>Generate SDKs today</Title>
<Title className={classes.title}>
Generate SDKs, Docs, Demos & Tutorials today
</Title>
<Text fz="sm" c="dimmed">
Impress your customers with an amazing onboarding experience
</Text>
Expand Down
77 changes: 77 additions & 0 deletions konfigthis.com/src/components/CustomFlowsDemo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import { Title, Box, Mark, clsx } from "@mantine/core";

import "reactflow/dist/style.css";
import { useGraphicStyles } from "@/utils/use-graphic-styles";
import { TitleHighlight } from "./TitleHighlight";
import { useSectionStyles } from "./GetSdksWithZeroEffort/GetSdksWithZeroEffort";

export function CustomFlowsDemo() {
const { classes, cx } = useSectionStyles();

const {
classes: { texture },
} = useGraphicStyles({})();

return (
<Box className={"my-[200px]"}>
<Box className={classes.sectionInner}>
<div className="flex flex-col md:flex-row relative gap-0 md:gap-12">
<Box
className={cx(classes.textColor, classes.textSection, "basis-4/5")}
>
<div
className={cx(
classes.triangle,
classes.triangle1,
texture,
"rounded-full"
)}
/>
<Box className={clsx(classes.textLayer, "w-11/12 md:w-full")}>
<Title c="hsl(214 36% 58% / 1)" order={6}>
Demos & Tutorials
</Title>
<Title className={classes.title}>
<TitleHighlight>Engaging Demos & Tutorials</TitleHighlight> with
Markdown
</Title>
<div className={classes.textSize}>
<ul className="list-disc list-inside space-y-2">
<li>
Simple Creation: Write, style, and embed code with{" "}
<a
target="_blank"
className="border-b text-white border-yellow-300 hover:border-b-2"
href="https://github.com/passiv/snaptrade-sdks/blob/master/demos/registering-users.md"
>
familiar Markdown
</a>
.
</li>
<li>
Immediate Engagement: Allow users to run code in-browser,
enhancing hands-on learning.
</li>
<li>
Quick Onboarding: Speed up user adoption with interactive
demos that teach as they engage.
</li>
</ul>
</div>
</Box>
</Box>
<div className="p-2 md:p-6 w-full flex items-center relative text-sm bg-[#002b36] rounded-xl shadow-xl">
<video
className="rounded-xl w-full bg-video-bg shadow-xl"
playsInline
autoPlay
muted
loop
src="/video/demo-quick.webm"
/>
</div>
</div>
</Box>
</Box>
);
}
23 changes: 23 additions & 0 deletions konfigthis.com/src/components/DarkSectionWrapper.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { clsx } from "@mantine/core";
import { PropsWithChildren } from "react";

export function DarkSectionWrapper({
children,
direction,
id,
}: PropsWithChildren<{ direction?: "bl"; id?: string }>) {
return (
<div
id={id}
className={clsx(
{
["bg-gradient-to-br"]: direction !== "bl",
["bg-gradient-to-bl"]: direction === "bl",
},
`px-4 sm:px-12 from-[rgb(8,17,25)] to-[rgb(9,7,48)] overflow-hidden`
)}
>
{children}
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function EnsureHighQualitySdks() {
SDKs
</Title>
<div className={classes.textSize}>
<ul className="list-disc list-inside sm:list-outside space-y-4">
<ul className="list-disc list-inside space-y-2">
<li>
Before any errors reaches your customers,{" Konfig's "}
<Anchor
Expand Down
8 changes: 2 additions & 6 deletions konfigthis.com/src/components/FooterSimple/FooterSimple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
rem,
Title,
Box,
clsx,
} from "@mantine/core";
import { IconBrandLinkedin } from "@tabler/icons-react";
import logo from "./logo.png";
Expand All @@ -16,13 +17,8 @@ import Script from "next/script";

const useStyles = createStyles((theme) => ({
footer: {
marginTop: rem(120),
paddingTop: `calc(${theme.spacing.xl} * 2)`,
paddingBottom: `calc(${theme.spacing.xl} * 2)`,
backgroundColor:
theme.colorScheme === "dark"
? theme.colors.dark[6]
: theme.colors.gray[0],
},

logo: {
Expand Down Expand Up @@ -166,7 +162,7 @@ export function FooterSimple({ data }: FooterLinksProps) {
return (
<>
<Script src="https://substackapi.com/widget.js" async />
<footer className={classes.footer}>
<footer className={clsx(classes.footer, "pt-32")}>
<Container className={classes.inner}>
<div className={classes.logo}>
<div style={{ marginBottom: rem(20) }}>
Expand Down
4 changes: 2 additions & 2 deletions konfigthis.com/src/components/GeneratedSdkSnippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function GeneratedSdkSnippets() {
</>
)}
Description={() => (
<ul className="list-disc list-inside sm:list-outside space-y-4">
<ul className="list-disc list-inside space-y-2">
<li>
<Mark>Efficiently onboard customers</Mark> in any language.
</li>
Expand All @@ -30,7 +30,7 @@ export function GeneratedSdkSnippets() {
)}
Visual={() => (
<video
className="rounded-xl bg-video-bg shadow-xl lg:w-3/5 p-2 lg:p-6"
className="rounded-xl bg-video-bg shadow-xl w-full lg:w-3/5 p-2 lg:p-6"
playsInline
autoPlay
muted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const useSectionStyles = createStyles((theme) => ({
},
textSection: {
position: "relative",
marginBottom: 70,
marginBottom: "64px",
},
textLayer: {
position: "relative",
Expand Down Expand Up @@ -312,7 +312,7 @@ export function GetSdksWithZeroEffort() {
/>
<Image src={postman} width={35} height={35} alt="Postman" />
</Group> */}
<ul className="list-decimal list-inside sm:list-outside space-y-4">
<ul className="list-decimal list-inside space-y-2">
<li>
Easily import an{" "}
<Anchor
Expand Down
64 changes: 45 additions & 19 deletions konfigthis.com/src/components/HeaderSimple/HeaderSimple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ import {
Group,
Anchor,
Button,
UnstyledButton,
Menu,
Burger,
} from "@mantine/core";
import logo from "./logo.png";
import logo from "../../../public/portal-logo-light.png";
import Image from "@/components/Image";
import { useSubtleLinkStyles } from "@/utils/use-subtle-link-styles";
import { IconCalendarEvent } from "@tabler/icons-react";
import { IconCalendar, IconCalendarEvent } from "@tabler/icons-react";
import { useState } from "react";

const useStyles = createStyles((theme) => ({
header: {
Expand Down Expand Up @@ -67,44 +71,66 @@ const useStyles = createStyles((theme) => ({

export function HeaderSimple() {
const { classes } = useStyles();
const styles = useSubtleLinkStyles();
const [opened, setOpened] = useState(false);

return (
<Header height={60}>
<div className="h-16 fixed w-full bg-white/95 backdrop-blur-md z-50">
<Container size="lg" className={classes.header}>
<Image height={40} src={logo} placeholder="empty" alt="Konfig Logo" />
<Group spacing="xs">
<Anchor
<Menu
opened={opened}
onChange={setOpened}
position="bottom-end"
shadow="md"
width={200}
>
<Menu.Target>
<Burger className="sm:hidden" opened={opened} />
</Menu.Target>
<Menu.Dropdown>
<a target="_blank" href="https://konfigthis.com/schedule-demo">
<Menu.Item
className="font-bold"
icon={<IconCalendar size={16} />}
>
Book a Demo
</Menu.Item>
</a>
<a target="_blank" href="/docs">
<Menu.Item className="text-gray-700">Documentation</Menu.Item>
</a>
<a target="_blank" href="/blog">
<Menu.Item className=" text-gray-700">Blog</Menu.Item>
</a>
</Menu.Dropdown>
</Menu>
<Group className="hidden sm:flex" spacing="md">
<a
className="text-gray-600 hover:text-black"
target="_blank"
component="a"
className={styles.classes.subtleLink}
unstyled
variant="subtle"
href="/blog"
>
Blog
</Anchor>
<Anchor
className={styles.classes.subtleLink}
unstyled
</a>
<a
className="text-gray-600 hover:text-black"
target="_blank"
component="a"
href="/docs"
>
Documentation
</Anchor>
</a>
<Button
size="xs"
target="_blank"
color="dark"
component="a"
radius="lg"
target="_blank"
href="https://konfigthis.com/schedule-demo"
leftIcon={<IconCalendarEvent size="0.9rem" />}
>
Book a demo
</Button>
</Group>
</Container>
</Header>
</div>
);
}
Loading

0 comments on commit 159fbb3

Please sign in to comment.