-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[김윤수] week13 #391
Open
yunsusu
wants to merge
5
commits into
codeit-bootcamp-frontend:part3-김윤수
Choose a base branch
from
yunsusu:part3-김윤수-week13
base: part3-김윤수
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
The head ref may contain hidden characters: "part3-\uAE40\uC724\uC218-week13"
Open
[김윤수] week13 #391
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
23423a6
feat : login api
yunsusu 75d4f80
Merge branch 'part3-김윤수' of https://github.com/codeit-bootcamp-fronte…
yunsusu b4de537
feat : 로그인 회원가입 구현 / react-hook-form을 사용
yunsusu a70e573
멘토님 리뷰 수정
yunsusu 9266ede
fix : 코드 정리 / 위클리 요구사항 확인 후 수정
yunsusu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Image from "next/image"; | ||
|
||
import * as F from "./styled"; | ||
|
||
export default function AddLink() { | ||
return ( | ||
<F.addLink> | ||
<div style={{ width: "20px", height: "20px", position: "relative" }}> | ||
<Image src="/img/link.png" alt="linkimg" fill style={{ objectFit: "cover" }} /> | ||
</div> | ||
<F.addInput placeholder="링크를 추가해 보세요" /> | ||
<F.addButton>추가하기</F.addButton> | ||
</F.addLink> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import styled from "styled-components"; | ||
export const addLink = styled.form` | ||
max-width: 80rem; | ||
width: 100%; | ||
padding: 0 2rem; | ||
border-radius: 1rem; | ||
background-color: #fff; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
gap: 1rem; | ||
margin: 0 auto; | ||
border: 1px solid var(--linkbrary-primary-color, #6d6afe); | ||
`; | ||
export const addInput = styled.input` | ||
width: 100%; | ||
padding: 1.6rem 2rem; | ||
border-radius: 1.5rem; | ||
`; | ||
export const addButton = styled.button` | ||
width: 8rem; | ||
height: 3.7rem; | ||
font-size: 1.4rem; | ||
/* padding: 1rem 1.6rem; */ | ||
border-radius: 0.8rem; | ||
background: var(--gra-purpleblue-to-skyblue, linear-gradient(91deg, #6d6afe 0.12%, #6ae3fe 101.84%)); | ||
color: #fff; | ||
cursor: pointer; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useState } from "react"; | ||
|
||
export const useToggle = (initialValue: boolean) => { | ||
const [value, setValue] = useState(initialValue); | ||
|
||
const toggleValue = (): void => { | ||
setValue((currentValue) => !currentValue); | ||
}; | ||
|
||
return [value, toggleValue]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,70 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
} | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: "https", | ||
hostname: "s.pstatic.net", | ||
port: "", | ||
pathname: "/static/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "tanstack.com", | ||
port: "", | ||
pathname: "/build/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "storybook.js.org", | ||
port: "", | ||
pathname: "/images/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "codeit-frontend.codeit.com", | ||
port: "", | ||
pathname: "/static/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "assets.vercel.com", | ||
port: "", | ||
pathname: "/image/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "reactjs.org", | ||
port: "", | ||
pathname: "/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "jasonwatmore.com", | ||
port: "", | ||
pathname: "/_content/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "codeit.kr", | ||
port: "", | ||
pathname: "/static/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "testing-library.com", | ||
port: "", | ||
pathname: "/img/**", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "static.cdninstagram.com", | ||
port: "", | ||
pathname: "/rsrc.php/**", | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
인라인 스타일은 가급적 사용을 지양해주세요!