-
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(services): improve service cards and add service images
- Loading branch information
1 parent
b45b258
commit 758e623
Showing
11 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Card, CardContent } from '@/components/ui/card' | ||
import { Button } from '@/components/ui/button' | ||
import { IService } from '@/models/IService' | ||
|
||
interface Props { | ||
service: IService | ||
} | ||
|
||
export default function SwiperCard({ service }: Props): JSX.Element { | ||
return ( | ||
<Card className='w-full max-w-md bg-white shadow-md rounded-lg overflow-hidden dark:bg-gray-800'> | ||
<img | ||
src={service.imageSrc} | ||
alt='Service Image' | ||
className='w-full h-48 object-cover' | ||
/> | ||
<CardContent className='p-6 space-y-4'> | ||
<div> | ||
<h3 className='text-2xl font-bold text-gray-900 dark:text-gray-100'> | ||
{service.title} | ||
</h3> | ||
<p className='text-gray-600 dark:text-gray-400 mt-2'> | ||
{service.description} | ||
</p> | ||
</div> | ||
<div className='flex justify-between items-center'> | ||
<Button | ||
as='a' | ||
Check failure on line 28 in src/components/swiper-card.tsx GitHub Actions / Build and Deploy Job
|
||
href={service.brochureLink} | ||
download | ||
className='bg-gray-900 text-white hover:bg-gray-800 focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 focus:ring-offset-gray-50 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-gray-200 dark:focus:ring-gray-600 dark:focus:ring-offset-gray-800' | ||
> | ||
Download Brochure | ||
</Button> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
) | ||
} |
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,7 @@ | ||
export interface IService { | ||
id: number | ||
title: string | ||
description: string | ||
imageSrc: string | ||
brochureLink: string | ||
} |