-
Notifications
You must be signed in to change notification settings - Fork 0
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 #49 from primus-teoSprint/develop
3차 main 머지
- Loading branch information
Showing
17 changed files
with
286 additions
and
54 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
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 |
---|---|---|
|
@@ -44,6 +44,8 @@ | |
color: #424242; | ||
font-size: 11px; | ||
font-weight: 300; | ||
line-height: normal; | ||
|
||
} | ||
|
||
.title { | ||
|
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,39 @@ | ||
'use client' | ||
|
||
import S from '../../list.module.css' | ||
import axios, { AxiosResponse } from 'axios' | ||
import { useQuery } from '@tanstack/react-query' | ||
import { Root, Tool } from '@/app/_constants/toolcard' | ||
import ToolCard from '@/app/_components/card/toolCard' | ||
|
||
function ListCompo() { | ||
const { data } = useQuery<AxiosResponse<Root>>({ | ||
queryKey: ['getToolList'], | ||
queryFn: () => axios.get('http://222.121.148.192/api/toolDetails'), | ||
}) | ||
|
||
const resData = data?.data.data.tool | ||
|
||
return ( | ||
<div> | ||
<div className={S.wrapper}> | ||
{resData?.map((data: Tool, index) => { | ||
return ( | ||
<ToolCard | ||
title={data?.title || ''} | ||
subTitle={data?.subTitle || ''} | ||
description={data?.description || ''} | ||
toolImg={data?.toolImg || ''} | ||
toolId={index} | ||
company={data?.company} | ||
key={index} | ||
/> | ||
) | ||
})} | ||
<span>데이터를 모두 불러왔습니다.</span> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default ListCompo |
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 |
---|---|---|
|
@@ -48,3 +48,6 @@ | |
width: 100%; | ||
padding-bottom: 300px; | ||
} | ||
.slide { | ||
width: 390px; | ||
} |
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
Oops, something went wrong.