-
Notifications
You must be signed in to change notification settings - Fork 37
[송형진] Sprint7 #300
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
Merged
devToram
merged 1 commit into
codeit-bootcamp-frontend:React-송형진
from
sori4606:React-송형진
Jan 20, 2025
The head ref may contain hidden characters: "React-\uC1A1\uD615\uC9C4"
Merged
[송형진] Sprint7 #300
Changes from all commits
Commits
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 hidden or 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,7 @@ import SearchForm from "../SearchForm/SearchForm"; | |||||
| import Pagination from "../Pagination/Pagination"; | ||||||
| import "./AllProducts.css"; | ||||||
| import useDevice from "../../hooks/useDevice"; | ||||||
| import { Link } from "react-router-dom"; | ||||||
|
|
||||||
| function AllProducts() { | ||||||
| const [allItemList, setAllItemList] = useState([]); | ||||||
|
|
@@ -58,6 +59,7 @@ function AllProducts() { | |||||
| {allItemList.map((item) => ( | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 여기서 구조분해 할당해서 가져와도 좋겠네요!
Suggested change
|
||||||
| <li key={item.id}> | ||||||
| <ProductItem | ||||||
| id={item.id} | ||||||
| imageUrl={item.images[0]} | ||||||
| name={item.name} | ||||||
| price={item.price} | ||||||
|
|
||||||
This file contains hidden or 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 hidden or 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,266 @@ | ||
| .specific-product-item { | ||
| max-width: 1200px; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| .specific-product-container { | ||
| display: flex; | ||
| max-width: 1200px; | ||
| margin: 0 auto; | ||
| margin-top: 24px; | ||
| border-bottom: 1px solid #e5e7eb; | ||
| height: 536px; | ||
| } | ||
|
|
||
| .specific-product-info { | ||
| padding-left: 24px; | ||
| } | ||
|
|
||
| .specific-product-name { | ||
| font-weight: 600; | ||
| font-size: 24px; | ||
| line-height: 32px; | ||
| color: #1f2937; | ||
| } | ||
|
|
||
| .specific-product-price { | ||
| font-weight: 600; | ||
| font-size: 40px; | ||
| line-height: 47.73px; | ||
| color: #1f2937; | ||
| } | ||
|
|
||
| .specific-product-introduce-title { | ||
| font-weight: 600; | ||
| font-size: 16px; | ||
| line-height: 26px; | ||
| color: #4b5563; | ||
| } | ||
|
|
||
| .specific-product-introduce-description { | ||
| font-weight: 400; | ||
| font-size: 16px; | ||
| line-height: 26px; | ||
| color: #4b5563; | ||
| } | ||
|
|
||
| .specific-product-tag-title { | ||
| font-weight: 600; | ||
| font-size: 16px; | ||
| line-height: 26px; | ||
| color: #4b5563; | ||
| } | ||
|
|
||
| .owner-section { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 16px; | ||
|
|
||
| padding-top: 67px; | ||
| } | ||
|
|
||
| .user-image-container { | ||
| background-color: #9ca3af; | ||
| width: 40px; | ||
| height: 40px; | ||
| border-radius: 50%; | ||
| } | ||
|
|
||
| .user-information-section { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 4px; | ||
| } | ||
|
|
||
| .user-ownernickname { | ||
| font-weight: 500; | ||
| font-size: 14px; | ||
| line-height: 24px; | ||
| color: #4b5563; | ||
| margin: 0; | ||
| } | ||
| .user-createdat { | ||
| font-weight: 400; | ||
| font-size: 14px; | ||
| line-height: 24px; | ||
| color: #9ca3af; | ||
| margin: 0; | ||
| } | ||
|
|
||
| .specific-heart-section { | ||
| margin-left: auto; | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 4px; | ||
| border: 1px solid #e5e7eb; | ||
| border-radius: 35px; | ||
| padding: 4px 12px; | ||
| } | ||
|
|
||
| .ask-input { | ||
| width: 1200px; | ||
| height: 104px; | ||
| border-radius: 12px; | ||
| padding: 16px 24px; | ||
| gap: 10px; | ||
| background-color: #f3f4f6; | ||
| } | ||
|
|
||
| .register-button-container { | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| margin-top: 24px; | ||
| } | ||
|
|
||
| .register-button { | ||
| margin-left: auto; | ||
| width: 74px; | ||
| height: 42px; | ||
| border-radius: 8px; | ||
| padding: 12px 23px; | ||
| gap: 10px; | ||
| background-color: #9ca3af; | ||
| color: white; | ||
| } | ||
|
|
||
| .register-button-active { | ||
| background-color: #3692ff; | ||
| } | ||
|
|
||
| .comment-section { | ||
| margin-top: 24px; | ||
| } | ||
|
|
||
| .comment-container { | ||
| border-bottom: 1px solid #e5e7eb; | ||
| padding-bottom: 20px; | ||
| } | ||
|
|
||
| .comment-kebab-container { | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .comment-user-container { | ||
| display: flex; | ||
| gap: 8px; | ||
| } | ||
|
|
||
| .comment-user-content { | ||
| margin: 24px 0px; | ||
| font-weight: 400; | ||
| font-size: 14px; | ||
| line-height: 24px; | ||
| } | ||
|
|
||
| .comment-image-container { | ||
| background-color: #9ca3af; | ||
| width: 32px; | ||
| height: 32px; | ||
| border-radius: 50%; | ||
| } | ||
|
|
||
| .comment-user-information { | ||
| gap: 4px; | ||
| } | ||
|
|
||
| .comment-user-nickname { | ||
| font-weight: 400px; | ||
| font-size: 12px; | ||
| line-height: 18px; | ||
| color: #4b5563; | ||
| } | ||
|
|
||
| .comment-user-when { | ||
| font-weight: 400; | ||
| font-size: 12px; | ||
| line-height: 18px; | ||
| columns: #9ca3af; | ||
| } | ||
|
|
||
| .search-button-container { | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| gap: 8px; | ||
| margin: 64px 0; | ||
| } | ||
|
|
||
| .search-button { | ||
| width: 240px; | ||
| height: 48px; | ||
| border-radius: 40px; | ||
| padding: 6px 32px; | ||
| font-weight: 600; | ||
| font-size: 18px; | ||
| line-height: 26px; | ||
| color: #f3f4f6; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| gap: 8px; | ||
| } | ||
|
|
||
| .return-icon { | ||
| width: 24px; | ||
| height: 24px; | ||
| } | ||
|
|
||
| .edit-comment-container { | ||
| width: 100%; | ||
| } | ||
|
|
||
| .edit-comment-input { | ||
| width: 100%; | ||
| padding: 16px 24px; | ||
| background-color: #f3f4f6; | ||
| border-radius: 12px; | ||
| height: 80px; | ||
| gap: 10px; | ||
| } | ||
|
|
||
| .edit-buttons-container { | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| gap: 8px; | ||
| } | ||
|
|
||
| .cancel-button { | ||
| padding: 4px 12px; | ||
| background-color: #e2e2e2; | ||
| border-radius: 4px; | ||
| border: none; | ||
| cursor: pointer; | ||
| font-size: 16px; | ||
| font-weight: 600; | ||
| line-height: 28px; | ||
| color: #737373; | ||
| margin-top: 16px; | ||
| } | ||
|
|
||
| .save-button { | ||
| padding: 12px 23px; | ||
| background-color: #3692ff; | ||
| color: white; | ||
| border-radius: 8px; | ||
| border: none; | ||
| cursor: pointer; | ||
| gap: 10px; | ||
|
|
||
| margin-top: 16px; | ||
| } | ||
|
|
||
| .cancel-button:hover { | ||
| background-color: #d2d2d2; | ||
| } | ||
|
|
||
| .save-button:hover { | ||
| background-color: #0056b3; | ||
| } | ||
|
|
||
| .no-comment-container { | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } |
Oops, something went wrong.
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.
토큰의 경우 github 에 올리시기보다 환경변수로 로컬에서 관리해주셔야해요!
https://velog.io/@milkboy2564/Next.js-env%ED%99%98%EA%B2%BD-%EB%B3%80%EC%88%98-%EC%A0%95%EB%A6%AC