Skip to content

Commit

Permalink
Merge pull request #126 from delicious-algorithme/123-refactor-이미지-we…
Browse files Browse the repository at this point in the history
…bp-포맷으로-변경

123 refactor 이미지 webp 포맷으로 변경
  • Loading branch information
Songhyejeong authored Dec 8, 2024
2 parents c428c02 + 1d9b02e commit d22517d
Show file tree
Hide file tree
Showing 28 changed files with 242 additions and 177 deletions.
15 changes: 15 additions & 0 deletions public/Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 4 additions & 13 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
<head>
<base href="/" />
<meta charset="utf-8" />
<link
rel="icon"
href="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F486bd819-ad54-4f34-bd54-23ef03ca65c5%2FGroup_1000002041_(5).svg?table=block&id=965a81f4-7d80-4af9-9379-4c6ca3fe7174&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
/>
<meta name="keywords" content="맛알고리즘, 맛집, 식당" />
<link rel="icon" href="%PUBLIC_URL%/Logo.svg" />
<meta name="keywords" content="맛알고리즘, 맛집 사이트, 서울 맛집 추천" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="맛있는 알고리즘으로 찾는 당신의 인생 맛집!" />
<!--naver 사이트 소유 확인-->
Expand All @@ -27,15 +24,9 @@
<meta property="og:url" content="https://matal.store" />
<meta name="og:title" content="맛있는 알고리즘" />
<meta name="og:description" content="맛있는 알고리즘으로 찾는 당신의 인생 맛집!" />
<meta
property="og:image"
content="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F486bd819-ad54-4f34-bd54-23ef03ca65c5%2FGroup_1000002041_(5).svg?table=block&id=965a81f4-7d80-4af9-9379-4c6ca3fe7174&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
/>
<meta property="og:image" content="href=%PUBLIC_URL%/Logo.svg" />
<meta property="og:type" content="website" />
<link
rel="apple-touch-icon"
href="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F486bd819-ad54-4f34-bd54-23ef03ca65c5%2FGroup_1000002041_(5).svg?table=block&id=965a81f4-7d80-4af9-9379-4c6ca3fe7174&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/Logo.svg" />
<title>맛알고리즘</title>
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"name": "맛있는 알고리즘으로 찾는 당신의 인생 맛집!",
"icons": [
{
"src": "https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F486bd819-ad54-4f34-bd54-23ef03ca65c5%2FGroup_1000002041_(5).svg?table=block&id=965a81f4-7d80-4af9-9379-4c6ca3fe7174&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2",
"src": "./Logo.svg",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F486bd819-ad54-4f34-bd54-23ef03ca65c5%2FGroup_1000002041_(5).svg?table=block&id=965a81f4-7d80-4af9-9379-4c6ca3fe7174&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2",
"src": "./Logo.svg",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F486bd819-ad54-4f34-bd54-23ef03ca65c5%2FGroup_1000002041_(5).svg?table=block&id=965a81f4-7d80-4af9-9379-4c6ca3fe7174&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2",
"src": "./Logo.svg",
"type": "image/png",
"sizes": "512x512"
}
Expand Down
3 changes: 3 additions & 0 deletions public/marker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/assets/Icon/Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Icon/clock.webp
Binary file not shown.
Binary file added src/assets/Icon/park.webp
Binary file not shown.
3 changes: 3 additions & 0 deletions src/assets/Icon/tag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/Icon/trophy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/banner.webp
Binary file not shown.
18 changes: 6 additions & 12 deletions src/components/common/bookmark/BookmarkContainer.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { deleteBookmarkStore, postBookmarkStore } from '../../../apis/api/bookmarks';
import { useNavigate } from 'react-router-dom';
import styled from 'styled-components';
import BookmarkRoundedIcon from '@mui/icons-material/BookmarkRounded';
import BookmarkBorderRoundedIcon from '@mui/icons-material/BookmarkBorderRounded';
import { getAllBookmarksIds } from '../../../apis/api/bookmarks';
import { useSaveBookmarkId } from '../../../store';
import { useState } from 'react';
import { Orange } from '../../../color';

const BookmarkContainer = ({ storeId }) => {
const { savedId, setSaveBookmarkId } = useSaveBookmarkId();
Expand Down Expand Up @@ -64,18 +67,8 @@ const BookmarkContainer = ({ storeId }) => {
return (
!isLoading && (
<BookmarkBox onClick={handleClickBookmarks}>
{!isSaved && (
<img
src="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F36a09915-8f56-4547-843b-ef56ecef4922%2FVector_(20).svg?table=block&id=2c906fd9-ead9-41c7-bcf5-1a5f05e052de&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
alt="bookmark"
/>
)}
{isSaved && (
<img
src="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F5a28ad27-0c60-43da-b35c-e4515852dac2%2FVector_(21).svg?table=block&id=44a15545-ec6b-4c1d-9573-9cbe209f0c40&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
alt="saved-bookmark"
/>
)}
{!isSaved && <BookmarkBorderRoundedIcon alt="bookmark" />}
{isSaved && <BookmarkRoundedIcon alt="saved-bookmark" />}
</BookmarkBox>
)
);
Expand All @@ -89,6 +82,7 @@ const BookmarkBox = styled.div`
padding: 10px;
& > svg {
color: ${Orange};
cursor: pointer;
}
`;
11 changes: 5 additions & 6 deletions src/components/common/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Button from '../button/Button';
import { logout } from '../../../apis/api/login';
import Swal from 'sweetalert2';
import { LightGrey } from '../../../color';
import { ReactComponent as Logo } from '../../../assets/Icon/Logo.svg';

const Header = () => {
const { isLoggedIn, setLogout } = useLogin();
Expand Down Expand Up @@ -40,11 +41,7 @@ const Header = () => {

return (
<HeaderLayout>
<img
src="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F486bd819-ad54-4f34-bd54-23ef03ca65c5%2FGroup_1000002041_(5).svg?table=block&id=965a81f4-7d80-4af9-9379-4c6ca3fe7174&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
onClick={handleClick.logo}
alt="logo"
/>
<Logo onClick={handleClick.logo} alt="logo" />
<ButtonContainer>
{buttons.map((button, index) => (
<Button
Expand All @@ -71,7 +68,7 @@ const HeaderLayout = styled.header`
background-color: rgba(255, 255, 255, 0.8);
padding-left: 50px;
& > img {
& > svg {
margin-left: 20px;
width: 120px;
height: 80px;
Expand All @@ -80,6 +77,7 @@ const HeaderLayout = styled.header`
fill: none;
}
}
align-items: center;
width: 100%;
transition: all 0ms ease;
Expand All @@ -88,6 +86,7 @@ const HeaderLayout = styled.header`
width: 100px;
height: 75px;
}
padding: 0px;
padding-right: 10px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const MyMap = () => {
title: name,
clickable: true,
icon: {
url: 'https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F207bae82-72cc-4a5d-86e0-0ec55d24d9bc%2Flocation_(3).svg?table=block&id=8e914cbf-ecb5-48da-8467-a201dc304f3b&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2',
size: new naver.maps.Size(60, 60),
url: './marker.svg',
size: new naver.maps.Size(40, 50),
origin: new naver.maps.Point(0, 0),
anchor: new naver.maps.Point(11, 35),
animation: naver.maps.Animation.DROP,
Expand Down
20 changes: 11 additions & 9 deletions src/components/common/searchBar/SearchBar.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import styled from 'styled-components';
import { Orange } from '../../../color';
import { DarkGrey, LightGrey } from '../../../color';
import SearchRoundedIcon from '@mui/icons-material/SearchRounded';

const SearchBar = ({ onChangeHandler, onKeyDownHandler, searchInput }) => {
return (
<StyledSearchBar>
<Icon>
<img
src="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2Fa38d3a64-cd82-45b2-83b7-c3710caa064a%2FFeather_Icon.svg?table=block&id=042552b6-28a0-4f1c-a753-45c60a3aaafc&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
alt="search-icon"
/>
<SearchRoundedIcon alt="search-icon" />
</Icon>
<input
type="text"
Expand All @@ -28,23 +26,27 @@ const StyledSearchBar = styled.div`
display: flex;
position: relative;
text-align: left;
& > input {
width: 100%;
height: 45px;
border-radius: 30px;
border: 1px solid ${Orange};
border-radius: 10px;
z-index: 1;
padding-left: 70px;
font-size: 16px;
color: ${Orange};
color: ${DarkGrey};
background: ${LightGrey};
}
input::placeholder {
color: ${Orange};
color: ${DarkGrey};
}
`;

const Icon = styled.div`
position: absolute;
z-index: 2;
padding: 10px 30px;
color: ${DarkGrey};
`;
6 changes: 2 additions & 4 deletions src/components/main/CategoryAndMap.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import styled from 'styled-components';
import { Category, MyMap } from '../common';
import tagIcon from '../../assets/Icon/tag.svg';
import { Grey } from '../../color';

const CategoryAndMap = () => {
return (
<CategoryAndMapLayout>
<label>
<img
src="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F3e54984f-c8a7-47cf-a649-d34c9c52c200%2Fflowbite_tag-solid.svg?table=block&id=adec29ff-2727-42b8-837e-0329b87daafc&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
alt="feater-icon"
/>
<img src={tagIcon} alt="feater-icon" />
<h3>카테고리로 검색하기</h3>
</label>
<CategoryAndMapBox>
Expand Down
13 changes: 7 additions & 6 deletions src/components/main/SearchKeyword.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import styled from 'styled-components';
import { Orange } from '../../color';
import { DarkGreen } from '../../color';

const SearchKeyword = () => {
return (
<SearchKeywordBox>
<p>카테고리 별 검색</p>
<p>애견 동반 가능 맛집</p>
<p>웨이팅 맛집</p>
<p>긍정 키워드</p>
<p># 카테고리 별 검색</p>
<p># 애견 동반 가능 맛집</p>
<p># 웨이팅 맛집</p>
<p># 긍정 키워드</p>
</SearchKeywordBox>
);
};
Expand All @@ -18,8 +18,9 @@ const SearchKeywordBox = styled.div`
display: flex;
flex-direction: row;
gap: 30px;
color: ${Orange};
color: ${DarkGreen};
font-size: 16px;
font-weight: 600;
@media screen and (max-width: 780px) {
display: none;
}
Expand Down
11 changes: 5 additions & 6 deletions src/components/main/TopRecommendations.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import styled, { keyframes, css } from 'styled-components';
import { TopStoreCard } from '../storeCard';
import { useEffect, useState } from 'react';
import { Grey, White } from '../../color';
import { Grey, Orange, White } from '../../color';
import trophyIcon from '../../assets/Icon/trophy.svg';
import { getTopStores } from '../../apis/api/getTopStores';

const TopRecommendations = () => {
Expand Down Expand Up @@ -61,18 +62,15 @@ const TopRecommendations = () => {
return (
<TopRecommendationsLayout>
<label>
<img
src="https://wnstn6945.notion.site/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F499f229c-bff2-4c82-ae94-81c36fa59a9c%2F76fa7cf8-0453-43c1-9c95-c4839a8cb344%2Ftwemoji_trophy_(1).svg?table=block&id=07f9a035-d469-451c-8351-3b2d5aba3b73&spaceId=499f229c-bff2-4c82-ae94-81c36fa59a9c&userId=&cache=v2"
alt="trophy"
/>
<img src={trophyIcon} alt="trophy" />
<h3>Top10 #푸짐한 양/ 친절한 서비스/ 신선한 재료</h3>
</label>
<p>AI 긍정키워드로 분석한 TOP 10</p>
{!isLoading && topStores.length > 0 && (
<AnimatedContainer isAnimating={isAnimating} animationDirection={animationDirection}>
{visibleStores.map((store, idx) => (
<div key={idx}>
<p style={{ fontSize: '24px', fontWeight: 'bold' }}>Top {next + idx - 2}</p>
<p style={{ fontSize: '24px', fontWeight: 'bold' }}> {next + idx - 2}</p>
<TopStoreCard
image={store.imageUrls}
address={store.address}
Expand Down Expand Up @@ -141,6 +139,7 @@ const AnimatedContainer = styled.div`
& > div > p {
margin-bottom: 20px;
color: ${Orange};
}
@media screen and (max-width: 768px) {
width: 100%;
Expand Down
3 changes: 0 additions & 3 deletions src/components/storeDetail/StoreDtailNav.jsx

This file was deleted.

43 changes: 0 additions & 43 deletions src/components/storeDetail/StoreInfoCard.jsx

This file was deleted.

30 changes: 30 additions & 0 deletions src/components/storeDetail/StoreInfoTag.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import styled from 'styled-components';
import { LightGrey, White } from '../../color';

const StoreInfoTag = ({ text }) => {
return (
<StoreInfoTagBox>
<p>{text}</p>
</StoreInfoTagBox>
);
};

export default StoreInfoTag;

const StoreInfoTagBox = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: fit-content;
padding: 15px;
height: 30px;
border-radius: 10px;
color: #333333;
border: 1px solid ${White};
background: ${LightGrey};
& > p {
font-weight: 600;
font-size: 14px;
}
`;
Loading

0 comments on commit d22517d

Please sign in to comment.