creative-web-app
/creative-web-app
Przeprojektowuje ekrany zalogowanej aplikacji, czyli czat, ustawienia i udostępnianie, bez zmiany działania starego interfejsu.
- Autor
- AfkanOzdemir ↗
- Repozytorium
- creative-web-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 05.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Przeprojektowuje ekrany zalogowanej aplikacji, czyli czat, ustawienia i udostępnianie, bez zmiany działania starego interfejsu.
Oryginalny opis (EN)
Redesigns signed-in app screens without changing behaviour — parallel routes behind a flavor context, presentation forks at the leaf with shared hooks, a calm chat shell (sidebar, composer, sources, thinking state), a System-Settings-style settings dialog with mobile list-to-detail, and a share dialog. Use when the user asks to redesign or add a new version of a chat, dashboard, settings or share screen while the old UI keeps working. Do NOT use for marketing pages (use creative-web-pages and creative-web-widgets).
Jak działa
- Critical
- 1. Parallel routes + flavor context
- 2. Fork presentation at the leaf
- 3. Chat shell
- 4. Settings dialog (System Settings style)
- 5. Share dialog
- Accessibility musts
- Workflow
- Examples
- Troubleshooting
Podgląd SKILL.md
---
name: creative-web-app
description: Redesigns signed-in app screens without changing behaviour — parallel routes behind a flavor context, presentation forks at the leaf with shared hooks, a calm chat shell (sidebar, composer, sources, thinking state), a System-Settings-style settings dialog with mobile list-to-detail, and a share dialog. Use when the user asks to redesign or add a new version of a chat, dashboard, settings or share screen while the old UI keeps working. Do NOT use for marketing pages (use creative-web-pages and creative-web-widgets).
license: MIT
compatibility: Works in Claude Code, Codex, Cursor, OpenCode and claude.ai. Examples assume React or Next.js App Router with Tailwind CSS v4.
metadata:
author: afkanozdemir
version: 1.0.1
suite: creative-web
tags: [frontend, design, motion]
---
# App UI patterns
Goal: new look, **zero behaviour drift**. Reuse every hook, API call and form section; only presentation forks.
## Critical
- Fork presentation, never logic: extract shared hooks first, then render old or new from a thin wrapper so only one hook instance runs.
- The old UI must keep working at its own URLs; links come from the base context.
- Do not flip production feature flags or admin settings to test a screen without the owner's consent.
## 1. Parallel routes + flavor context
- New screens live under a parallel route prefix (e.g. `/next/...`) while the old ones keep working.
The new layout copies the old auth guard but redirects to the new sign-in route.
- One context tells shared components where they are:
```tsx
type Ctx = { base: string; flavor: 'classic' | 'next' }
const BaseCtx = createContext<Ctx>({ base: '/app', flavor: 'classic' })
export function BaseProvider({ base, flavor = 'classic', children }: { base: string; flavor?: Ctx['flavor']; children: React.ReactNode }) {
return <BaseCtx.Provider value={{ base, flavor }}>{children}</BaseCtx.Provider>
}
export const useBase = () => useContext(BaseCtx).base
export const useFlavor = () => useContext(BaseCtx).flavor
```
- Shared components build links with `useBase()` so the old app keeps its own URLs.
- Auth screens reuse the same server actions / captcha hook; after success `router.replace(base)`.
Server loaders accept `{ redirectTo }` so signed-in users land in the right flavour.
## 2. Fork presentation at the leaf
Extract the logic of the old component into a hook, keep the old renderer, add a new renderer, and switch in
a thin wrapper so only **one** hook instance runs (avoids double fetches):
```tsx
export default function ShareDialog(props: Props) {
return useFlavor() === 'next' ? <ShareNext {...props} /> : <ShareClassic {...props} />
}
```
Example hook surface: `useShare(target, open, onOpenChange)` → `{ share, loading, busy, copied, preview,
shareUrl, create, copy, revoke, handleOpenChange }`. Brand marks (X/LinkedIn/Reddit) in their own module.
## 3. Chat shell
- Floating rounded sidebar on a neutral-50 ground: ink "New chat" pill, search pill with ⌘K, grouped
history (Today / Yesterday / Last 7 days…), folders, account menu.
- Topbar: centred title + a portal slot for per-page actions (temporary-chat toggle, share).
- Main area: rounded white panel.
- Messages: avatar gets the conic ring while thinking; a calm "thinking" row; sources as a horizontal card
strip + drawer; status chips (e.g. "memory updated") deep-link into settings; error row with retry;
refusals styled as a normal, honest answer.
- Empty state: greeting, rotating placeholder, suggestion cards (content-driven) or hints.
- Composer: conic ring on focus/busy, Enter hint, counter, stop button while streaming.
- Reuse the existing streaming hook (e.g. SSE frames `start | text | citations | done | error`).
### Animated conic ring (CSS only)
```css
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ring-spin { to { --ring-angle: 360deg; } }
.ring { position: relative; }
.ring::before {
content: ''; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit;
background: conic-gradient(from var(--ring-angle), transparent 0deg, var(--color-neutral-900) 70deg,
transparent 150deg, transparent 210deg, var(--color-neutral-500) 290deg, transparent 360deg);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor; mask-composite: exclude;
opacity: 0; pointer-events: none; transition: opacity 300ms ease;
animation: ring-spin 3.6s linear infinite;
}
.ring:focus-within::before, .ring[data-busy='true']::before { opacity: 1; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg-in { animation: msg-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) { .ring::before, .msg-in { animation: none; } }
```
## 4. Settings dialog (System Settings style)
- Dialog `max-w-[960px] rounded-[28px]`, inner `flex h-[min(680px,calc(100dvh-4rem))]`.
- Left nav `w-[248px]` neutral-50 with grouped rows (e.g. Account: general, profile, security, usage;
Data: memory, shares, data). Rows `h-11 rounded-xl`, ink icon tile, active row filled + `aria-current="page"`.
- Right: a scoped wrapper (`.settings-next`) rendering the **existing** section components keyed by tab
with an entrance animation; restyle them with scoped CSS (bigger headings, 44px fields, more padding)
instead of editing their markup.
- Mobile (<768px via matchMedia): grouped list first (white rounded groups, chevrons, 56px rows), tap →
detail with a "‹ Settings" back button.
- Reset tab on open; on desktop focus the active row so the focus ring doesn't read as a second selection.
- Deep link via a window event: `dispatchEvent(new CustomEvent('app:open-settings', { detail: { tab } }))`.
## 5. Share dialog
`max-w-[480px] rounded-[28px]`: close button, 24px title + description, brand-signed preview card
(`line-clamp-5`).
- Not shared: neutral warning box + full-width ink "Create link" pill.
- Shared: pill URL field (readonly, select-on-focus, mono) with an ink Copy button inside (live label),
social pills, "frozen copy" note, quiet "Remove link".
- If sharing is behind an admin flag, don't flip production flags to test it without consent.
## Accessibility musts
Dialog labelled by its visible title; icon buttons have `aria-label`; decorative icons `aria-hidden`;
live regions for copy/status; keyboard: Esc closes, focus returns to the trigger; axe clean in every state.
## Workflow
1. Add the base/flavor provider and the parallel route group with the same auth guard.
2. Move each shared component's logic into a hook; keep the old renderer as-is.
3. Build the new renderer per screen (shell, composer, settings, share) and switch with the flavor wrapper.
4. Verify both flavors: old links still resolve to old routes, new links to new ones; no double network requests.
5. Run `creative-web-qa` with a local test account on desktop and mobile.
## Examples
**User says:** "Move the settings and share windows to the new design."
**Actions:** extract `useShare` → `ShareDialog` wrapper picks old/new by flavor → settings dialog renders existing section components inside a restyled shell.
**Result:** new dialogs in the new app, untouched dialogs in the old one, identical behaviour.
**User says:** "Make the chat screen modern and user-friendly."
**Actions:** new shell (floating sidebar, ⌘K search, centred title) reusing the existing streaming hook → composer with conic focus ring → sources strip.
**Result:** a redesigned chat that talks to the same backend.
## Troubleshooting
**Error:** the dialog fetches twice.
**Cause:** old and new renderers both mounted the hook. **Solution:** let the wrapper render only one renderer.
**Error:** links in the new UI jump back to the old app.
**Cause:** hard-coded paths. **Solution:** build hrefs from `useBase()`.
Wersje
W bazie nie ma innych skilli o nazwie creative-web-app.
Migawka bazy z 13.11.2026 · wersja paczki b9b0d37fa39c (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100creative-web-widgets
Dostarcza 48 animowanych widżetów produktu do stron marketingowych, na przykład czat AI z cytatami, paletę wyszukiwania i oś czasu. - 86app-screen
Pomaga budować lub zmieniać ekrany aplikacji: panele, widoki analityczne, ustawienia, skrzynki odbiorcze i listy. - 100creative-web
Buduje, przeprojektowuje i audytuje strony z animacjami three.js i GSAP, które wyglądają na zaprojektowane i odróżniają się od siebie. - 100mobile-redesign-screen
Przeprojektowuje jeden ekran React Native lub przepływ 2 do 3 ekranów: wyciąga tokeny, ocenia ustalenia i modernizuje w atomowych commitach ze zrzutami przed i po, zachowując nawigację. - 90roz-ui
Pomaga w pracy nad interfejsem aplikacji Roz for LSC Electron: czat, ustawienia, bibliotekę i studio, z konwencjami i zrzutami ekranu. - 95mobile-taste
Projektuje ekrany, nawigację i animacje aplikacji React Native i Expo tak, by nie wyglądały na wygenerowane przez AI.