-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: created brands feedback section in new homepage
- Loading branch information
1 parent
3af53d1
commit 3e3998c
Showing
8 changed files
with
164 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.