fixed build errors

This commit is contained in:
Emre
2025-10-28 19:47:55 +03:00
parent 3c9823bf80
commit 6d6cbd115a
7 changed files with 14 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
import type { ReactNode } from "react"; import type { ReactNode } from "react";
import { Button } from "@/components/ui/button"; import { ArrowRight } from "lucide-react";
import { ArrowRightIcon } from "@radix-ui/react-icons";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
const BentoGrid = ({ const BentoGrid = ({
@@ -64,12 +63,13 @@ const BentoCard = ({
"pointer-events-none absolute bottom-0 flex w-full translate-y-10 transform-gpu flex-row items-center p-4 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100", "pointer-events-none absolute bottom-0 flex w-full translate-y-10 transform-gpu flex-row items-center p-4 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",
)} )}
> >
<Button variant="ghost" asChild size="sm" className="pointer-events-auto"> <a
<a href={href}> href={href}
className="pointer-events-auto inline-flex items-center gap-2 text-sm font-medium text-neutral-600 transition-colors hover:text-sky-700"
>
{cta} {cta}
<ArrowRightIcon className="ml-2 h-4 w-4" /> <ArrowRight className="h-4 w-4" />
</a> </a>
</Button>
</div> </div>
</div> </div>
); );

View File

@@ -34,7 +34,7 @@ export function Dropdown({ buttonContent, items }: DropdownProps) {
<div className="py-1"> <div className="py-1">
{items.map((item) => ( {items.map((item) => (
<Menu.Item key={item.href}> <Menu.Item key={item.href}>
{({ active }) => ( {({ active }: { active: boolean }) => (
<Link <Link
to={item.href} to={item.href}
className={` className={`

View File

@@ -1,5 +1,4 @@
import { AnimatedSection } from '../../components/AnimatedSection' import { AnimatedSection } from '../../components/AnimatedSection'
import { AgentsHero } from './AgentsHero'
import { DeploySection } from './DeploySection' import { DeploySection } from './DeploySection'
import { GallerySection } from './GallerySection' import { GallerySection } from './GallerySection'
import { Companies } from './Companies' import { Companies } from './Companies'

View File

@@ -1,6 +1,5 @@
import { cn } from "@/lib/utils";
import createGlobe from "cobe"; import createGlobe from "cobe";
import { useEffect, useRef, type ReactNode } from "react"; import { useEffect, useRef } from "react";
import { motion } from "motion/react"; import { motion } from "motion/react";
import { IconBrandYoutubeFilled } from "@tabler/icons-react"; import { IconBrandYoutubeFilled } from "@tabler/icons-react";
import { H2, P } from '@/components/Texts' import { H2, P } from '@/components/Texts'

View File

@@ -1,6 +1,5 @@
import { AnimatedSection } from '../../components/AnimatedSection' import { AnimatedSection } from '../../components/AnimatedSection'
import { HomeAurora } from './HomeAurora' import { HomeAurora } from './HomeAurora'
import { HomeFeaturesDark } from './HomeFeaturesDark'
import { StackSectionLight } from './StackSection' import { StackSectionLight } from './StackSection'
import { WorldMap } from './HomeGlobe' import { WorldMap } from './HomeGlobe'
import { HomeBenefits } from './HomeBenefits' import { HomeBenefits } from './HomeBenefits'

View File

@@ -1,8 +1,7 @@
"use client"; "use client";
import React from "react";
import { Carousel, Card } from "@/components/ui/apple-cards-carousel"; import { Carousel, Card } from "@/components/ui/apple-cards-carousel";
import { H2, H3, P } from "@/components/Texts"; import { H3, P } from "@/components/Texts";
export function HomeSlider() { export function HomeSlider() {
const cards = data.map((card) => ( const cards = data.map((card) => (

View File

@@ -5,6 +5,9 @@ import path from 'node:path'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
server: {
allowedHosts: ['stale-adults-strive.loca.lt'],
},
resolve: { resolve: {
alias: { alias: {
'@': path.resolve(__dirname, './src'), '@': path.resolve(__dirname, './src'),