Skip to content

Commit

Permalink
added testimonials section
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Mar 4, 2023
1 parent 470d3ba commit 7719d4c
Show file tree
Hide file tree
Showing 9 changed files with 138 additions and 1 deletion.
136 changes: 136 additions & 0 deletions components/Testimonials.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
import Image from "next/image";

const testimonials = [
[
{
content: "So good! I need this right now. Congrats on the launch!",
link: "https://twitter.com/eveporcello/status/1631438728999899136",
author: {
name: "Eve Porcello",
role: "Engineer & Author",
image: "/eve.jpg",
},
},

{
content:
"Finally! Something to help me get over my indecisiveness when decorating my house!",
link: "https://twitter.com/arthur_dvorkin/status/1631402865209274369",
author: {
name: "Arthur Dvorkin",
role: "Engineer",
image: "/arthur.jpg",
},
},
],
[
{
content:
"This is incredible, you don't need an interior designer anymore.",
link: "https://www.tiktok.com/@thenubians/video/7206088336044313861?q=roomgpt.io&t=1677909079689",
author: {
name: "Ade Dada",
role: "Startup Founder",
image: "/ade.jpeg",
},
},
{
content:
"I haven't changed my room layout for 5 years, but this app may change that. Great job.",
link: "https://twitter.com/RobAttfield/status/1631545265281974273",
author: {
name: "Rob Attfield",
role: "Software Engineer",
image: "/rob.jpg",
},
},
],
[
{
content:
"This is fantastic. I've already decided on a new wall color from a generated image and repainting it is now my weekend project.",
link: "https://twitter.com/Music4UsAll/status/1631622608595607552",
author: {
name: "Music",
role: "Some dude on the internet",
image: "/music.jpg",
},
},
{
content: "🤯",
link: "https://twitter.com/github/status/1631821360619028482",
author: {
name: "GitHub",
role: "The one and only",
image: "/github.jpg",
},
},
],
];

export function Testimonials() {
return (
<section
id="testimonials"
aria-label="What our customers are saying"
className="py-10"
>
<div className="mx-auto px-4 sm:px-6 lg:px-8 md:px-7">
<div className="mx-auto md:text-center">
<h1 className="mx-auto max-w-4xl font-display text-4xl font-bold tracking-normal text-gray-300 sm:text-6xl">
Loved by many worldwide.
</h1>
<p className="mx-auto mt-6 max-w-xl text-lg sm:text-gray-400 text-gray-500 leading-7">
See what our 50,000+ users are saying about the product.
</p>
</div>
<ul
role="list"
className="mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-6 sm:gap-8 lg:mt-16 lg:max-w-none lg:grid-cols-3"
>
{testimonials.map((column, columnIndex) => (
<li key={columnIndex}>
<ul role="list" className="flex flex-col gap-y-6 sm:gap-y-8">
{column.map((testimonial, testimonialIndex) => (
<li
key={testimonialIndex}
className="hover:scale-105 transition duration-300 ease-in-out "
>
<a href={testimonial.link} target="_blank" rel="noreferrer">
<figure className="relative rounded-2xl bg-gray-600 p-6 shadow-xl shadow-slate-900/10">
<blockquote className="relative">
<p className="text-lg tracking-tight text-white">
"{testimonial.content}"
</p>
</blockquote>
<figcaption className="relative mt-6 flex items-center justify-between border-t border-slate-100 pt-6">
<div>
<div className="font-display text-base text-white">
{testimonial.author.name}
</div>
<div className="mt-1 text-sm text-gray-400">
{testimonial.author.role}
</div>
</div>
<div className="overflow-hidden rounded-full bg-slate-50">
<Image
className="h-14 w-14 object-cover"
src={testimonial.author.image}
alt="picture of the testimonial author"
width={56}
height={56}
/>
</div>
</figcaption>
</figure>
</a>
</li>
))}
</ul>
</li>
))}
</ul>
</div>
</section>
);
}
3 changes: 2 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Link from "next/link";
import Footer from "../components/Footer";
import Header from "../components/Header";
import SquigglyLines from "../components/SquigglyLines";
import { Testimonials } from "../components/Testimonials";

const Home: NextPage = () => {
return (
Expand Down Expand Up @@ -69,7 +70,7 @@ const Home: NextPage = () => {
</div>
</div>
</main>
{/* <Testimonials /> */}
<Testimonials />
<Footer />
</div>
);
Expand Down
Binary file added public/ade.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/arthur.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/eve.jpg
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 public/generated-pic.png
Binary file not shown.
Binary file added public/github.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/music.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/rob.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 7719d4c

@vercel
Copy link

@vercel vercel bot commented on 7719d4c Mar 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.