Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website fixes #5237

Merged
merged 3 commits into from
May 24, 2024
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
4 changes: 2 additions & 2 deletions front/components/home/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const CarouselContent = React.forwardRef<
ref={ref}
className={classNames(
"flex",
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
orientation === "horizontal" ? "" : "-mt-4 flex-col",
className
)}
{...props}
Expand All @@ -186,7 +186,7 @@ const CarouselItem = React.forwardRef<
aria-roledescription="slide"
className={classNames(
"min-w-0 shrink-0 grow-0 basis-full",
orientation === "horizontal" ? "pl-4" : "pt-4",
orientation === "horizontal" ? "" : "pt-4",
className
)}
{...props}
Expand Down
5 changes: 3 additions & 2 deletions front/components/home/ContentBlocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,13 @@ export const CarousselContentBlock = ({
</P>
</div>
<div className="w-full text-center">
<Link href={href} shallow={true}>
<Link href={href} shallow={true} className="block w-full">
<Button
label={"Discover Dust for " + title}
variant="tertiary"
size="md"
icon={ArrowRightIcon}
className="max-w-full"
/>
</Link>
</div>
Expand All @@ -224,7 +225,7 @@ export const CarousselContentBlock = ({
{assistants.map((block, index) => (
<CarouselItem
key={index}
className="basis-1/2 md:basis-1/3 lg:basis-1/4"
className="basis-1/2 px-8 md:basis-1/2 lg:basis-1/3 xl:basis-1/4"
>
<SolutionSectionAssistantBlock {...block} />
</CarouselItem>
Expand Down
13 changes: 5 additions & 8 deletions front/components/home/content/Product/BlogSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,44 +34,41 @@ export function BlogSection() {
</P>
</div>
<div className="col-span-12 flex flex-col items-center gap-4">
<Carousel className="w-full" isLooping={true}>
<div className="flex w-full flex-row justify-center gap-4">
<Carousel className="w-full">
<div className="flex w-full flex-row gap-4 md:justify-center">
<CarouselPrevious label="previous" />
<CarouselNext label="next" />
</div>
<CarouselContent>
<CarouselItem className="basis-full md:basis-1/2 lg:basis-1/3">
<CarouselItem className="basis-full md:basis-1/2 md:px-6 lg:basis-1/3">
<BlogBlock
title="Navigating Growth and Innovation with November Five’s Dario Prskalo"
content="Discover how November Five leverages AI with Dust to enhance efficiency and maintain a human touch in their digital solutions."
href="https://blog.dust.tt/november-five-ai-transformation-dust/"
className="m-6 lg:m-4 xl:m-6"
>
<img
src="https://blog.dust.tt/content/images/size/w2000/2024/04/DSCF6552-1.jpeg"
alt="Blog Image"
/>
</BlogBlock>
</CarouselItem>
<CarouselItem className="basis-full md:basis-1/2 lg:basis-1/3">
<CarouselItem className="basis-full px-6 md:basis-1/2 lg:basis-1/3">
<BlogBlock
title="How Eléonore improved the efficiency of Pennylane’s Care team thanks to Dust"
content="Discover how Pennylane leveraged Dust’s specialized virtual assistants to improve efficiency and optimize workflows."
href="https://blog.dust.tt/pennylane-dust-customer-support-journey/"
className="m-6 lg:m-4 xl:m-6"
>
<img
src="https://blog.dust.tt/content/images/size/w2000/2024/04/Ele-onore-MOTTE--1--1.jpg"
alt="Blog Image"
/>
</BlogBlock>
</CarouselItem>
<CarouselItem className="basis-full md:basis-1/2 lg:basis-1/3">
<CarouselItem className="basis-full px-6 md:basis-1/2 lg:basis-1/3">
<BlogBlock
title="Integrating AI for Enhanced Workflows at Alan"
content="Discover how Alan revolutionizes healthcare and enhances workflows using AI. See how @code-help and Dust streamline developer tasks."
href="https://blog.dust.tt/integrating-ai-workflows-alan/"
className="m-6 lg:m-4 xl:m-6"
>
<img
src="https://blog.dust.tt/content/images/size/w2000/2024/03/cover-vincent.png"
Expand Down
4 changes: 2 additions & 2 deletions sparkle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sparkle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dust-tt/sparkle",
"version": "0.2.152",
"version": "0.2.153",
"scripts": {
"build": "rm -rf dist && rollup -c",
"build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
Expand Down
4 changes: 3 additions & 1 deletion sparkle/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ export function Button({
{icon && <Icon visual={icon} size={size as IconProps["size"]} />}
{avatar && <Avatar size={size} visual={avatar} isRounded />}
{labelVisible ? (
<div className={finalContainerClasses}>{label}</div>
<div className={classNames("truncate", finalContainerClasses)}>
{label}
</div>
) : null}
{type === "menu" && (
<Icon
Expand Down
Loading