Skip to content

Commit

Permalink
fix: #75 Fix Button Provider Sticky Error
Browse files Browse the repository at this point in the history
  • Loading branch information
klmhyeonwoo committed Aug 9, 2024
1 parent 940a3dd commit f460cc8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions src/component/template/ExampleButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { css } from "@emotion/react";
import { ButtonHTMLAttributes, PropsWithChildren } from "react";

import { Icon } from "@/component/common/Icon";

export function ExampleButton({ children = "회고 예시 보기" }: PropsWithChildren<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type">>) {
return (
<button
css={css`
color: #6c9cfa;
background: #e9f0ff;
padding: 2rem;
border-radius: 1.2rem;
font-size: 1.6rem;
display: flex;
align-items: center;
div:nth-of-type(1) {
font-weight: 500;
}
`}
>
<div>{children}</div>
<Icon
icon={"ic_back"}
css={css`
transform: rotate(180deg);
color: #6c9cfa;
margin-left: auto;
`}
size={1.7}
/>
</button>
);
}
2 changes: 1 addition & 1 deletion src/layout/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function DefaultLayout({ children, title, theme = "default", height, appB
display: flex;
flex-direction: column;
padding: 0 2rem;
min-height: calc(100dvh - ${height ?? `5.8rem`});
height: calc(100dvh - ${height ?? `5.8rem`});
`}
>
{children}
Expand Down

0 comments on commit f460cc8

Please sign in to comment.