mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Simplify homepage textarea
This commit is contained in:
7 files changed
+24
-33
No files matched your search
+6
-9
@@ -289,17 +289,14 @@ export default function Index() {
|
||||
<AppLayout headerContent={headerContent}>
|
||||
{/* Main Chat Section - Takes up most of viewport with generous whitespace */}
|
||||
<div className="min-h-[calc(100vh-12rem)] flex items-center justify-center pb-24 md:pb-32">
|
||||
<div className="max-w-4xl mx-auto w-full">
|
||||
<div className="max-w-2xl mx-auto w-full">
|
||||
<div className="text-center mb-12 md:mb-16">
|
||||
<div className="mb-6 md:mb-8">
|
||||
<ShakespeareLogo className="w-20 h-20 md:w-24 md:h-24 mx-auto" />
|
||||
</div>
|
||||
<h1 className="text-3xl md:text-4xl font-bold mb-3 md:mb-4 bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">
|
||||
{t('buildNostrApps')}
|
||||
{t('buildApps')}
|
||||
</h1>
|
||||
<p className="text-lg md:text-xl text-muted-foreground">
|
||||
{t('whatToBuild')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -318,7 +315,7 @@ export default function Index() {
|
||||
|
||||
{/* Chat Input Container - matching the ChatPane style */}
|
||||
<div
|
||||
className={`relative rounded-2xl border border-input bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 transition-all ${isDragOver ? 'border-primary bg-primary/5 ring-2 ring-primary/20' : ''
|
||||
className={`relative rounded-3xl border border-input bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 transition-all ${isDragOver ? 'border-primary bg-primary/5 ring-2 ring-primary/20' : ''
|
||||
}`}
|
||||
onDragEnter={handleDragEnter}
|
||||
onDragOver={handleDragOver}
|
||||
@@ -337,12 +334,12 @@ export default function Index() {
|
||||
onChange={handlePromptChange}
|
||||
onKeyDown={handleKeyDown}
|
||||
onClick={handleTextareaClick}
|
||||
className="min-h-[120px] max-h-64 resize-none border-0 bg-transparent px-4 py-3 pb-16 text-sm focus-visible:ring-0 focus-visible:ring-offset-0 placeholder:text-muted-foreground"
|
||||
className="min-h-[80px] max-h-64 resize-none border-0 bg-transparent px-4 py-3 pb-16 text-base focus-visible:ring-0 focus-visible:ring-offset-0 placeholder:text-muted-foreground"
|
||||
disabled={isCreating || isGeneratingInfo || (hasProvidersConfigured && !providerModel.trim())}
|
||||
rows={4}
|
||||
rows={2}
|
||||
style={{
|
||||
height: 'auto',
|
||||
minHeight: '120px'
|
||||
minHeight: '80px'
|
||||
}}
|
||||
onInput={(e) => {
|
||||
const target = e.target as HTMLTextAreaElement;
|
||||
|
||||
Reference in new issue
Block a user