2024-10-19 06:07:56 +05:30
|
|
|
import React, { ReactNode } from 'react';
|
|
|
|
|
import styled from 'styled-components';
|
|
|
|
|
|
|
|
|
|
const CustomBoxContainer = styled.div`
|
|
|
|
|
position: relative;
|
2024-10-19 06:23:41 +05:30
|
|
|
width: 300px; /* Adjust width as needed */
|
2024-10-19 06:07:56 +05:30
|
|
|
height: 200px; /* Adjust height as needed */
|
2024-10-19 06:23:41 +05:30
|
|
|
border: 2px solid #ff00c3;
|
2024-10-19 06:07:56 +05:30
|
|
|
background-color: white;
|
2024-10-19 06:23:41 +05:30
|
|
|
margin: 30px auto;
|
2024-10-19 06:07:56 +05:30
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const Triangle = styled.div`
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -20px; /* Adjust this value to control the height of the triangle */
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
border-left: 20px solid transparent;
|
|
|
|
|
border-right: 20px solid transparent;
|
2024-10-19 06:23:41 +05:30
|
|
|
border-bottom: 20px solid #ff00c3;
|
2024-10-19 06:07:56 +05:30
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const Content = styled.div`
|
|
|
|
|
padding: 20px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const ActionDescriptionBox = ({ children }: { children: ReactNode }) => {
|
|
|
|
|
return (
|
|
|
|
|
<CustomBoxContainer>
|
|
|
|
|
<Triangle />
|
|
|
|
|
<Content>{children}</Content>
|
|
|
|
|
</CustomBoxContainer>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default ActionDescriptionBox;
|