Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-feather": "^2.0.10",
"sharp": "^0.31.0"
"sharp": "^0.31.0",
"swiper": "^8.4.5"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.3",
Expand Down
Binary file added public/CQT.png
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/CareSuccess.png
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/Gyme.png
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/Learn.Design.png
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/TWSpotlight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/components/Showcase.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Slides } from '@/components/Slides';

export const Showcase = () => (
<section id='showcase'>
<Slides />
</section>
);
55 changes: 55 additions & 0 deletions src/components/Slides.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import Image from 'next/image';
import { Navigation, Pagination, A11y } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/react';

import 'swiper/css';
import 'swiper/css/navigation';
import 'swiper/css/pagination';
import 'swiper/css/scrollbar';

const metadata = [
{
source: '/Learn.Design.png',
alternativeText: 'Learn.Design',
},
{
source: '/Gyme.png',
alternativeText: 'Gyme',
},
{
source: '/CQT.png',
alternativeText: 'CQT',
},
{
source: '/CareSuccess.png',
alternativeText: 'Care Success',
},
{
source: '/TWSpotlight.png',
alternativeText: 'TWS Spotlight',
},
];

export const Slides = () => (
<section id='showcase'>
<Swiper
modules={[Navigation, Pagination, A11y]}
spaceBetween={50}
slidesPerView={1}
navigation
pagination={{ clickable: true }}
scrollbar={{ draggable: true }}>
{metadata.map(({ source, alternativeText }) => (
<SwiperSlide key={source} className='grid grid-cols-3'>
<Image
src={source}
alt={alternativeText}
width={600}
height={600}
/>
<div>Description</div>
</SwiperSlide>
))}
</Swiper>
</section>
);
5 changes: 5 additions & 0 deletions src/data/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ export const links: {
label: 'FAQ',
href: '#faq',
},
{
id: 4,
label: 'Showcase',
href: '#showcase',
},
];
2 changes: 2 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { FAQ } from '@/components/FAQ';
import { Hero } from '@/components/Hero';
import { Pricing } from '@/components/Pricing';
import { Showcase } from '@/components/Showcase';
import { type GetStaticProps } from 'next';

const Index = () => (
<div className='container mx-auto flex-1 px-4 sm:px-6 lg:px-8'>
<Hero />
<Pricing />
<FAQ />
<Showcase />
</div>
);

Expand Down
102 changes: 61 additions & 41 deletions yarn.lock

Large diffs are not rendered by default.