feat(piksel): logo yaklaşınca Piksel'e dönüşür, gözleri imleci izler; tema geçişinde önce Piksel toplanır

- logo-piksel.tsx: üç kare Piksel'e morph, eye-tracker yay/nişanıyla bakış, 200/260 px histerezis
- header logosu LogoPiksel; tema ve eylem biçimleri AnimasyonluMark'ta kalır (disKontrol)
- tema-gecisi: temaHazirligi — halka Piksel kapanınca başlar
- Piksel blob motoru, Bencho eye-tracker (MIT) ve /dev/piksel vitrini (Bilal'in gece işi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bilalgursen
2026-10-17 02:49:44 +03:00
parent 04fa46d004
commit a962784a6d
11 changed files with 2464 additions and 680 deletions

View File

@@ -1021,3 +1021,101 @@
transition: none;
}
}
/* ══ Eye tracker ═══════════════════════════════════════════
Bencho'nun Eye tracker'ı (bencho.dev, MIT) — bileşen
src/components/eye-tracker.tsx. Bencho'nun tokenları burada,
yalnız bileşenin kökünde, bu projenin aynı işi gören
tokenlarına eşlenir; dışarı sızmaz:
--bg zemin → --background
--ink mürekkep → --foreground
--card yüzey → projenin kendi --card'ı (zaten var)
--fill-slab dolgu levhası → --card (bileşenin kendi yüzeyi)
--fill-on dolgu üstü → --card-foreground
--font-ui arayüz yazısı → --font-sans (Clarity City)
See lab/Watcher.tsx. The frame holds the largest ball the
Size knob allows, so the wall never rescales it. */
.eyt {
--bg: var(--background);
--ink: var(--foreground);
--fill-slab: var(--card);
--fill-on: var(--card-foreground);
--font-ui: var(--font-sans);
width: 200px;
height: 200px;
display: grid;
place-items: center;}
.eyt-ball {
width: var(--eyt-size, 100px);
height: var(--eyt-size, 100px);
overflow: visible;}
/* the ball is the Fill's own slab and the eyes its ink: white
with dark eyes on a light fill, near-black with light eyes on
a dark one */
.eyt-body { fill: var(--fill-slab, #ffffff); }
.eyt-eye { fill: var(--fill-on, #0b0b0d); }
/* a press on the toy opens a chat bubble off its lower right: the
pet's bubble, its square corner pointing back at the face */
.eyt { position: relative; }
/* a press gives a little under the finger and springs back out */
.eyt-ball[data-poke] {
cursor: pointer;
transform-origin: center;
transition: scale 420ms cubic-bezier(0.24, 1.34, 0.38, 1);
-webkit-tap-highlight-color: transparent;}
.eyt-ball[data-poke]:active { scale: 0.96; transition-duration: 160ms; transition-timing-function: ease; }
.eyt-say {
position: absolute;
left: calc(50% + var(--eyt-size, 100px) * 0.36);
top: calc(50% + var(--eyt-size, 100px) * 0.3);
display: inline-flex;
align-items: center;
gap: 2px;
min-height: 34px;
padding: 0 16px;
border-radius: 6px 14px 14px 14px;
background: var(--tint, #3b5bff);
box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, 0.1);
color: #ffffff;
font-family: var(--font-ui);
font-size: 13px;
font-weight: 400;
white-space: nowrap;
transform-origin: top left;
opacity: 0;
scale: 0.85;
pointer-events: none;
transition: opacity 160ms ease, scale 220ms cubic-bezier(0.24, 1.34, 0.38, 1), background-color 220ms ease;
letter-spacing: 0em;}
.eyt-say[data-on] { opacity: 1; scale: 1; }
.eyt-caret {
width: 1.5px;
height: 13px;
border-radius: 1px;
background: var(--fill-slab, var(--card));
animation: pet-caret 1s steps(1) infinite;}
.logo-test .eyt { width: auto; height: auto; }
.logo-test .eyt-body { fill: var(--ink); }
.logo-test .eyt-eye { fill: var(--bg); }
/* the circle and pill in dark mode match the hexagon: a lifted
dark body with the eyes kept white
(Bencho'da `[data-theme="dark"]`; bu projede koyu tema `.dark` sınıfıdır, next-themes attribute="class") */
.dark .logo-test .eyt-body { fill: #2b2c30; /* the hexagon's body; site chrome, not a block: keep off the system snap */ }
.dark .logo-test .eyt-eye { fill: #fbfbfa; }
@keyframes pet-caret {
50% { opacity: 0; }}