Skip to content

Commit cb6b33e

Browse files
🔄 refactor: update imports and remove unused components
Refactors the codebase by updating imports and removing unused components. - Import `GithubStars` component in `DownloadButton.tsx` - Remove unused `HeaderAction` import - Remove unused `Features` and `Integrations` components - Add new `FeaturesBento` component - Add new `GithubStars` component - Update package.json dependencies
1 parent 82ee305 commit cb6b33e

4 files changed

Lines changed: 17 additions & 12 deletions

File tree

‎apps/web/app/(default)/download/DownloadButton.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { getOS } from "@/app/utils";
4-
import { HeaderAction } from "@/components/HeaderAction";
4+
import { GithubStars } from "@/components/GithubStars";
55
import { useEffect, useState } from "react";
66

77
// Define the interface for a GitHub release asset
@@ -77,7 +77,7 @@ export const DownloadButton = () => {
7777
: "."}{" "}
7878
Get notified when it is available for your OS.
7979
</p>
80-
<HeaderAction />
80+
<GithubStars />
8181
</div>
8282
);
8383
}

‎apps/web/app/(default)/page.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,19 @@ import "@/app/css/additional-styles/toggle-switch.css";
77
import "@/app/css/additional-styles/theme.css";
88

99
import Hero from "@/components/hero";
10-
// import Testimonials from "@/components/testimonials";
11-
import Features from "@/components/features";
1210
import Features02 from "@/components/features-02";
13-
// import Integrations from "@/components/integrations";
1411
import Pricing from "@/components/pricing";
1512
import Faqs from "@/components/faqs";
1613
import Cta from "@/components/cta";
1714
import { constructMetadata } from "../utils";
15+
import { FeaturesBento } from "@/components/features-bento";
1816

1917
export default function Home() {
2018
return (
2119
<>
2220
<Hero />
2321
{/* <Testimonials /> */}
24-
<Features />
22+
<FeaturesBento />
2523
<Features02 />
2624
{/* <Integrations /> */}
2725
<Pricing />
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
// GithubStars.tsx
2+
13
"use client";
2-
import { GithubIcon } from "lucide-react";
4+
import { GithubIcon, Lock } from "lucide-react";
35
import { useEffect, useState } from "react";
46
import { Badge } from "./ui/badge";
7+
import { LockClosedIcon } from "@radix-ui/react-icons";
58

6-
export const HeaderAction = () => {
9+
export const GithubStars = ({ styles }: { styles?: string }) => {
710
const [starCount, setStarCount] = useState(0);
811

912
useEffect(() => {
@@ -32,7 +35,9 @@ export const HeaderAction = () => {
3235
>
3336
<button
3437
type="button"
35-
className="relative inline-flex items-center rounded-md bg-white/10 px-3 py-2 text-sm font-semibold text-white ring-1 ring-inset ring-gray-300 hover:bg-white/20 focus:z-10"
38+
className={`relative inline-flex items-center justify-center rounded-md bg-white/10 px-4 text-sm font-semibold text-white ring-1 ring-inset ring-gray-300 hover:bg-white/20 focus:z-10 ${
39+
styles ? styles : ""
40+
}`}
3641
>
3742
<GithubIcon className="mr-2 h-4 w-4" /> Star on GitHub
3843
<Badge
@@ -46,4 +51,4 @@ export const HeaderAction = () => {
4651
</div>
4752
</span>
4853
);
49-
};
54+
};

‎apps/web/package.json‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@radix-ui/react-slot": "^1.0.2",
2828
"@radix-ui/react-tooltip": "^1.0.7",
2929
"@sentry/nextjs": "^7.88.0",
30+
"@tabler/icons-react": "^2.47.0",
3031
"@tanstack/react-query": "^5.20.5",
3132
"@tanstack/react-query-devtools": "^5.21.7",
3233
"@tremor/react": "^3.11.1",
@@ -38,9 +39,10 @@
3839
"aos": "^3.0.0-beta.6",
3940
"canvas-confetti": "^1.9.2",
4041
"class-variance-authority": "^0.7.0",
41-
"clsx": "^2.0.0",
42+
"clsx": "^2.1.0",
4243
"cmdk": "^0.2.0",
4344
"date-fns": "^2.30.0",
45+
"framer-motion": "^11.0.8",
4446
"loops": "^0.1.3",
4547
"lucide-react": "^0.292.0",
4648
"next": "^13.5.4",
@@ -57,7 +59,7 @@
5759
"sharp": "^0.33.1",
5860
"sonner": "^1.2.0",
5961
"swiper": "^8.4.7",
60-
"tailwind-merge": "^2.0.0",
62+
"tailwind-merge": "^2.2.1",
6163
"tailwindcss-animate": "^1.0.7",
6264
"typescript": "^5.2.2",
6365
"uuid": "^9.0.1",

0 commit comments

Comments
 (0)