33 lines
1.4 KiB
TypeScript
33 lines
1.4 KiB
TypeScript
/*
|
|
* Copyright (C) 2024 Aleksander <alekswilc> Wilczyński (aleks@alekswilc.dev)
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published
|
|
* by the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* See LICENSE for more.
|
|
*/
|
|
|
|
import { SuccessAlertIcon } from "../icons/AlertIcons.tsx";
|
|
|
|
export const SuccessAlert = ({ title, description }: { title: string, description: string }) =>
|
|
<div
|
|
className="flex w-full border-l-6 border-[#34D399] bg-[#34D399] bg-opacity-[15%] dark:bg-[#1B1B24] px-7 py-8 shadow-md dark:bg-opacity-30 md:p-9">
|
|
<div className="mr-5 flex h-9 w-full max-w-[36px] items-center justify-center rounded-lg bg-[#34D399]">
|
|
<SuccessAlertIcon/>
|
|
</div>
|
|
<div className="w-full">
|
|
<h5 className="mb-3 text-lg font-semibold text-black dark:text-[#34D399] ">
|
|
{ title }
|
|
</h5>
|
|
<p className="text-base leading-relaxed text-body">
|
|
{ description }
|
|
</p>
|
|
</div>
|
|
</div>; |