Skip to content

Commit

Permalink
feat: 0823 QA대응 (#31)
Browse files Browse the repository at this point in the history
* fix: 웹캠 클릭 후 다른 슬로프 선택시 닫히도록 수정

- 비디오 열림과 선택된 웹캠을 전역상태로 분리

* feat: 윌리휠리 webcam 데이터 추가

* fix: stroke path 색상 버그해결

* fix: 주석 제거

* feat: hls 라이브러리 교체

* feat: iOS 대응 추가

* feat: 비디오 clean up 추가
  • Loading branch information
Yoon-Hae-Min authored Aug 23, 2024
1 parent f7d4a52 commit 29b3ced
Show file tree
Hide file tree
Showing 41 changed files with 161 additions and 129 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"@use-gesture/react": "^10.3.1",
"autoprefixer": "^10.4.19",
"class-variance-authority": "^0.7.0",
"hls.js": "^1.5.15",
"next": "14.2.5",
"next-themes": "^0.3.0",
"nextjs-google-analytics": "^2.3.7",
"react": "^18",
"react-dom": "^18",
"react-hls-player": "^3.0.7",
"sonner": "^1.5.0",
"tailwind-scrollbar-hide": "^1.1.7",
"tailwindcss-animate": "^1.0.7",
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/elysian-gangchon/deer-slop-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const DeerSlopPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/elysian-gangchon/horse-slop-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const HorseSlopPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;

return (
<svg
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/elysian-gangchon/puma-slop-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const PumaSlopPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;

return (
<svg
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/high1/hera1-slop-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const Hera1SlopPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;

return (
<svg
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/allegro-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const AllegroPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/cadenza-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const CadenzaSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/flamingo-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const FlamingoPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/freeway2-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const Freeway2Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/moderato-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const ModeratoPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/mozart-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const MozartPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/panorama-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const PanoramaPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/polka-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const PolkaSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/r-gardner-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const RGardnerSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/raiders-lowest-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const RaidersLowestPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/rookiehill-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const RookiehillSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/rusutsu-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const RusutsuSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/shortcut-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const ShortcutSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/soyokgihang-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const SoyokgihangPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#FF9928]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#FF9928]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/spitch-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const SpitchSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/muju/western-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const WesternSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/wellihilli/challenge-slope1-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const ChallengeSlope1Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/wellihilli/echo-slope1-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const EchoSlope1Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#FF9928]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#FF9928]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/wellihilli/echo-slope2-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const EchoSlope2Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/wellihilli/echo-slope3-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const EchoSlope3Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#171D23]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/yongpyong/blue-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const BlueSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/yongpyong/gold-paradise-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const GoldParadisePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#447EFF]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;

return (
<svg
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/yongpyong/new-red-slope-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const NewRedSlopePath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/yongpyong/rainbow1-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const Rainbow1Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/yongpyong/rainbow2-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const Rainbow2Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/yongpyong/rainbow3-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const Rainbow3Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
4 changes: 2 additions & 2 deletions src/entities/slop/image/yongpyong/rainbow4-path.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const Rainbow4Path = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'texts-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { cn } from '@/shared/lib';

const SummitLandTheGreenPath = ({ color }: { color?: string }) => {
const defaultStrokeColor = 'stroke-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'stroke-') : defaultStrokeColor;
const defaultStrokeColor = 'text-[#303A45]';
const strokeColorClass = color ? color.replace('fill-', 'text-') : defaultStrokeColor;
return (
<svg
width="100%"
Expand Down
Loading

0 comments on commit 29b3ced

Please sign in to comment.