diff --git a/packages/app/src/components/Button.tsx b/packages/app/src/components/Button.tsx index a2922e8..90f1deb 100644 --- a/packages/app/src/components/Button.tsx +++ b/packages/app/src/components/Button.tsx @@ -1,81 +1,3 @@ -// import styled from "styled-components"; - -// export const Button = styled.button` -// padding: 0 14px; -// border-radius: 4px; -// background: #8272e4; -// border: none; -// display: flex; -// align-items: center; -// justify-content: center; -// font-weight: 600; -// font-size: 0.9rem; -// letter-spacing: -0.02em; -// color: #fff; -// cursor: pointer; -// height: 48px; -// width: 100%; -// min-width: 32px; -// transition: all 0.2s ease-in-out; -// &:hover { -// background: #9b8df2; -// } -// &:disabled { -// opacity: 0.5; -// cursor: not-allowed; -// } -// `; - -// export const OutlinedButton = styled.button` -// padding: 0 14px; -// border-radius: 4px; -// border: none; -// display: flex; -// align-items: center; -// justify-content: center; -// font-weight: 500; -// font-size: 0.9rem; -// letter-spacing: -0.02em; -// color: #8272e4; -// cursor: pointer; -// height: 48px; -// width: 100%; -// min-width: 32px; -// transition: all 0.2s ease-in-out; -// background: transparent; -// border: 1px solid #8272e4; -// &:hover { -// background: #9b8df2; -// color: white; -// } -// &:disabled { -// opacity: 0.5; -// cursor: not-allowed; -// } -// `; - - -// export const TextButton = styled.button` -// width: fit-content; -// background: transparent; -// border: none; -// color: white; -// font-weight: 500; -// padding: 4px 16px; -// border-radius: 4px; -// &:hover { -// background: #00000020; -// color: white; -// } -// &:disabled { -// opacity: 0.5; -// cursor: not-allowed; -// } -// `; - - - - import React from 'react'; import styled from "styled-components"; import { useTheme, Button as MuiButton } from "@mui/material"; @@ -91,7 +13,6 @@ interface ButtonProps { } const StyledButton = styled(MuiButton)<{ highlighted: boolean }>` - padding: 0 14px; text-transform: none; border-radius: 9px; display: flex; @@ -126,13 +47,13 @@ const StyledButton = styled(MuiButton)<{ highlighted: boolean }>` @media (max-width: 400px) { font-size: 0.6rem; - padding: 0 5px; - height: 42px; + padding: 0 4px; + height: 40px; } `; const StyledOutlinedButton = styled(MuiButton)<{ highlighted: boolean }>` - padding: 0 14px; + padding: 0 5px; border-radius: 9px; display: flex; align-items: center; @@ -144,7 +65,7 @@ const StyledOutlinedButton = styled(MuiButton)<{ highlighted: boolean }>` cursor: pointer; height: 48px; width: 100%; - min-width: 32px; + min-width: 30px; transition: all 0.2s ease-in-out; background: '#ffffff'; border: 1px solid ${({ highlighted, theme }) => (highlighted ? theme.palette.accent.main : '#1C1C1C')}; @@ -167,8 +88,8 @@ const StyledOutlinedButton = styled(MuiButton)<{ highlighted: boolean }>` @media (max-width: 400px) { font-size: 0.6rem; - padding: 0 5px; - height: 42px; + padding: 0 2px; + height: 40px; } `; @@ -178,7 +99,6 @@ const StyledTextButton = styled(MuiButton)<{ highlighted: boolean }>` border: none; color: ${({ highlighted, theme }) => (highlighted ? theme.palette.accent.main : theme.palette.secondary.main)}; font-weight: 500; - padding: 4px 16px; border-radius: 9px; &:hover { @@ -197,8 +117,8 @@ const StyledTextButton = styled(MuiButton)<{ highlighted: boolean }>` @media (max-width: 400px) { font-size: 0.6rem; - padding: 2px 10px; - height: 42px; + padding: 0 2px; + height: 40px; } `; diff --git a/packages/app/src/components/LabeledTextArea.tsx b/packages/app/src/components/LabeledTextArea.tsx index 2c72e2b..adf5ca7 100644 --- a/packages/app/src/components/LabeledTextArea.tsx +++ b/packages/app/src/components/LabeledTextArea.tsx @@ -1,105 +1,3 @@ -// import _ from "lodash"; -// import React, { CSSProperties } from "react"; -// import styled from "styled-components"; -// import { Col } from "./Layout"; - -// export const LabeledTextArea: React.FC<{ -// style?: CSSProperties; -// className?: string; -// label: string; -// value: string; -// warning?: string; -// warningColor?: string; -// disabled?: boolean; -// disabledReason?: string; -// secret?: boolean; -// onChange?: React.ChangeEventHandler; -// }> = ({ -// style, -// warning, -// warningColor, -// disabled, -// disabledReason, -// label, -// value, -// onChange, -// className, -// secret, -// }) => { -// return ( -// -// -// {warning && ( -// -// {warning} -// -// )} -//