Skip to content

Commit

Permalink
[feat/#46] 로고 변경, 푸시 알림 아이콘 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhoony committed Sep 26, 2024
1 parent 3105165 commit cf4f0e7
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 8 deletions.
12 changes: 12 additions & 0 deletions src/assets/icons/home-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/assets/icons/side-nav-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/components/SideNav.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { clearAccessToken } from "@/api/axiosInstance"
import { useAuthStore } from "@/store/AuthStore"
import { useSnapShotStore } from "@/store/SnapshotStore"
import MainCraftIcon from "@assets/icons/posture-craft-side-nav-icon.svg?react"
import LogoImage from "@assets/icons/side-nav-logo.svg?react"
import AnalysisIcon from "@assets/icons/side-nav-analysis-icon.svg?react"
import CrewIcon from "@assets/icons/side-nav-crew-icon.svg?react"
import MonitoringIcon from "@assets/icons/side-nav-monitor-icon.svg?react"
Expand Down Expand Up @@ -82,8 +82,7 @@ export default function SideNav(): React.ReactElement {
<div>
{/* Logo and Title */}
<div className="flex items-center p-6">
<MainCraftIcon className="h-8 w-8" />
<span className="ml-2 text-xl font-bold">자세공작소</span>
<LogoImage />
</div>

{/* User Info */}
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/usePushNotification.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState, useEffect, useRef } from "react"
import PushIcon from "@assets/icons/favicon.svg"

interface UsePushNotificationResult {
hasPermission: boolean
Expand Down Expand Up @@ -53,6 +54,7 @@ const usePushNotification = (): UsePushNotificationResult => {
if (hasPermissionRef.current) {
new Notification("자세공작소", {
body: body,
icon: PushIcon as string,
})
}
}
Expand Down
13 changes: 8 additions & 5 deletions src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MainCraftIcon from "@assets/icons/posture-craft-side-nav-icon.svg?react"
import LogoImage from "@assets/icons/home-logo.svg?react"
import KakaoSignupIcon from "@assets/icons/home-kakao-signup-button-icon.svg?react"
import IntroImage from "@/assets/images/home-intro.png"
import MonitoringImage from "@/assets/images/home-monitoring.png"
Expand All @@ -18,8 +18,7 @@ const HomePage: React.FC = () => {
<div className="flex w-full flex-none border border-[#F0F2F9] px-[120px] py-5">
{/* logo */}
<div className="flex flex-grow items-center">
<MainCraftIcon className="h-8 w-8" />
<span className="ml-2 text-xl font-bold">자세공작소</span>
<LogoImage />
</div>
<button
className="rounded-full bg-blue-600 px-6 py-1 text-sm font-semibold leading-6 text-white"
Expand Down Expand Up @@ -63,10 +62,14 @@ const HomePage: React.FC = () => {
<div className="flex items-center text-[#D9D9D9]">
<div className="mr-20 text-2xl font-bold">ALIGN LAB</div>
<div className="flex gap-20 text-sm">
<a href="https://swjg3gi.notion.site/89966f39e24a442a8eee5b1f91c4fde7" target="_blank">
<a href="https://swjg3gi.notion.site/89966f39e24a442a8eee5b1f91c4fde7" target="_blank" rel="noreferrer">
<div>개인정보처리방침</div>
</a>
<a href="https://swjg3gi.notion.site/7c13aba015654e6f8e1acd300b440526?pvs=4" target="_blank">
<a
href="https://swjg3gi.notion.site/7c13aba015654e6f8e1acd300b440526?pvs=4"
target="_blank"
rel="noreferrer"
>
<div>이용약관</div>
</a>
</div>
Expand Down

0 comments on commit cf4f0e7

Please sign in to comment.