-
Notifications
You must be signed in to change notification settings - Fork 5
Feat: 지원현황, 공유하기 수정 #152
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
Merged
Feat: 지원현황, 공유하기 수정 #152
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5b90efb
chore: 자잘한 수정
yyezzzy c66adfc
chore: ApplicationStatus => ApplyStatus 로 모두 수정
yyezzzy 17e3148
chore: applicationStatus => applyStatus
yyezzzy 6c60004
feat: 공유 버튼 ExpandedFloatingBtn 추가
yyezzzy e91b5d8
feat: 지원현황 정렬 기능
yyezzzy 62b5948
feat: ApplyStatusCard 컴포넌트를 apply 폴더로 이동 및 수정
yyezzzy 7303031
refactor: TranslateStatus 함수를 MyApplicationListItem에 적용
yyezzzy 99ea922
refactor: MyApplicationListItem에 getStatusVariant 함수 적용
yyezzzy c737d2f
feat: 검색 중일 때 SearchSpinner component 희망
yyezzzy 6d264d8
chore: 지원자 소셜로그인시 빈값으로 가입되는 것 경고 알람
yyezzzy 72b377c
chore: 지원자 없을 때 로띠추가
yyezzzy 82982ef
Merge branch 'dev' of https://github.com/FE9-2/workroot into feat/app…
yyezzzy c15b4e4
chore: DetailStyle 2xl => max-w-screen-xl
yyezzzy 5ce45fd
Merge branch 'dev' of https://github.com/FE9-2/workroot into feat/app…
yyezzzy e4d0002
chore: apply bug 수정
yyezzzy 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
src/app/(pages)/(albaform)/alba/[formId]/components/ApplicationStatus.tsx
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/app/(pages)/(albaform)/alba/[formId]/components/ApplyStatus.tsx
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,17 @@ | ||
| import ApplyStatusCard from "@/app/components/card/cardList/apply/ApplyStatusCard"; | ||
| import React from "react"; | ||
|
|
||
| interface ApplyStatusProps { | ||
| formId: number; | ||
| } | ||
|
|
||
| export default function ApplyStatus({ formId }: ApplyStatusProps) { | ||
| return ( | ||
| <> | ||
| <div className="mt-20 space-y-6 border-t-2 pt-20 text-2xl"> | ||
| <p className="text-3xl font-bold">지원 현황</p> | ||
| <ApplyStatusCard formId={formId} /> | ||
| </div> | ||
| </> | ||
| ); | ||
| } |
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
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
2 changes: 1 addition & 1 deletion
2
...pages)/albaform-support-detail/layout.tsx → src/app/(pages)/myapply/layout.tsx
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
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,72 @@ | ||
| "use client"; | ||
| import React, { useState, ButtonHTMLAttributes, ReactNode } from "react"; | ||
| import { cn } from "@/lib/tailwindUtil"; | ||
| import { IoShareSocialSharp } from "react-icons/io5"; // 기본 공유 아이콘 | ||
| import { FaLink } from "react-icons/fa"; // 링크 및 카카오톡 아이콘 | ||
| import { FcShare } from "react-icons/fc"; | ||
| import shareToKakao from "@/utils/shareToKakao"; | ||
| import toast from "react-hot-toast"; | ||
| import Image from "next/image"; | ||
|
|
||
| interface ExpandedFloatingBtnProps extends ButtonHTMLAttributes<HTMLButtonElement> { | ||
| variant?: "orange" | "white"; | ||
| icon?: ReactNode; | ||
| } | ||
|
|
||
| const ExpandedFloatingBtn = ({ variant = "orange", className, ...props }: ExpandedFloatingBtnProps) => { | ||
| const [isExpanded, setIsExpanded] = useState(false); | ||
|
|
||
| const baseStyles = "inline-flex items-center justify-center transition-colors font-medium rounded-full"; | ||
| const expandedStyles = "h-32 px-1 bg-primary-orange-200 hover:bg-primary-orange-100"; | ||
| const collapsedStyles = "h-12 w-full"; | ||
|
|
||
| const variants = { | ||
| orange: "bg-primary-orange-300 text-white hover:bg-primary-orange-200", | ||
| white: "bg-white text-primary-orange-300 border border-primary-orange-300 hover:bg-primary-grayscale-100", | ||
| }; | ||
|
|
||
| const handleToggle = () => { | ||
| setIsExpanded((prev) => !prev); | ||
| }; | ||
|
|
||
| const handleLinkCopy = () => { | ||
| navigator.clipboard.writeText(window.location.href); | ||
| toast.success("링크가 복사되었습니다."); | ||
| }; | ||
|
|
||
| return ( | ||
| <button | ||
| className={cn(baseStyles, variants[variant], isExpanded ? expandedStyles : collapsedStyles, className)} | ||
| onClick={handleToggle} | ||
| {...props} | ||
| > | ||
| {isExpanded ? ( | ||
| // 확장된 상태일 때 카카오톡 및 링크 아이콘 표시 | ||
| <div className="flex flex-col"> | ||
| <button onClick={() => shareToKakao()} className="flex items-center"> | ||
| <div> | ||
| <Image | ||
| src="/icons/social/social_kakao.png" | ||
| layout="fixed" | ||
| width={50} | ||
| height={50} | ||
| objectFit="cover" | ||
| alt="카카오톡" | ||
| /> | ||
| </div> | ||
| </button> | ||
| <button onClick={handleLinkCopy} className="mt-2 flex items-center"> | ||
| <div className="rounded-full bg-blue-50 p-3 text-2xl"> | ||
| <FcShare /> | ||
| </div> | ||
| </button> | ||
| </div> | ||
| ) : ( | ||
| // 기본 상태일 때 공유 아이콘 표시 | ||
| <IoShareSocialSharp className="text-2xl" /> | ||
| )} | ||
| </button> | ||
| ); | ||
| }; | ||
|
|
||
| export default ExpandedFloatingBtn; | ||
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.
bg-primary-grayscale-100 -> bg-grayscale-100 로 해주세용
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.
여기선 gray 필요없어서 제거할게용 !