feat: update colors and home icon

This commit is contained in:
2026-05-01 02:43:22 +03:00
parent 7f8a327329
commit e3469763ce
8 changed files with 28 additions and 88 deletions

View File

@@ -1,4 +1,5 @@
import React, { useMemo, useRef, useState } from "react";
import subtractHomeIcon from "./subtract-home.svg";
import { ReactPhotoSphereViewer } from "react-photo-sphere-viewer";
import { ReactMarkdownComponent } from "../../ReactMarkdown";
import { ThreeViewErrorBoundary } from "../../MediaViewer/ThreeViewErrorBoundary";
@@ -285,42 +286,7 @@ export function SightFramePreview({
type="button"
onClick={() => onSectionChange(-1)}
>
<svg
width="20"
height="25"
viewBox="0 0 20 25"
fill="none"
xmlns="http://www.w3.org/2000/svg"
style={{ display: "block" }}
>
<defs>
<linearGradient
id="sfpGradient"
x1="0%"
y1="0%"
x2="100%"
y2="100%"
gradientUnits="userSpaceOnUse"
>
<stop offset="0%" stopColor="rgba(255, 255, 255, 0.2)" />
<stop offset="100%" stopColor="rgba(255, 255, 255, 0)" />
</linearGradient>
<clipPath id="sfpClip">
<rect
width="20"
height="25"
fill="white"
transform="translate(12.5 0.5) rotate(90)"
/>
</clipPath>
</defs>
<g clipPath="url(#sfpClip)">
<path
d="M4.03158 11.0738C4.21879 11.2087 4.34702 11.2766 4.44531 11.3747C6.93048 13.8687 9.41098 16.3665 11.8962 18.8605C12.3408 19.3067 12.5186 19.8207 12.3361 20.4339C12.0281 21.4658 10.7776 21.8393 9.95295 21.1498C9.86309 21.0743 9.78165 20.9894 9.69928 20.9064C6.85279 18.0446 4.00537 15.1817 1.15982 12.3189C0.280876 11.4341 0.281813 10.6456 1.16169 9.75982C4.04 6.86305 6.91457 3.96155 9.80786 1.07986C10.0597 0.828952 10.4144 0.619547 10.7561 0.537482C11.4019 0.382786 12.015 0.72142 12.3193 1.28644C12.6263 1.85334 12.5392 2.56079 12.0806 3.05129C11.7286 3.4286 11.3561 3.78704 10.991 4.15209C8.79601 6.35557 6.60194 8.55904 4.40599 10.7606C4.32362 10.8436 4.22721 10.9106 4.03158 11.0729L4.03158 11.0738Z"
fill="url(#sfpGradient)"
/>
</g>
</svg>
<img src={subtractHomeIcon} alt="" width="24" height="21" style={{ display: "block" }} />
</button>
)}