-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: 탐색 페이지 퍼블리싱, 데이터 바인딩 (임시) (#25)
- Loading branch information
1 parent
62b0c01
commit 62cc789
Showing
36 changed files
with
1,228 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
NEXT_PUBLIC_BASE_URL = "https://dev.api.listywave.com" | ||
NEXT_PUBLIC_KAKAO_API_KEY=8a62d21afa7f96e9f0d58b577e1e4747 | ||
NEXT_PUBLIC_BASE_URL=localhost:3000 |
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import axiosInstance from '@/lib/axios/axiosInstance'; | ||
import { ListCreateType, ListIdType } from '@/lib/types/listType'; | ||
|
||
export const createList = async (listId: string, data: string) => { | ||
const response = await axiosInstance.post<ListIdType>(`/lists/${listId}/comment`, data); | ||
|
||
return response.data; | ||
}; |
Empty file.
Empty file.
Empty file.
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,9 @@ | ||
// 리스트 조회 api | ||
import axiosInstance from '@/lib/axios/axiosInstance'; | ||
//리스트 추천 상위 10개 | ||
export async function getRecommendedLists() { | ||
const response = await axiosInstance.get(`/lists`); | ||
return response.data; | ||
} | ||
|
||
export default getRecommendedLists; |
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 @@ | ||
// 리스트 조회 api | ||
import axiosInstance from '@/lib/axios/axiosInstance'; | ||
//리스트 추천 상위 10개 | ||
export async function getRecommendedUsers() { | ||
const response = await axiosInstance.get(`/users/recommend`); | ||
return response.data; | ||
} | ||
|
||
export default getRecommendedUsers; |
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 @@ | ||
// 리스트 조회 api | ||
import axiosInstance from '@/lib/axios/axiosInstance'; | ||
//리스트 추천 상위 10개 | ||
export async function getTrendingLists() { | ||
const response = await axiosInstance.get(`/lists/explore`); | ||
return response.data; | ||
} | ||
|
||
export default getTrendingLists; |
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,8 @@ | ||
// 리스트 조회 api | ||
import axiosInstance from '@/lib/axios/axiosInstance'; | ||
|
||
//리스트 상세 페이지 리스트 조회 api | ||
export async function getListDetail(listId: string | undefined) { | ||
const response = await axiosInstance.get(`/lists/${listId}`); | ||
return response.data; | ||
} |
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,5 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const wrapper = style({ | ||
position: 'relative', | ||
}); |
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 |
---|---|---|
@@ -1,3 +1,28 @@ | ||
export default function Home() { | ||
return <>홈페이지</>; | ||
import ListRecommendation from '@/components/exploreComponents/ListsRecommendation'; | ||
import TrendingList from '@/components/exploreComponents/TrendingLists'; | ||
import UsersRecommendation from '@/components/exploreComponents/UsersRecommendation'; | ||
import Header from '@/components/exploreComponents/Header'; | ||
import FloatingContainer from '@/components/floatingButton/FloatingContainer'; | ||
import PlusOptionFloatingButton from '@/components/floatingButton/PlusOptionFloatingButton'; | ||
import ArrowUpFloatingButton from '@/components/floatingButton/ArrowUpFloatingButton'; | ||
import * as styles from './layout.css'; | ||
|
||
function LandingPage() { | ||
return ( | ||
<> | ||
<div className={styles.wrapper}> | ||
<Header /> | ||
<div>검색 및 카테고리 컴포넌트</div> | ||
<TrendingList /> | ||
<UsersRecommendation /> | ||
<ListRecommendation /> | ||
<FloatingContainer> | ||
<PlusOptionFloatingButton /> | ||
<ArrowUpFloatingButton /> | ||
</FloatingContainer> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default LandingPage; |
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,38 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const wrapper = style({ | ||
padding: '0 16px', | ||
|
||
display: 'flex', | ||
flexDirection: 'column', | ||
}); | ||
|
||
export const logoWrapper = style({ | ||
padding: '26px 0 12px', | ||
|
||
display: 'flex', | ||
justifyContent: 'center', | ||
}); | ||
|
||
export const userInfoOuterWrapper = style({ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
}); | ||
|
||
export const userInfoWrapper = style({ | ||
marginBottom: '12px', | ||
|
||
display: 'flex', | ||
alignItems: 'center', | ||
gap: '12px', | ||
}); | ||
|
||
export const userProfile = style({ | ||
borderRadius: '16px', | ||
}); | ||
|
||
export const userName = style({ | ||
color: '#202020', | ||
fontSize: '1.5rem', | ||
fontWeight: 600, | ||
}); |
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 Image from 'next/image'; | ||
import { useRouter } from 'next/navigation'; | ||
import * as styles from './Header.css'; | ||
import Logo from '/public/icons/logo.svg'; | ||
import BellIcon from '/public/icons/bell.svg'; | ||
|
||
function Header() { | ||
const router = useRouter(); | ||
|
||
const handleBellIconClick = () => { | ||
router.push('/notification'); | ||
}; | ||
|
||
return ( | ||
<nav className={styles.wrapper}> | ||
<div className={styles.logoWrapper}> | ||
<Logo alt="로고 이미지" /> | ||
</div> | ||
<div className={styles.userInfoOuterWrapper}> | ||
<div className={styles.userInfoWrapper}> | ||
<Image | ||
src="https://p.turbosquid.com/ts-thumb/dF/nW94b5/5gsXLi9h/17/jpg/1542722468/600x600/fit_q87/b36d8ed4b788d00f54eeb1be4094ddab0deb0474/17.jpg" | ||
alt="사용자 프로필 이미지" | ||
width={32} | ||
height={32} | ||
className={styles.userProfile} | ||
/> | ||
<h5 className={styles.userName}>{`진저브레드`}</h5> | ||
</div> | ||
<button onClick={handleBellIconClick}> | ||
<BellIcon alt="알림 페이지 이동 버튼" /> | ||
</button> | ||
</div> | ||
</nav> | ||
); | ||
} | ||
|
||
export default Header; |
Oops, something went wrong.