Skip to content

Commit

Permalink
鈾伙笍 Refactor Hero
Browse files Browse the repository at this point in the history
  • Loading branch information
awtkns committed Nov 13, 2023
1 parent 961ac4a commit 3b06cda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions next/src/components/HeroCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ type HeroCardProps = {
title: string;
subtitle: string;
leftIcon: ReactNode;
onClick?: () => void;
};

const HeroCard: React.FC<HeroCardProps> = ({ title, subtitle, leftIcon, onClick }) => {
const HeroCard: React.FC<HeroCardProps> = ({ title, subtitle, leftIcon }) => {
return (
<div className="border-gradient -z-10 flex max-h-16 w-72 flex-row items-center justify-center rounded-full p-3">
<div className="mr-auto flex items-center gap-3">
Expand Down
7 changes: 2 additions & 5 deletions next/src/components/landing/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import GlowWrapper from "../GlowWrapper";
import HeroCard from "../HeroCard";
import FadeIn from "../motions/FadeIn";
import PrimaryButton from "../PrimaryButton";
import TextButton from "../TextButton";

const Hero: FC<{ className?: string }> = ({ className }) => {
const router = useRouter();
Expand Down Expand Up @@ -97,7 +96,8 @@ const Hero: FC<{ className?: string }> = ({ className }) => {
</div>
</h1>
<p className="my-3 inline-block bg-gradient-to-r from-white via-white via-50% to-neutral-500 bg-clip-text text-center align-top font-inter font-[400] leading-[24px] tracking-[.08rem] text-transparent sm:w-4/5 md:text-left">
Optimize web scraping with AI that generates and repairs scraping code, adapting to website changes. Scale your data extraction effortlessly.
Optimize web scraping with AI that generates and repairs scraping code, adapting to
website changes. Scale your data extraction effortlessly.
</p>
</div>

Expand All @@ -123,9 +123,6 @@ const Hero: FC<{ className?: string }> = ({ className }) => {
title={role.title}
subtitle={role.subtitle}
leftIcon={role.icon}
onClick={() => {
router.push("/").catch(console.error);
}}
/>
))}
</motion.div>
Expand Down

0 comments on commit 3b06cda

Please sign in to comment.