diff --git a/package.json b/package.json index ffeb1a3..a7f37c6 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@radix-ui/react-accordion": "^1.2.2", "@radix-ui/react-icons": "^1.3.2", + "@radix-ui/react-slot": "^1.1.2", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-react": "^0.474.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dfe7a12..1281ece 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@radix-ui/react-icons': specifier: ^1.3.2 version: 1.3.2(react@19.0.0) + '@radix-ui/react-slot': + specifier: ^1.1.2 + version: 1.1.2(@types/react@19.0.8)(react@19.0.0) class-variance-authority: specifier: ^0.7.1 version: 0.7.1 @@ -529,6 +532,15 @@ packages: '@types/react': optional: true + '@radix-ui/react-slot@1.1.2': + resolution: {integrity: sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@radix-ui/react-use-callback-ref@1.1.0': resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==} peerDependencies: @@ -3112,6 +3124,13 @@ snapshots: optionalDependencies: '@types/react': 19.0.8 + '@radix-ui/react-slot@1.1.2(@types/react@19.0.8)(react@19.0.0)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.1(@types/react@19.0.8)(react@19.0.0) + react: 19.0.0 + optionalDependencies: + '@types/react': 19.0.8 + '@radix-ui/react-use-callback-ref@1.1.0(@types/react@19.0.8)(react@19.0.0)': dependencies: react: 19.0.0 @@ -3910,7 +3929,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.21.0(eslint@9.19.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@9.19.0(jiti@1.21.7)))(eslint@9.19.0(jiti@1.21.7)): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.21.0(eslint@9.19.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@9.19.0(jiti@1.21.7)): dependencies: debug: 3.2.7 optionalDependencies: @@ -3932,7 +3951,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.19.0(jiti@1.21.7) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.21.0(eslint@9.19.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0)(eslint@9.19.0(jiti@1.21.7)))(eslint@9.19.0(jiti@1.21.7)) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.21.0(eslint@9.19.0(jiti@1.21.7))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0)(eslint@9.19.0(jiti@1.21.7)) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 diff --git a/public/images/company-logos/digikala.png b/public/images/company-logos/digikala.png new file mode 100644 index 0000000..13faaaf Binary files /dev/null and b/public/images/company-logos/digikala.png differ diff --git a/public/images/company-logos/pachimsh.png b/public/images/company-logos/pachimsh.png new file mode 100644 index 0000000..0132071 Binary files /dev/null and b/public/images/company-logos/pachimsh.png differ diff --git a/public/images/company-logos/shabir.png b/public/images/company-logos/shabir.png new file mode 100644 index 0000000..b2e5d42 Binary files /dev/null and b/public/images/company-logos/shabir.png differ diff --git a/src/app/components/Sponsers/Sponsers.tsx b/src/app/components/Sponsers/Sponsers.tsx new file mode 100644 index 0000000..74dd438 --- /dev/null +++ b/src/app/components/Sponsers/Sponsers.tsx @@ -0,0 +1,33 @@ +import { Section } from "@/components/ui/section"; +import sponsersData from "@/configs/sponsersData"; +import Image from "next/image"; + +export default function Sponsers() { + return ( +
+
+
+

+ حامیان همایش فرانت چپتر +

+
+
+ {sponsersData.map((sponser, index) => ( +
+
+ {sponser.title} +
+ + {sponser.title} +
+ ))} +
+
+
+ ); +} diff --git a/src/app/components/Sponsers/sponsers.d.ts b/src/app/components/Sponsers/sponsers.d.ts new file mode 100644 index 0000000..aaaff83 --- /dev/null +++ b/src/app/components/Sponsers/sponsers.d.ts @@ -0,0 +1,4 @@ +export type SponsersDataType = { + title: string; + image: string; +}; diff --git a/src/app/page.tsx b/src/app/page.tsx index 1db9eba..3ae09cc 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,9 +1,11 @@ +import Sponsers from "./components/Sponsers/Sponsers"; import FAQ from "@/app/components/FAQ/FAQ"; export default function Home() { return ( <> + ); } diff --git a/src/configs/sponsersData.ts b/src/configs/sponsersData.ts new file mode 100644 index 0000000..d5f7d7d --- /dev/null +++ b/src/configs/sponsersData.ts @@ -0,0 +1,22 @@ +import { SponsersDataType } from "@/app/components/Sponsers/sponsers"; + +export const sponsersData: SponsersDataType[] = [ + { + title: "دیجی کالا", + image: "/images/company-logos/digikala.png", + }, + { + title: "shab.ir", + image: "/images/company-logos/shabir.png", + }, + { + title: "دیجی کالا", + image: "/images/company-logos/digikala.png", + }, + { + title: "pachim.sh", + image: "/images/company-logos/pachimsh.png", + }, +]; + +export default sponsersData;