%PDF- %PDF-
| Direktori : /home2/rezakur1/www/portfolio/portfolio-rezakurnia/src/components/cards/ |
| Current File : //home2/rezakur1/www/portfolio/portfolio-rezakurnia/src/components/cards/Service.astro |
---
import Paragraph from '../shared/Paragraph.astro';
export interface Props{
title:string,
description:string
icon: string
titleKey?: string
descriptionKey?: string
}
const {title, description, icon, titleKey, descriptionKey} = Astro.props
---
<div class="p-5 sm:p-6 lg:p-8 rounded-3xl border border-box-border bg-box-bg shadow-lg shadow-box-shadow relative overflow-hidden">
<div class="rounded-xl bg-gray-300 dark:bg-gray-950 p-3 text-heading-1 w-max relative">
<slot set:html={icon} />
</div>
<div class="mt-6 space-y-4 relative">
<h2 class="text-lg md:text-xl font-semibold text-heading-2" data-i18n={titleKey}>
{title}
</h2>
<Paragraph data-i18n={descriptionKey}>
{description}
</Paragraph>
</div>
<span class="absolute w-32 aspect-square -bottom-16 -right-16 bg-primary/10 rounded-full"></span>
</div>