diff --git a/index.html b/index.html index a958bb5..476ab7f 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,9 @@ - + - fe + Cotatus
diff --git a/public/favicons/favicon.ico b/public/favicons/favicon.ico new file mode 100644 index 0000000..5955c16 Binary files /dev/null and b/public/favicons/favicon.ico differ diff --git a/src/mocks/chartData.ts b/src/mocks/chartData.ts new file mode 100644 index 0000000..0b8695b --- /dev/null +++ b/src/mocks/chartData.ts @@ -0,0 +1,15 @@ +import type { ChartDataPoint } from '../apis/chart/chartApi'; + +const chartData: ChartDataPoint[] = [ + { time: '10:00', Bitcoin: 0.5, Ethereum: 1.0, Solana: 0.8 }, + { time: '11:00', Bitcoin: 0.7, Ethereum: 0.1, Solana: 0.4 }, + { time: '12:00', Bitcoin: 0.2, Ethereum: -0.3, Solana: 0.6 }, + { time: '13:00', Bitcoin: 0.5, Ethereum: 0, Solana: 0.2 }, + { time: '14:00', Bitcoin: -0.1, Ethereum: -0.7, Solana: 0.9 }, + { time: '15:00', Bitcoin: 0.9, Ethereum: -0.8, Solana: 1.0 }, + { time: '16:00', Bitcoin: -0.7, Ethereum: 0.6, Solana: 0.3 }, + { time: '17:00', Bitcoin: 0.9, Ethereum: 0.4, Solana: -0.3 }, + { time: '18:00', Bitcoin: -0.7, Ethereum: 1.0, Solana: 0.9 }, +]; + +export default chartData; diff --git a/src/pages/home/components/Chart/ChartItem.tsx b/src/pages/home/components/Chart/ChartItem.tsx index 0361d2b..f78400c 100644 --- a/src/pages/home/components/Chart/ChartItem.tsx +++ b/src/pages/home/components/Chart/ChartItem.tsx @@ -11,6 +11,7 @@ import ChartSInfo from './ChartSInfo'; import { useFilterStore } from '../../../../stores/filterStore'; import ChartGradients from './ChartGradients'; import useGetChartData from '../../../../hooks/useQuery/useGetChartData'; +import chartData from '../../../../mocks/chartData'; type StockType = 'ALL' | 'Bitcoin' | 'Ethereum' | 'Solana'; @@ -22,13 +23,15 @@ function ChartItem() { type: filter, }); + const chartDatas = data && data.length > 0 ? data : chartData; + return (
diff --git a/src/pages/home/components/Navbar/Navbar.tsx b/src/pages/home/components/Navbar/Navbar.tsx index c4c7512..bc944d7 100644 --- a/src/pages/home/components/Navbar/Navbar.tsx +++ b/src/pages/home/components/Navbar/Navbar.tsx @@ -1,20 +1,19 @@ -import settingBtn from '../../../../assets/navbar/Gear.png'; -import useNavigation from '../../../../hooks/useNavigation'; +import logo from '../../../../assets/banner/banner.png'; const Navbar = () => { - const { goTo } = useNavigation(); - - const handleClick = () => { - goTo('/setting'); + const handleRefresh = () => { + window.location.reload(); }; + return ( -
- setting-button +
+
+ logo-img + Cotatus +
); }; diff --git a/vite.config.ts b/vite.config.ts index f478a83..432673b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,10 +9,10 @@ export default defineConfig({ react(), tailwindcss(), VitePWA({ - registerType: 'autoUpdate', // 새 버전 생기면 자동 업데이트 + registerType: 'autoUpdate', injectRegister: 'script-defer', devOptions: { - enabled: false, // 개발 중 SW 활성화 + enabled: false, }, includeAssets: [ 'favicons/favicon.ico', @@ -23,7 +23,7 @@ export default defineConfig({ manifest: { name: 'Cotatus 감성 지능 기반 웹 서비스', short_name: 'Cotatus', - description: 'Scoop AI Hackathon', + description: 'Scoop AI Hackathon team Cotatus', theme_color: '#ffffff', background_color: '#ffffff', display: 'standalone',