Skip to content

Commit

Permalink
fix: various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jun 2, 2024
1 parent 75f2037 commit 37ad230
Show file tree
Hide file tree
Showing 7 changed files with 4,894 additions and 3,958 deletions.
9 changes: 4 additions & 5 deletions app/home/features/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ import clsx from "clsx";
import {
ChromeIcon,
GalleryHorizontal,
GhostIcon,
TowerControlIcon,
GitBranchIcon,
GitPullRequestIcon,
LucideIcon,
MonitorCheckIcon,
ScanSearchIcon,
TabletSmartphoneIcon,
VibrateIcon,
Wand2Icon,
} from "lucide-react";

Expand Down Expand Up @@ -122,9 +121,9 @@ export function Features() {
/>
<Separator orientation="vertical" />
<Feature
title="Flaky test detection"
icon={GhostIcon}
text="Instantly identify flaky screenshots, alerting you to potential inconsistencies in your tests."
title="Monitoring Mode"
icon={TowerControlIcon}
text="Check visual changes to detect issues early, validate releases, and ensure integration consistency."
/>
</Row>
</div>
Expand Down
14 changes: 7 additions & 7 deletions app/pricing/PricingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { Button, ButtonProps } from "@/components/Button";
import { Link } from "@/components/Link";
import { Tooltip } from "@/components/Tooltip";

import { dollarFormatter } from "./DollarFormatter";
import { dollarFormatter, percentFormatter } from "./formatters";

const PricingCardBody = twc.div`p-8 text-left text-low`;
const PricingCardBody = twc.div`p-6 text-left text-low`;
const Title = twc.div`mb-2 text-xl font-semibold text`;
const Description = twc.div`my-2 h-12 last-of-type:mb-0`;
const Badges = twc.div`block h-8`;
Expand Down Expand Up @@ -54,7 +54,7 @@ const PricingCard = ({
<div
className={clsx(
"border-border w-full flex-1 shrink-0 basis-80 rounded-xl border bg-violet-1",
emphasis ? "border-2 border-violet-6 pt-4" : "md:mt-4",
emphasis ? "border-2 border-violet-6 pt-[calc(1rem-1px)]" : "md:mt-4",
)}
>
{children}
Expand Down Expand Up @@ -189,11 +189,11 @@ export const PricingCards = ({

<Features>
<FeaturesCaption>Everything in Pro, plus:</FeaturesCaption>
<Feature>Custom amount of screenshots</Feature>
<Feature>Dedicated Support</Feature>
<Feature>GitHub SSO</Feature>
<Feature>SAML authentication</Feature>
<Feature>SLA for 99.99% Uptime</Feature>
<Feature>Advanced access control</Feature>
<Feature>{percentFormatter.format(0.9999)} Uptime SLA</Feature>
<Feature>Onboarding and migration support</Feature>
<Feature>Support SLA</Feature>
</Features>
</PricingCardBody>
</PricingCard>
Expand Down
10 changes: 0 additions & 10 deletions app/pricing/PricingFaq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ export const FAQ = ({
hobbyPlanScreenshotCount: number;
}) => (
<Accordion type="single" collapsible className="w-full max-w-2xl text-left">
<AccordionItem value="apart">
<AccordionTrigger>
What sets Argos apart from other visual testing tools?
</AccordionTrigger>
<AccordionContent>
Argos focuses on providing a user-friendly experience with simplicity at
its core. Currently, our unique features include managing flaky tests,
and we are working on offering zero-configuration visual testing.
</AccordionContent>
</AccordionItem>
<AccordionItem value="argos-plan">
<AccordionTrigger>Which Argos plan is right for me?</AccordionTrigger>
<AccordionContent>
Expand Down
2 changes: 1 addition & 1 deletion app/pricing/PricingSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import clsx from "clsx";
import * as React from "react";

import { Slider } from "../../components/Slider";
import { dollarFormatter } from "./DollarFormatter";
import { dollarFormatter } from "./formatters";

const MIN_SCREENSHOTS = 5000;
const MAX_SCREENSHOTS = 1000000;
Expand Down
5 changes: 5 additions & 0 deletions app/pricing/DollarFormatter.ts → app/pricing/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ export const dollarFormatter = new Intl.NumberFormat(undefined, {
currency: "USD",
maximumSignificantDigits: 10,
});

export const percentFormatter = new Intl.NumberFormat(undefined, {
maximumSignificantDigits: 5,
style: 'percent'
});
16 changes: 0 additions & 16 deletions components/BrandTestimonials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@ import yotpo from "@/images/brands/yotpo.svg";

import { Container } from "./Container";

const Testimonials = ({ children }: { children: React.ReactNode }) => {
return (
<div>
<Container className="mx-auto mt-8 grid w-full max-w-screen-lg grid-cols-2 items-center px-5 md:grid-cols-6 md:px-0">
{children}
</Container>
{/* <div className="relative overflow-hidden lg:hidden">
<div className="flex w-max animate-[slide_20s_linear_infinite] items-baseline gap-10 pr-10">
{children}
{children}
</div>
</div> */}
</div>
);
};

export const BrandTestimonials = () => {
return (
<Container className="mx-auto mt-8 grid w-full max-w-screen-lg grid-cols-2 items-center justify-center gap-4 px-5 md:flex md:flex-wrap md:px-0 md:[&>*]:max-w-40">
Expand Down
Loading

0 comments on commit 37ad230

Please sign in to comment.