Skip to content

Commit

Permalink
Merge pull request #395 from depromeet/main
Browse files Browse the repository at this point in the history
main -> develop
  • Loading branch information
leeminhee119 committed Sep 13, 2024
2 parents 0bb2b9e + 1b89d40 commit c625b62
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
32 changes: 32 additions & 0 deletions apps/web/src/assets/svgs/common/ic_letter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/web/src/assets/svgs/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ export { default as ic_info_transparent } from "./ic_info_transparent.svg?react"
export { default as ic_apple_logo } from "./ic_apple_logo.svg?react";
export { default as ic_twoMan_blue } from "./ic_twoMan_blue.svg?react";
export { default as ic_minus } from "./ic_minus.svg?react";
export { default as ic_letter } from "./ic_letter.svg?react";
48 changes: 48 additions & 0 deletions apps/web/src/component/common/announcement/Announcement.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { css } from "@emotion/react";

import { ButtonProvider } from "@/component/common/button";
import { Icon } from "@/component/common/Icon";
import { Typography } from "@/component/common/typography";

type AnnouncementProps = { title: string; content: React.ReactNode; onConfirm: () => void };

export function Announcement({ title, content, onConfirm }: AnnouncementProps) {
return (
<div
css={css`
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
overflow: hidden;
height: 100%;
`}
>
<div
css={css`
display: flex;
flex-direction: column;
align-items: center;
gap: 1.6rem;
`}
>
<Icon icon={"ic_letter"} size={4.8} />
<Typography variant={"title18Bold"} color={"gray900"}>
{title}
</Typography>
</div>
<div
css={css`
overflow-y: auto;
::-webkit-scrollbar {
display: block;
}
`}
>
{content}
</div>

<ButtonProvider.Primary onClick={onConfirm}>확인</ButtonProvider.Primary>
</div>
);
}

0 comments on commit c625b62

Please sign in to comment.