Cartes · HTML / CSS
macOS Code Snippet Window
Par Design Engineers · 21st.dev · MIT
Survolez ou cliquez pour essayer. Aucun formulaire ne transmet de données.
<!--
MIT License Copyright (c) 2026 Author
Author: Design Engineers
Source: https://21st.dev/r/code-block
Revision: main
-->
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>macOS Code Snippet Window</title><style>html{height:100%;background:#e9e9ef}body{margin:0;min-height:100%;display:grid;place-items:center;padding:24px;box-sizing:border-box;font-family:Arial,sans-serif}#clicks-preview-root{display:flex;align-items:center;justify-content:center;max-width:100%;min-width:0}*{box-sizing:border-box}.code-window {
max-width: 380px;
border-radius: 12px;
background: #090a0f;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
overflow: hidden;
font-family: ui-monospace, Menlo, Monaco, monospace;
}
.window-bar {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
background: #13151f;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.window-title {
margin-left: 8px;
font-size: 12px;
color: #94a3b8;
}
.code-body {
margin: 0;
padding: 18px;
font-size: 12px;
line-height: 1.6;
color: #e2e8f0;
}
.c-keyword { color: #c084fc; font-weight: 600; }
.c-str { color: #6ee7b7; }
@media(max-height:350px){#clicks-preview-root{transform:scale(.8);transform-origin:center}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}</style></head><body><div id="clicks-preview-root"><div class="code-window">
<div class="window-bar">
<span class="dot dot-red"></span>
<span class="dot dot-yellow"></span>
<span class="dot dot-green"></span>
<span class="window-title">generate.ts</span>
<div class="code-body">
<div class="code-line"><span class="c-keyword">import</span> { FalClient } <span class="c-keyword">from</span> <span class="c-str">'@fal-ai/client'</span>;</div>
<div class="code-line"><span class="c-keyword">const</span> result = <span class="c-keyword">await</span> fal.subscribe(<span class="c-str">'seedance-2'</span>, {</div>
<div class="code-line"> prompt: <span class="c-str">'cinematic slow-mo 4k'</span>,</div>
<div class="code-line"> aspect_ratio: <span class="c-str">'16:9'</span></div>
<div class="code-line">});</div>
</div>
</div>
</div></div></body></html>Télécharger le HTML ↓Auteur, source & licence
Le code d’origine est conservé avec sa révision. L’aperçu utilise un cadre de présentation Clicks et bloque les scripts et ressources externes.
Source originale ↗21st.dev · Révision main
Importé le 2026-10-17. La date d’import n’est pas la date de création.
Lire la licence MIT
MIT License Copyright (c) 2026 Author