From 0b02896558b29158c3a3bc6ab8b1306cb5a6a8a5 Mon Sep 17 00:00:00 2001 From: bravemobin Date: Tue, 11 Feb 2025 19:16:51 +0330 Subject: [PATCH 1/4] feat: Add Sponsors section --- package.json | 1 + pnpm-lock.yaml | 23 ++++++++++++-- src/app/components/Sponsers/Sponsers.tsx | 22 ++++++++++++++ src/app/page.tsx | 2 ++ src/components/ui/logo.tsx | 38 ++++++++++++++++++++++++ 5 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 src/app/components/Sponsers/Sponsers.tsx create mode 100644 src/components/ui/logo.tsx 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/src/app/components/Sponsers/Sponsers.tsx b/src/app/components/Sponsers/Sponsers.tsx new file mode 100644 index 0000000..3673afa --- /dev/null +++ b/src/app/components/Sponsers/Sponsers.tsx @@ -0,0 +1,22 @@ +import { Section } from "@/components/ui/section"; + +export default function Sponsers() { + return ( +
+
+
+

+ Built with industry-standard tools and best practices +

+
+
+ {/* + + + + */} +
+
+
+ ); +} 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/components/ui/logo.tsx b/src/components/ui/logo.tsx new file mode 100644 index 0000000..0f63b1c --- /dev/null +++ b/src/components/ui/logo.tsx @@ -0,0 +1,38 @@ +import React from "react"; +import { cn } from "@/lib/utils"; + +export interface LogoProps extends React.HTMLAttributes { + image: React.ComponentType>; + name: string; + version?: string; + width?: number; + height?: number; + showName?: boolean; +} + +export default function Logo({ + className, + image: SvgImage, + name, + version, + width = 24, + height = 24, + showName = true, + ...props +}: LogoProps) { + return ( +
+
+ ); +} From 71f6e51bf270ad85a6c916f73f5e5825e52d6580 Mon Sep 17 00:00:00 2001 From: bravemobin Date: Tue, 11 Feb 2025 19:48:54 +0330 Subject: [PATCH 2/4] feat: Add sponsors section to the website --- public/images/company-logos/digikala.png | Bin 0 -> 579 bytes public/images/company-logos/pachimsh.png | Bin 0 -> 886 bytes public/images/company-logos/shabir.png | Bin 0 -> 875 bytes src/app/components/Sponsers/Sponsers.tsx | 27 ++++++++++----- src/app/components/Sponsers/sponsers.d.ts | 4 +++ src/components/ui/logo.tsx | 38 ---------------------- src/configs/sponsersData.ts | 22 +++++++++++++ 7 files changed, 45 insertions(+), 46 deletions(-) create mode 100644 public/images/company-logos/digikala.png create mode 100644 public/images/company-logos/pachimsh.png create mode 100644 public/images/company-logos/shabir.png create mode 100644 src/app/components/Sponsers/sponsers.d.ts delete mode 100644 src/components/ui/logo.tsx create mode 100644 src/configs/sponsersData.ts diff --git a/public/images/company-logos/digikala.png b/public/images/company-logos/digikala.png new file mode 100644 index 0000000000000000000000000000000000000000..13faaaf82a2064666c48ee8f0946dc6fb65300ed GIT binary patch literal 579 zcmV-J0=)f+P)200009a7bBm000XU z000XU0RWnu7ytkO0drDELIAGL9O(c600d`2O+f$vv5yPSH(Tk9i zNIfW0q^O60#7j-wZkkOpnSEbpWFtM4LeK33GtB!j&-?KJ9O7Vund^yvcIhG<9nnt< z_6Jb`a32*qjmvspBD05Jtnq|G~YRF?oPNxQR0%txYU08=K$rPL}5K!Mo<5 zEt@JXP_Qz1T$r8HF*5O8$XVv6yTxi1gOzSe#bcW?mJ43_&4-CA)BiqfPhH!PC{Ga} zQ$$#@J@HE=AD?yVH=oDfKYay|L&geJ+#7l8!m3|+Sk8Hizhzqq#sumf9G+hc} zd^{V|8f&~g-^Aq3q&+GaaOB$ERy}B`ZRn%)1z@R5gHdg>SapFJLdIY+R}?>Gaz7(9 zBGb-&8HZXOull!g$DYnO$jtNl!=xC z?5?os9!=~);l#WxMlLTn-kA>Kc!BdjYietw(^v0n$@G^R)YMS4>>T32<1e_gyNIqM RMic-5002ovPDHLkV1j5D`d9z} literal 0 HcmV?d00001 diff --git a/public/images/company-logos/pachimsh.png b/public/images/company-logos/pachimsh.png new file mode 100644 index 0000000000000000000000000000000000000000..01320711401f14630e4a700b3bcd498c8bdf75bf GIT binary patch literal 886 zcmV-+1Bv{JP)200009a7bBm000XU z000XU0RWnu7ytkO0drDELIAGL9O(c600d`2O+f$vv5yPm-f2X_S?z%H8Rzx3jhkMUGKi|3M+zYTYkPqfLR#%q) z*d%%X*>!v^z`r7J=k3k>Co#%v9oF)nM#FD(A?LaB!_t&`Ywz{UH}k+tZ1w-PXde2RRc)X zfMQVsM9d;asQ3{T5x^tya0pgpDgg=I17sl;7w#5On>OZ|@GqfytRJc~H>X2e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

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

- {/* - - - - */} + {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/components/ui/logo.tsx b/src/components/ui/logo.tsx deleted file mode 100644 index 0f63b1c..0000000 --- a/src/components/ui/logo.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import React from "react"; -import { cn } from "@/lib/utils"; - -export interface LogoProps extends React.HTMLAttributes { - image: React.ComponentType>; - name: string; - version?: string; - width?: number; - height?: number; - showName?: boolean; -} - -export default function Logo({ - className, - image: SvgImage, - name, - version, - width = 24, - height = 24, - showName = true, - ...props -}: LogoProps) { - 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; From acddbaa562d6bf6288d4b539ecdddf86b49ed2f2 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:08:42 +0000 Subject: [PATCH 3/4] docs: update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2904432..c5bb24f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ This repository contains FrontChapter`s website source code. Amir Hossein Karimi
Amir Hossein Karimi

📆 🚇 🚧 🧑‍🏫 💻 Majid Kargar
Majid Kargar

💻 + Mobin
Mobin

💻 From 6412e1f9330e6a766fbf8f4fe534bde836050a09 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:08:43 +0000 Subject: [PATCH 4/4] docs: update .all-contributorsrc --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 9956bdd..3dd68bc 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -29,6 +29,15 @@ "contributions": [ "code" ] + }, + { + "login": "Bravemobin", + "name": "Mobin", + "avatar_url": "https://avatars.githubusercontent.com/u/77383003?v=4", + "profile": "https://github.com/Bravemobin", + "contributions": [ + "code" + ] } ] }