@@ -18,7 +28,7 @@ const DropDown = ({ isOpen, items, onClickItem }: DropDownType) => {
onClickItem(item.label)}
+ onClick={() => onClick(item.label)}
>
{item.icon}
{item.label}
diff --git a/src/page/community/component/ImageCover/ImageCover.css.ts b/src/page/community/component/ImageCover/ImageCover.css.ts
new file mode 100644
index 00000000..2b7660b3
--- /dev/null
+++ b/src/page/community/component/ImageCover/ImageCover.css.ts
@@ -0,0 +1,32 @@
+import { createVar, style } from "@vanilla-extract/css";
+import { color, font } from "@style/styles.css.ts";
+
+export const container = style({
+ position: "relative",
+ borderRadius: "0.8rem",
+});
+
+export const deleteButton = style({
+ position: "absolute",
+ right: 0,
+ top: 0,
+ zIndex: 3,
+});
+
+export const ghost = style({
+ position: "absolute",
+ top: 0,
+ left: 0,
+ width: "10.4rem",
+ height: "10.4rem",
+ zIndex: 1,
+ borderRadius: "0.8rem",
+ background:
+ "linear-gradient(0deg, rgba(217, 217, 217, 0.00) 0%, rgba(115, 115, 115, 0.30) 100%)",
+});
+
+export const image = style({
+ width: "10.4rem",
+ height: "10.4rem",
+ borderRadius: "0.8rem",
+});
diff --git a/src/page/community/component/ImageCover/ImageCover.tsx b/src/page/community/component/ImageCover/ImageCover.tsx
new file mode 100644
index 00000000..b87204ac
--- /dev/null
+++ b/src/page/community/component/ImageCover/ImageCover.tsx
@@ -0,0 +1,33 @@
+import { container, deleteButton, ghost, image } from "./ImageCover.css.ts";
+import React from "react";
+import { IcDeleteWhite } from "@asset/svg";
+
+interface ImageSlideType {
+ key: number;
+ imageSrc: string;
+ onDeleteClick: (id: number) => void;
+}
+
+/**
+ * 이미지 백그라운드에 그라디언트 적용 및 X 아이콘
+ * @param key 삭제할 때 사용할 이미지 id
+ * @param imageSrc
+ * @param onDeleteClick
+ * @constructor
+ */
+
+const ImageCover = ({ key, imageSrc, onDeleteClick }: ImageSlideType) => {
+ return (
+
+
onDeleteClick(key)}
+ />
+
+
+
+ );
+};
+
+export default ImageCover;
diff --git a/src/page/community/component/Tag/Tag.tsx b/src/page/community/component/Tag/Tag.tsx
index 33fc3ab6..fdf98a99 100644
--- a/src/page/community/component/Tag/Tag.tsx
+++ b/src/page/community/component/Tag/Tag.tsx
@@ -1,24 +1,19 @@
import { tagContainer } from "@page/community/component/Tag/Tag.css.ts";
-import { IcLeftarrow, IcRight } from "@asset/svg";
import React from "react";
import { color } from "@style/styles.css.ts";
+import IcRight from "@asset/svg/IcRight.tsx";
interface tagType {
- label: string;
- value?: string;
- setTag: (tag: string) => void;
+ placeholder: string;
+ value?: string | undefined;
+ onClick: () => void;
+ isActive: boolean;
}
-const Tag = ({ label, value, setTag }: tagType) => {
- const isActive = value === label;
-
- const onClickTag = () => {
- setTag(label);
- };
-
+const Tag = ({ placeholder, value, onClick, isActive }: tagType) => {
return (
-