메뉴 배너 관리

This commit is contained in:
2025-04-21 14:14:34 +09:00
parent 1598fa93b6
commit d2ac5b338e
18 changed files with 935 additions and 13 deletions

View File

@@ -0,0 +1,53 @@
import React, { useState, useEffect } from 'react';
import styled from 'styled-components';
const DotsButton = styled.button`
width: 24px;
height: 24px;
border-radius: 50%;
background-color: #f0f0f0;
border: none;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
&:hover {
background-color: #e0e0e0;
}
/* 점 스타일링 */
.dot {
width: 3px;
height: 3px;
border-radius: 50%;
background-color: #333;
margin: 2px 0;
}
`;
const VerticalDotsButton = ({ text, type = 'button', errorMessage, handleClick, size, width, height, borderColor, disabled, name }) => {
return (
<DotsButton
onSubmit={e => e.preventDefault()}
type={type}
disabled={disabled}
onClick={handleClick}
size={size}
bordercolor={borderColor}
width={width}
height={height}
name={name}
>
<div className="dot"></div>
<div className="dot"></div>
<div className="dot"></div>
</DotsButton>
);
};
export default VerticalDotsButton;