Skip to content

Commit

Permalink
style : 최소 폰트 크기 및 최대 폰트 크기 수정 및 로그인 시 Form구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sunub committed Jan 18, 2024
1 parent 541244e commit cd7e095
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
11 changes: 4 additions & 7 deletions src/components/LoginForm/Form/Form.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,14 @@ export const Placeholder = styled.div<{ $isFocus: boolean }>`
color 200ms ease-in-out; // Specify transitions for each property
`;

export const HeaderWrapper = styled.div`
grid-area: primary-header / fullbleed;
grid-template-rows: auto auto;
`;

export const MainWrapper = styled.div`
grid-area: main / main-start / footer / main-end;
grid-template-rows: auto auto;
display: flex;
flex-direction: column;
justify-content: center;
`;

export const FooterWrapper = styled.div`
grid-area: footer / main-start / system-gesture / main-end;
grid-template-rows: auto auto;
`;
1 change: 1 addition & 0 deletions src/components/LoginForm/FormHeader/FormHeader.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const Header = styled.header`
display: flex;
justify-content: center;
align-items: center;
padding-top: 9cqh;
`;

export const Title = styled.h1`
Expand Down
6 changes: 3 additions & 3 deletions src/components/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React from "react";
import * as Styled from "./LoginForm.styled";
import FormHeader from "./FormHeader";
import { createUserInfo } from "@/lib/action";
import { createUserInfo, authenticate } from "@/lib/action";
import LoginInput from "./Form/LoginInput";
import LoginButton from "./Form/LoginButton";
import Form from "./Form/Form";
Expand All @@ -13,10 +13,10 @@ function LoginForm() {
<Styled.Form
method="post"
action={"/login"}
onSubmit={(e) => {
onSubmit={async (e) => {
e.preventDefault();
const formData = new FormData(e.currentTarget);
createUserInfo(formData);
await authenticate(formData);
}}
>
<FormHeader />
Expand Down
2 changes: 1 addition & 1 deletion src/components/ResizeFont/ResizeFont.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Button from "@/components/Button";
import * as Styled from "./ResizeFont.style";

function ResizeFont() {
const [fonstSize, setFontSize] = React.useState(24);
const [fonstSize, setFontSize] = React.useState(16);

React.useEffect(() => {
const root = document.documentElement;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ interface SliderProps {

function Slider(props: SliderProps) {
const { fontSize, setFontSize } = props;
const min = 24;
const max = 8;
const min = 8;
const max = 24;
const [hovering, toggleHovering] = useToggle(false);
const ref = React.useRef<HTMLDivElement>(null);

Expand Down

0 comments on commit cd7e095

Please sign in to comment.