Skip to content

Commit

Permalink
feat: created brands feedback section in new homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
yeasin2002 committed Nov 13, 2024
1 parent 3af53d1 commit 3e3998c
Show file tree
Hide file tree
Showing 8 changed files with 164 additions and 3 deletions.
31 changes: 31 additions & 0 deletions app/home2.0/brand-and-statistics/BrandsList.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from "react"
import Image from "next/image"
import fiveStar from "@/assets/5star.svg"

import { brandsData } from "./brands.data"

interface Props extends React.ComponentProps<"div"> {}

export const BrandsList = ({ ...props }: Props) => {
return (
<div
{...props}
className="grid grid-cols-1 items-center md:grid-cols-2 lg:grid-cols-3"
>
{brandsData.map((item) => {
return (
<div className="flex flex-col items-center justify-center gap-y-4 text-center">
<Image src={item.img} alt={item.name} />
<p className=""> {item.desc} </p>
<Image src={fiveStar} alt={"5 Star"} />

<div>
<p> {item.author.name} </p>
<p> {item.author.positions} </p>
</div>
</div>
)
})}
</div>
)
}
13 changes: 13 additions & 0 deletions app/home2.0/brand-and-statistics/Statistics.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react"

interface Props extends React.ComponentProps<"div"> {}

const data = [
{ name: "Happy customers", value: "45+" },
{ name: "Hours spent on craft", value: "5k+" },
{ name: "Review rate", value: "4.8" },
]

export const Statistics = ({ ...props }: Props) => {
return <div {...props}>Statistics</div>
}
33 changes: 33 additions & 0 deletions app/home2.0/brand-and-statistics/brands.data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import abstact from "@/assets/companies/abstact.svg"
import intercom from "@/assets/companies/intercom.svg"
import loom from "@/assets/companies/loom.svg"

export const brandsData = [
{
name: "loom",
desc: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
img: loom,
author: {
name: "Henry Arthur",
positions: "Head of Engineering, Loom",
},
},
{
name: "intercom",
desc: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
img: intercom,
author: {
name: "Jerome Bell",
positions: "Product Analyst, Intercom",
},
},
{
name: "abstact",
desc: "Lorem ipsum dolor sit amet consectetur adipisicing elit.",
img: abstact,
author: {
name: "Eleanor Pena",
positions: "Head of Product Design, Abstract",
},
},
]
15 changes: 15 additions & 0 deletions app/home2.0/brand-and-statistics/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react"

import { BrandsList } from "./BrandsList"
import { Statistics } from "./Statistics"

interface Props extends React.ComponentProps<"div"> {}

export const BrandAndStatistics = ({ ...props }: Props) => {
return (
<div {...props}>
<BrandsList />
<Statistics />
</div>
)
}
1 change: 1 addition & 0 deletions app/home2.0/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./details-about"
export * from "./word-explanation"
export * from "./CompanyListMarquees"
export * from "./Hero"
export * from "./brand-and-statistics"
10 changes: 7 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
"use client"
"use client";

import { SiteNave } from "@/components/SiteNav";


import { SiteNave } from "@/components/SiteNav"

import {
BrandAndStatistics,
CompanyListMarquees,
Hero,
Introducing,
Expand All @@ -19,7 +22,8 @@ export default function IndexPage() {
<CompanyListMarquees />
<Introducing />
<WordExplanation />
<BrandAndStatistics />
</div>
</>
)
}
}
64 changes: 64 additions & 0 deletions assets/5star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed build/favicon.ico
Binary file not shown.

0 comments on commit 3e3998c

Please sign in to comment.