-
Notifications
You must be signed in to change notification settings - Fork 1
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 #99 from Linkup-3mw/dev
Deploy
- Loading branch information
Showing
180 changed files
with
23,462 additions
and
2,739 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
921 changes: 921 additions & 0 deletions
921
public/svg/reservation/imageView/mobile/defaultMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
350 changes: 350 additions & 0 deletions
350
public/svg/reservation/imageView/mobile/enterpriseMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
482 changes: 482 additions & 0 deletions
482
public/svg/reservation/imageView/mobile/focusDeskMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
252 changes: 252 additions & 0 deletions
252
public/svg/reservation/imageView/mobile/mettingRoom4Mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
180 changes: 180 additions & 0 deletions
180
public/svg/reservation/imageView/mobile/mettingRoom8Mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
609 changes: 609 additions & 0 deletions
609
public/svg/reservation/imageView/mobile/monitorDeskMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
429 changes: 429 additions & 0 deletions
429
public/svg/reservation/imageView/mobile/oneRoomMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
265 changes: 265 additions & 0 deletions
265
public/svg/reservation/imageView/mobile/openDeskMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
226 changes: 226 additions & 0 deletions
226
public/svg/reservation/imageView/mobile/reservedMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions
144
public/svg/reservation/imageView/mobile/seminarRoomMobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
219 changes: 219 additions & 0 deletions
219
public/svg/reservation/imageView/mobile/studioMobile.svg
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Diff not rendered.
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,77 @@ | ||
import axios, { AxiosResponse } from 'axios'; | ||
|
||
interface Club { | ||
id: number; | ||
member_id: number; | ||
member_name: string; | ||
profile_image: string | null; | ||
title: string; | ||
introduction: string; | ||
club_thumbnail: string | null; | ||
club_type: string; | ||
recruit_count: number; | ||
club_members: any[] | null; | ||
club_meetings: any[] | null; | ||
} | ||
|
||
interface SearchClubsResponse { | ||
status_code: number; | ||
message: string; | ||
status: string; | ||
data: { | ||
content: Club[]; | ||
pageable: { | ||
page_number: number; | ||
page_size: number; | ||
sort: { | ||
sorted: boolean; | ||
unsorted: boolean; | ||
empty: boolean; | ||
}; | ||
offset: number; | ||
unpaged: boolean; | ||
paged: boolean; | ||
}; | ||
total_elements: number; | ||
last: boolean; | ||
total_pages: number; | ||
first: boolean; | ||
number_of_elements: number; | ||
sort: { | ||
sorted: boolean; | ||
unsorted: boolean; | ||
empty: boolean; | ||
}; | ||
number: number; | ||
size: number; | ||
empty: boolean; | ||
}; | ||
success: boolean; | ||
} | ||
|
||
const BASE_URL = 'https://api.linkup3mw.com/api/v1'; | ||
|
||
interface SearchClubsQuery { | ||
location?: string; | ||
category?: string[]; | ||
'no-coworker'?: boolean; | ||
size?: number; | ||
page?: number; | ||
} | ||
|
||
export async function searchClubs( | ||
query: SearchClubsQuery, | ||
): Promise<SearchClubsResponse> { | ||
try { | ||
const response: AxiosResponse<SearchClubsResponse> = await axios.get( | ||
`${BASE_URL}/club/search`, | ||
{ | ||
params: query, | ||
}, | ||
); | ||
return response.data; | ||
} catch (error) { | ||
console.error('Error searching clubs:', error); | ||
throw error; | ||
} | ||
} |
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,17 +1,30 @@ | ||
import { PulseLoader } from 'react-spinners'; | ||
|
||
interface Props { | ||
text: string; | ||
disabled?: boolean; | ||
onClick: () => void; | ||
isLoading?: boolean; | ||
} | ||
export default function ButtonInInput({ text, disabled, onClick }: Props) { | ||
export default function ButtonInInput({ | ||
text, | ||
disabled, | ||
onClick, | ||
isLoading, | ||
}: Props) { | ||
return ( | ||
<button | ||
type="button" | ||
disabled={disabled} | ||
className="absolute right-[1.5rem] top-1/2 -translate-y-1/2 px-[0.72rem] min-w-[4.5rem] h-[2.125rem] bg-blue-400 disabled:bg-[#d0d0d8] rounded-[0.25rem] text-white disabled:text-main-black text-[0.875rem] font-bold max-md:right-[1rem] max-md:px-[0.5rem] max-md:min-w-[4.0625rem] max-md:h-[2.125rem] max-md:text-[0.875rem]" | ||
className="overflow-hidden absolute right-[1.5rem] top-1/2 -translate-y-1/2 px-[0.72rem] min-w-[4.5rem] h-[2.125rem] bg-blue-400 disabled:bg-[#d0d0d8] rounded-[0.25rem] text-white disabled:text-main-black text-[0.875rem] font-bold max-md:right-[1rem] max-md:px-[0.5rem] max-md:min-w-[4.0625rem] max-md:h-[2.125rem] max-md:text-[0.875rem]" | ||
onClick={onClick} | ||
> | ||
{text} | ||
{isLoading && ( | ||
<div className="flex items-center justify-center absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full bg-[rgba(104,148,242,0.8)]"> | ||
<PulseLoader size={6} color="white" /> | ||
</div> | ||
)} | ||
</button> | ||
); | ||
} |
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
Oops, something went wrong.