Skip to content

Commit b16dd44

Browse files
Merge pull request #17 from frontChapter/sponsers
Add Sponsers Section
2 parents 3e6aede + 71f6e51 commit b16dd44

File tree

9 files changed

+83
-2
lines changed

9 files changed

+83
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@radix-ui/react-accordion": "^1.2.2",
1414
"@radix-ui/react-icons": "^1.3.2",
15+
"@radix-ui/react-slot": "^1.1.2",
1516
"class-variance-authority": "^0.7.1",
1617
"clsx": "^2.1.1",
1718
"lucide-react": "^0.474.0",

pnpm-lock.yaml

Lines changed: 21 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
579 Bytes
Loading
886 Bytes
Loading
875 Bytes
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { Section } from "@/components/ui/section";
2+
import sponsersData from "@/configs/sponsersData";
3+
import Image from "next/image";
4+
5+
export default function Sponsers() {
6+
return (
7+
<Section>
8+
<div className="mx-auto flex max-w-container flex-col items-center gap-14 text-center">
9+
<div className="flex flex-col items-center gap-6">
10+
<h2 className="text-md font-semibold sm:text-xl">
11+
حامیان همایش فرانت چپتر
12+
</h2>
13+
</div>
14+
<div className="flex flex-wrap items-center justify-center gap-8">
15+
{sponsersData.map((sponser, index) => (
16+
<div className="flex items-center gap-2" key={index}>
17+
<div className="border-2 border-gray-800 p-1">
18+
<Image
19+
src={sponser.image}
20+
width={21}
21+
height={21}
22+
alt={sponser.title}
23+
/>
24+
</div>
25+
26+
<span className="font-bold">{sponser.title}</span>
27+
</div>
28+
))}
29+
</div>
30+
</div>
31+
</Section>
32+
);
33+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export type SponsersDataType = {
2+
title: string;
3+
image: string;
4+
};

src/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import Sponsers from "./components/Sponsers/Sponsers";
12
import FAQ from "@/app/components/FAQ/FAQ";
23

34
export default function Home() {
45
return (
56
<>
67
<FAQ />
8+
<Sponsers />
79
</>
810
);
911
}

src/configs/sponsersData.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { SponsersDataType } from "@/app/components/Sponsers/sponsers";
2+
3+
export const sponsersData: SponsersDataType[] = [
4+
{
5+
title: "دیجی کالا",
6+
image: "/images/company-logos/digikala.png",
7+
},
8+
{
9+
title: "shab.ir",
10+
image: "/images/company-logos/shabir.png",
11+
},
12+
{
13+
title: "دیجی کالا",
14+
image: "/images/company-logos/digikala.png",
15+
},
16+
{
17+
title: "pachim.sh",
18+
image: "/images/company-logos/pachimsh.png",
19+
},
20+
];
21+
22+
export default sponsersData;

0 commit comments

Comments
 (0)