Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
k70suK3-k06a7ash1 committed Feb 24, 2025
1 parent af7edc7 commit 1c82a18
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 85 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export const App = () => {
</SubContent>
<MainContent>
<Section>
<h2>Edit</h2>
<h2 className="text-2xl font-semibold">Edit</h2>
<DragAndDropArea />
<Spacer size={24} />
{contents.length > 0 && <BottomAddSection />}
</Section>
<Section>
<h2>Preview</h2>
<h2 className="text-2xl font-semibold">Preview</h2>
<PreviewSection contents={contents} />
<Spacer size={16} />
</Section>
Expand Down
2 changes: 1 addition & 1 deletion src/components/atoms/icon/BottomAddSectionIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useAddSection } from "@/hooks/useAddSection";
export const BottomAddSection = () => {
const { handleAddSection } = useAddSection();
return (
<div className="flex items-center justify-start">
<div className="flex items-center justify-start bg-gray-100 rounded-md p-4">
<div>
<Spacer horizontal size={30} />
</div>
Expand Down
9 changes: 0 additions & 9 deletions src/components/atoms/iconContainer/style.module.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/features/card/mode/display/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const DisplayMode = ({
contentMarkdown,
}: DisplayCardProps) => {
return (
<div className="p-0 px-4 pb-4 rounded-lg markdown-body filter invert">
<div className="p-4 pb-4 rounded-md markdown-body">
<div className="absolute top-2 right-4">
<EditCardIcon toggleIsEdit={toggleIsEdit} />
</div>
Expand Down
14 changes: 0 additions & 14 deletions src/components/features/card/mode/display/style.module.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/features/card/mode/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const EditMode = ({
/>
</div>
<textarea
className="w-full h-[20vh] text-base border-2 border-[#e0e0e0] rounded-md p-2 box-border bg-[#e0e0e0]"
className="w-full h-[20vh] text-base border-2 border-gray-200 rounded-md p-2 box-border bg-gray-200"
value={editContent}
onChange={(event) => {
setEditContent(event.target.value);
Expand Down
20 changes: 0 additions & 20 deletions src/components/features/card/mode/edit/style.module.css

This file was deleted.

5 changes: 0 additions & 5 deletions src/components/features/selectSeparateLevel/index.module.css

This file was deleted.

5 changes: 0 additions & 5 deletions src/features/drag-and-drop/ui/style.module.css

This file was deleted.

14 changes: 10 additions & 4 deletions src/features/markdown-editor/ui/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { type Dispatch, useReducer, type DragEvent } from "react";
import {
type Dispatch,
useReducer,
type DragEvent,
type DragEventHandler,
} from "react";

import { Card } from "@/components/atoms/card";
import { DraggableIcon } from "@/components/atoms/icon/DraggableIcon";
Expand All @@ -11,9 +16,9 @@ type Props = {
content: ContentType;
updateContents: Dispatch<ContentType>;
deleteContents: Dispatch<ContentType>;
dragOver: Dispatch<DragEvent>;
dragStart: DragEvent;
handleDrop: DragEvent;
dragOver: DragEventHandler<HTMLDivElement>;
dragStart: DragEventHandler<HTMLDivElement>;
handleDrop: DragEventHandler<HTMLDivElement>;
};

export const CardSection = ({
Expand Down Expand Up @@ -56,6 +61,7 @@ export const CardSection = ({
onDrop={handleDrop}
onDragStart={dragStart}
onDragOver={dragOver}
className="active:cursor-grabbing"
>
<div className="cursor-grab flex items-center justify-start">
<DraggableIcon />
Expand Down
16 changes: 0 additions & 16 deletions src/features/markdown-editor/ui/style.module.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/layouts/Frame/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Frame = (props: PropsWithChildren) => {
<div className="sticky top-0 bg-[#e4e4e4] z-100">
<TabBar />
</div>
<div className="mx-auto">{props.children}</div>
<div className="mx-auto p-4">{props.children}</div>
</>
);
};
4 changes: 0 additions & 4 deletions src/layouts/Section/style.module.css

This file was deleted.

4 changes: 2 additions & 2 deletions src/layouts/SubContent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Composition } from "@/types";
import type { Composition } from "@/types";
export const SubContent = ({ children }: Composition): JSX.Element => (
<div className="px-6">{children}</div>
<div className="px-6 bg-gray-100 rounded-md p-4">{children}</div>
);

0 comments on commit 1c82a18

Please sign in to comment.