generated from muhtadeetaron/nextjs-template
initial commit
This commit is contained in:
38
components/DestructibleAlert.tsx
Normal file
38
components/DestructibleAlert.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import React from "react";
|
||||
|
||||
const DestructibleAlert = ({
|
||||
text,
|
||||
extraStyles = "",
|
||||
}: {
|
||||
text: string;
|
||||
extraStyles?: string;
|
||||
}) => {
|
||||
return (
|
||||
<div
|
||||
className={`border bg-red-200 border-blue-200 rounded-3xl py-6 ${extraStyles}`}
|
||||
style={{
|
||||
borderWidth: 1,
|
||||
backgroundColor: "#fecaca",
|
||||
borderColor: "#c0dafc",
|
||||
paddingTop: 24,
|
||||
paddingBottom: 24,
|
||||
}}
|
||||
>
|
||||
<p
|
||||
className="text-center text-red-800"
|
||||
style={{
|
||||
fontSize: 17,
|
||||
lineHeight: "28px",
|
||||
fontFamily: "Montserrat, sans-serif",
|
||||
fontWeight: "bold",
|
||||
textAlign: "center",
|
||||
color: "#991b1b",
|
||||
}}
|
||||
>
|
||||
{text}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DestructibleAlert;
|
||||
Reference in New Issue
Block a user