-
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 branch 'develop' of https://github.com/primus-teoSprint/fe into…
… feat/#6
- Loading branch information
Showing
31 changed files
with
863 additions
and
36 deletions.
There are no files selected for viewing
Empty file.
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,20 @@ | ||
'use client' | ||
import { useRouter } from 'next/navigation' | ||
import { GoArrowLeft } from 'react-icons/go' | ||
import S from './nav.module.css' | ||
|
||
function Nav({ title }: { title: string }) { | ||
const router = useRouter() | ||
|
||
return ( | ||
<nav className={S.nav}> | ||
<button onClick={() => router.back()}> | ||
<GoArrowLeft /> | ||
</button> | ||
<span className={S.title}>{title}</span> | ||
| ||
</nav> | ||
) | ||
} | ||
|
||
export default Nav |
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,12 @@ | ||
.nav { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 18px 25px; | ||
} | ||
|
||
.title { | ||
font-weight: 700; | ||
font-size: 1.5rem; | ||
} |
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,9 @@ | ||
.wrapper{ | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 20px; | ||
margin-top: 20px; | ||
padding-bottom: 50px; | ||
} |
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,5 +1,22 @@ | ||
import Nav from './_components/nav' | ||
import S from './list.module.css' | ||
|
||
//TODO: 주석처리 사항들에 데이터 가져오기 | ||
function List() { | ||
return | ||
return ( | ||
<> | ||
<Nav title="검증 툴 리스트" /> | ||
<div className={S.wrapper}> | ||
{/* <ToolCard | ||
title="" | ||
subTitle="" | ||
description="" | ||
toolImg="" | ||
/> */} | ||
<span>데이터를 모두 불러왔습니다.</span> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default List |
Empty file.
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,5 +1,18 @@ | ||
import SearchBar from '../../_components/search/index' | ||
import CommonS from '../../page.module.css' | ||
import Nav from '../list/_components/nav' | ||
|
||
//TODO: 검색 결과 카드(toolCard) 가져오기 | ||
function Search() { | ||
return | ||
return ( | ||
<> | ||
<Nav title="검색 결과" /> | ||
<div className={CommonS.wrapper}> | ||
<SearchBar /> | ||
<span>데이터를 모두 불러왔습니다.</span> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default Search |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
'use client' | ||
|
||
import Nav from '@/app/_common/nav' | ||
import Title from '@/app/_common/text/title' | ||
import { useState } from 'react' | ||
import S from './toolDetail.module.css' | ||
|
||
// | ||
//TODO: 주석 처리 실제 데이터로 변경하기 | ||
function ToolDetail() { | ||
const [clickBtn, setClickBtn] = useState(false) | ||
|
||
return ( | ||
<div className={S.wrapper}> | ||
<Nav /> | ||
<div className={S.introWrapper}> | ||
<div className={S.imgWrapper}> | ||
{/* <Image | ||
src={toolImg} | ||
alt="아이디어 툴 이미지" | ||
width={80} | ||
height={80} | ||
/> */} | ||
</div> | ||
{/* <Title title={title} /> | ||
<p> {createdBy}</p> */} | ||
</div> | ||
|
||
<div className={S.contentWrapper}> | ||
<div className={S.btnWrapper}> | ||
<button | ||
className={`${S.btn} ${!clickBtn ? S.clickBtn : ''}`} | ||
onClick={() => setClickBtn((prevState) => !prevState)} | ||
> | ||
Description | ||
</button> | ||
<button | ||
className={`${S.btn} ${clickBtn ? S.clickBtn : ''}`} | ||
onClick={() => setClickBtn((prevState) => !prevState)} | ||
> | ||
Company | ||
</button> | ||
</div> | ||
|
||
{!clickBtn ? ( | ||
<> | ||
<div className={S.marginWrapper}> | ||
<Title title="개요" /> | ||
{/* <p>{content}</p> */} | ||
</div> | ||
<div className={S.marginWrapper}> | ||
<Title title="검증 방식" /> | ||
<ul> | ||
{/* {verificationMethod.map((method, index) => ( | ||
<li className={S.li}> | ||
<div className={S.circle}></div> {method} | ||
</li> | ||
))} */} | ||
</ul> | ||
</div> | ||
</> | ||
) : ( | ||
<div className={S.marginWrapper}> | ||
<Title title="실제 사례" /> | ||
|
||
<div className={S.columnWrapper}> | ||
{/* <Image | ||
src={toolImg} | ||
alt="아이디어 툴 이미지" | ||
width={60} | ||
height={60} | ||
placeholder="blur" | ||
blurDataURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFklEQVR42mN8//HLfwYiAOOoQvoqBABbWyZJf74GZgAAAABJRU5ErkJggg==" | ||
/> */} | ||
</div> | ||
</div> | ||
)} | ||
</div> | ||
|
||
{/* <Link href={`/verification/${toolId}`}> | ||
<div>검증하기</div> | ||
</Link> */} | ||
</div> | ||
) | ||
} | ||
|
||
export default ToolDetail |
Oops, something went wrong.