2025-06-16 16:07:02 +03:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< title > {{ page.title | default: 'Prompt Share' }} - {{ site.title }}< / title >
<!-- Tailwind CSS -->
< script src = "https://cdn.tailwindcss.com" > < / script >
< script >
tailwind.config = {
theme: {
extend: {
colors: {
'dynamic-background': 'rgb(var(--background) / < alpha-value > )',
'dynamic-foreground': 'rgb(var(--foreground) / < alpha-value > )',
'dynamic-muted': 'rgb(var(--muted) / < alpha-value > )',
'dynamic-muted-foreground': 'rgb(var(--muted-foreground) / < alpha-value > )',
'dynamic-primary': 'rgb(var(--primary) / < alpha-value > )',
'dynamic-accent': 'rgb(var(--accent) / < alpha-value > )',
'dynamic-border': 'rgb(var(--border) / < alpha-value > )',
}
}
}
}
< / script >
< link rel = "stylesheet" href = "{{ '/embed-preview-style.css' | relative_url }}" >
< link rel = "icon" type = "image/x-icon" href = "{{ '/favicon.ico' | relative_url }}" >
< meta name = "description" content = "AI prompt viewer" >
< / head >
< body class = "bg-dynamic-background text-dynamic-foreground overflow-hidden" >
<!-- Viewer Mode -->
2025-06-17 19:41:56 +03:00
< div id = "viewer-mode" class = "viewer-mode h-screen flex" >
<!-- Sidebar - File Tree -->
2025-06-17 20:32:06 +03:00
< div id = "file-sidebar" class = "hidden w-40 sm:w-44 border-r border-dynamic-border bg-dynamic-muted/30 flex-shrink-0 overflow-y-auto custom-scrollbar" >
< div class = "p-2 border-b border-dynamic-border" >
< h3 class = "text-[10px] font-semibold text-dynamic-muted-foreground uppercase tracking-wider" > Files< / h3 >
2025-06-16 16:07:02 +03:00
< / div >
2025-06-17 20:32:06 +03:00
< div id = "file-tree" class = "p-1" > < / div >
2025-06-16 16:07:02 +03:00
< / div >
2025-06-17 19:41:56 +03:00
<!-- Main Content -->
2025-06-18 16:21:53 +03:00
< div class = "flex-1 flex flex-col p-2 sm:p-4 min-h-0" >
2025-06-17 19:41:56 +03:00
<!-- Top Bar with Context Pills and Edit Button -->
2025-06-18 16:21:53 +03:00
< div class = "flex justify-between items-start gap-2 mb-1 sm:mb-2 max-w-full flex-shrink-0" >
2025-06-17 19:41:56 +03:00
<!-- Context Pills -->
2025-06-18 16:21:53 +03:00
< div id = "context-pills" class = "flex flex-wrap gap-1.5 empty:hidden flex-1 min-w-0 pr-2" > < / div >
2025-06-17 19:41:56 +03:00
<!-- Edit Button -->
2025-06-18 16:21:53 +03:00
< button id = "edit-button" class = "p-1 text-dynamic-muted-foreground hover:text-dynamic-foreground transition-colors flex-shrink-0" title = "Edit in designer" >
2025-06-17 19:41:56 +03:00
< svg width = "16" height = "16" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" >
< path d = "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" / >
< path d = "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" / >
< / svg >
< / button >
< / div >
2025-06-16 16:07:02 +03:00
2025-06-17 19:41:56 +03:00
<!-- Main Prompt Interface - Full Height -->
2025-06-18 16:21:53 +03:00
< div class = "flex-1 flex flex-col min-h-0" >
< div id = "prompt-container" class = "flex-1 bg-dynamic-muted border border-dynamic-border rounded-xl p-3 relative focus-within:border-dynamic-primary transition-colors flex flex-col min-h-0" >
2025-06-17 19:41:56 +03:00
< div id = "prompt-text" class = "flex-1 text-dynamic-foreground leading-relaxed whitespace-pre-wrap overflow-y-auto custom-scrollbar text-sm sm:text-base" > < / div >
2025-06-18 16:21:53 +03:00
< div id = "prompt-placeholder" class = "text-dynamic-muted-foreground italic absolute top-3 left-3 pointer-events-none text-sm sm:text-base" > ← Enter your prompt on designer...< / div >
2025-06-17 19:41:56 +03:00
< / div >
< / div >
<!-- Bottom Bar -->
2025-06-18 16:21:53 +03:00
< div class = "flex justify-between items-center gap-2 mt-1 sm:mt-2 flex-shrink-0" >
2025-06-17 19:41:56 +03:00
<!-- Settings Pills -->
< div id = "settings-pills" class = "flex gap-1 sm:gap-2 flex-wrap flex-1 min-w-0" > < / div >
<!-- Send Button (circular with arrow up) -->
< button id = "copy-button" class = "w-8 h-8 sm:w-10 sm:h-10 bg-dynamic-primary text-white rounded-full flex items-center justify-center hover:opacity-90 transition-opacity focus-ring flex-shrink-0 shadow-lg touch-target" title = "Send prompt" >
< svg width = "16" height = "16" class = "sm:w-5 sm:h-5" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2.5" >
< path d = "M12 19V5M5 12l7-7 7 7" / >
< / svg >
< / button >
< / div >
2025-06-16 16:07:02 +03:00
< / div >
< / div >
<!-- Notification -->
< div id = "notification" class = "fixed top-4 right-4 bg-dynamic-accent text-white px-4 py-2 rounded-lg font-medium opacity-0 transition-opacity z-50 pointer-events-none" > < / div >
< script src = "{{ '/embed-preview-script.js' | relative_url }}" > < / script >
< / body >
< / html >