Skip to content

Commit

Permalink
feat: progressive web app 구현 (#654)
Browse files Browse the repository at this point in the history
* feat: 최소단위 manifest.json 작성 및 적용

* design: PWA 적용으로 인한 바텀네브바 높이 수정
  • Loading branch information
shackstack authored Nov 20, 2023
1 parent 8e6c57c commit 4e23cfa
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
Binary file added frontend/public/favicon.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ko">
<head>
<!-- Google tag (gtag.js) -->
Expand Down Expand Up @@ -43,6 +43,8 @@
crossorigin="anonymous"
></script>

<link crossorigin="use-credentials" href="manifest.json" rel="manifest" type="application/manifest+json" />

<title>셀럽잇 - CELUVEAT</title>
</head>
<body>
Expand Down
22 changes: 22 additions & 0 deletions frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Celuveat",
"short_name": "Celuveat",
"description": "셀럽들이 다녀간 맛집들을 확인해보세요.",
"background_color": "#fff",
"theme_color": "#fcfcfc",
"dir": "ltr",
"display": "standalone",
"orientation": "portrait",
"scope": "/",
"start_url": "/",
"categories": [
{
"id": "map",
"name": "맛집 지도"
}
],
"icons": [{ "src": "/favicon.ico", "sizes": "any", "type": "image/x-icon" }],
"id": "celuveat",
"lang": "ko",
"display_override": ["standalone", "window-controls-overlay"]
}
1 change: 1 addition & 0 deletions frontend/src/components/@common/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const StyledToastWrapper = styled.div<StyledToastProps>`
display: flex;
justify-content: flex-start;
align-items: center;
gap: 0.8rem;
position: fixed;
bottom: 0;
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/BottomNavBar/BottomNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ const StyledBottomNavBar = styled.nav<{ isHide: boolean }>`
z-index: 20;
width: 100vw;
height: 48px;
height: 52px;
min-height: 48px;
padding-bottom: 1.2rem;
background-color: var(--white);
border-top: 1px solid var(--gray-1);
Expand Down

0 comments on commit 4e23cfa

Please sign in to comment.