Skip to content

Commit

Permalink
feat: VA 추가 (TEAM-CLIP#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoSelf1 committed Aug 24, 2024
1 parent 24c4e34 commit 3d6a449
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@vercel/analytics": "^1.3.1",
"axios": "^1.7.4",
"next": "14.1.2",
"react": "^18",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from 'next';
import './globals.css';
import localFont from 'next/font/local';
import ClipContainer from '@/components/ClipContainer';
import { Analytics } from '@vercel/analytics/react';

const pretendard = localFont({
src: '../fonts/PretendardVariable.woff2',
Expand All @@ -26,6 +27,7 @@ export default function RootLayout({
<ClipContainer>
<main className="flex-grow overflow-y-auto">{children}</main>
</ClipContainer>
<Analytics />
</body>
</html>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ClipContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const ClipContainer = ({ children }: any) => {
</div>

{path !== '/' && path !== '/request-notification' && (
<div className="bg-white px-4 h-[3.5rem] flex items-center border-b border-gray-50">
<div className="bg-white px-4 h-[3.5rem] flex items-center">
<div className="cursor-pointer" onClick={() => router.back()}>
<div className="flex w-[1.5rem] h-[1.5rem]">
<Image
Expand Down
3 changes: 2 additions & 1 deletion src/data/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,7 @@ export const photoData: SnapImage[] = [
url: 'https://chik.s3.ap-northeast-2.amazonaws.com/photo/usee_pic9%2BB6.png',
},
];

// mood를 기준으로 데이터 정렬
const sortedData = photoData.sort((a, b) => a.mood - b.mood);

Expand All @@ -1385,4 +1386,4 @@ export const arrangedPhotos: SnapImage[][] = [[], [], []];

sortedData.forEach((item: SnapImage, index) => {
arrangedPhotos[index % 3].push(item);
});
});

0 comments on commit 3d6a449

Please sign in to comment.