Skip to content

Commit

Permalink
feat(serach ad): 필요할(수도 있는...) 데이터 추가
Browse files Browse the repository at this point in the history
- 제목, 작가, 설명
  • Loading branch information
joojjang committed Nov 17, 2024
1 parent 9bf7b81 commit 5aeb9b1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/common/SearchModal/Ad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const SearchAd = () => {
<AdWrapper>
{AD_LIST.map((ad, index) => (
<AdImage key={index}>
<img src={ad} alt="Ad image" />
<img src={ad.imageUrl} alt="Ad image" />
</AdImage>
))}
</AdWrapper>
Expand Down
25 changes: 22 additions & 3 deletions src/constants/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,26 @@ export const POPULAR_SEARCH_LIST: string[] = [

//

export const AD_LIST: string[] = [
'https://images.unsplash.com/photo-1579273166152-d725a4e2b755?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTl8fCVFQSVCNyVCOCVFQiVBNiVCQ3xlbnwwfHwwfHx8MA%3D%3D',
'https://images.unsplash.com/photo-1577083862054-7324cd025fa6?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fCVFQyU4NCU5QyVFQyU5NiU5MSVFRCU5OSU5NHxlbnwwfHwwfHx8MA%3D%3D',
type Ad = {
title: string;
imageUrl: string;
artist: string;
des: string;
};

export const AD_LIST: Ad[] = [
{
title: '',
imageUrl:
'https://images.unsplash.com/photo-1579273166152-d725a4e2b755?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTl8fCVFQSVCNyVCOCVFQiVBNiVCQ3xlbnwwfHwwfHx8MA%3D%3D',
artist: '',
des: '',
},
{
title: '',
imageUrl:
'https://images.unsplash.com/photo-1577083862054-7324cd025fa6?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fCVFQyU4NCU5QyVFQyU5NiU5MSVFRCU5OSU5NHxlbnwwfHwwfHx8MA%3D%3D',
artist: '',
des: '',
},
];

0 comments on commit 5aeb9b1

Please sign in to comment.