-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #368 from bomin0830/part2-김보민-week11
[김보민] week11
- Loading branch information
Showing
57 changed files
with
812 additions
and
348 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
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.
File renamed without changes.
File renamed without changes.
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 @@ | ||
export * from "./ErrorComponent"; |
File renamed without changes.
File renamed without changes.
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 @@ | ||
export * from "./FolderInfo"; |
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,18 @@ | ||
.folderTitle-wrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.title-button-wrapper { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 12px; | ||
} | ||
|
||
.title-button-wrapper p { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 4px; | ||
} |
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,67 @@ | ||
import { useState } from "react"; | ||
import { ModalLayout } from "../ModalLayout"; | ||
import "./FolderTitle.css"; | ||
|
||
export function FolderTitle({ name }) { | ||
const [isOpen, setIsOpen] = useState({ | ||
share: false, | ||
delete: false, | ||
nameChange: false, | ||
}); | ||
|
||
const toggleHandler = (state) => { | ||
setIsOpen((prev) => ({ | ||
...prev, | ||
[state]: !prev[state], | ||
})); | ||
}; | ||
|
||
console.log(isOpen.share); | ||
return ( | ||
<> | ||
<div className="folderTitle-wrapper"> | ||
<div className="folder-name">{name}</div> | ||
<div className="title-button-wrapper"> | ||
<p onClick={() => toggleHandler("share")}> | ||
<img src="images/share.svg" alt="share-button"></img>공유 | ||
</p> | ||
<p onClick={() => toggleHandler("nameChange")}> | ||
<img src="images/pen.svg" alt="nameChange-button"></img>이름 변경 | ||
</p> | ||
<p onClick={() => toggleHandler("delete")}> | ||
<img src="images/Group 36.svg" alt="delete-button"></img>삭제 | ||
</p> | ||
</div> | ||
</div> | ||
{isOpen.share && ( | ||
<ModalLayout | ||
title="폴더 공유" | ||
description={name} | ||
toggleHandler={() => toggleHandler("share")} | ||
> | ||
폴더 공유 | ||
</ModalLayout> | ||
)} | ||
{isOpen.delete && ( | ||
<ModalLayout | ||
title="폴더 삭제" | ||
description={name} | ||
toggleHandler={() => toggleHandler("delete")} | ||
> | ||
<div className="button delete">삭제하기</div> | ||
</ModalLayout> | ||
)} | ||
{isOpen.nameChange && ( | ||
<ModalLayout | ||
title="폴더 이름 변경" | ||
toggleHandler={() => toggleHandler("nameChange")} | ||
> | ||
<div className="modal-contents"> | ||
<input></input> | ||
<div className="add button">변경하기</div> | ||
</div> | ||
</ModalLayout> | ||
)} | ||
</> | ||
); | ||
} |
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 @@ | ||
export * from "./FolderTitle"; |
File renamed without changes.
File renamed without changes.
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 @@ | ||
export * from "./Footer"; |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
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,24 @@ | ||
import "./Header.css"; | ||
|
||
export function Header({ user }) { | ||
return ( | ||
<header className="header"> | ||
<div className="header-contents"> | ||
<a href="/"> | ||
<img src="images/logo.svg" alt="linklabrary로고" /> | ||
</a> | ||
<div className="user-container"> | ||
<div className="icon"> | ||
<img src="images/Ellipse21.svg" alt="myicon"></img> | ||
<img | ||
className="profile" | ||
src="images/myprofile.png" | ||
alt="myprofile" | ||
></img> | ||
</div> | ||
<p>{user.email ?? "로그인"}</p> | ||
</div> | ||
</div> | ||
</header> | ||
); | ||
} |
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 @@ | ||
export * from "./Header"; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,61 @@ | ||
.LinkInput-wrapper { | ||
padding: 60px 90px; | ||
background-color: #f0f6ff; | ||
} | ||
|
||
.LinkInput { | ||
border-radius: 15px; | ||
border: 1px solid var(--Linkbrary-primary-color, #6d6afe); | ||
background-color: white; | ||
width: 800px; | ||
margin: 0 auto; | ||
padding: 16px 20px; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
@media (max-width: 1000px) { | ||
width: 100%; | ||
} | ||
} | ||
|
||
.LinkInput .input-icon-wrapper { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 10px; | ||
} | ||
|
||
.LinkInput input { | ||
color: #9fa6b2; | ||
font-family: Pretendard; | ||
font-size: 16px; | ||
font-weight: 400; | ||
border-width: 0; | ||
} | ||
|
||
.add-url-button { | ||
border-radius: 8px; | ||
background: var( | ||
--gra-purpleblue-to-skyblue, | ||
linear-gradient(91deg, #6d6afe 0.12%, #6ae3fe 101.84%) | ||
); | ||
color: #f5f5f5; | ||
padding: 10px 16px; | ||
font-size: 14px; | ||
} | ||
|
||
.modal-contents { | ||
width: 100%; | ||
} | ||
|
||
.folder-select-wrapper { | ||
max-height: 172px; | ||
overflow-y: auto; | ||
} | ||
|
||
.folder-select { | ||
font-size: 16px; | ||
display: flex; | ||
padding: 8px; | ||
font-weight: 400; | ||
} |
Oops, something went wrong.