mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Simplify homepage textarea
This commit is contained in:
7 files changed
+24
-33
No files matched your search
+3
-4
@@ -93,11 +93,10 @@
|
||||
"name": "Name",
|
||||
"id": "ID",
|
||||
"email": "Email",
|
||||
"buildNostrApps": "Build apps with AI",
|
||||
"whatToBuild": "What would you like to build?",
|
||||
"buildApps": "Build apps with AI",
|
||||
"chooseModel": "Choose a model...",
|
||||
"selectModelToDescribe": "Please select a model below, then describe what you'd like to build...",
|
||||
"examplePrompt": "e.g., Create a farming equipment marketplace for local farmers to buy and sell tractors, tools, and supplies...",
|
||||
"selectModelToDescribe": "Select a model below to get started...",
|
||||
"examplePrompt": "Describe what you'd like to build...",
|
||||
"aiSettings": "AI",
|
||||
"aiSettingsDescription": "Configure AI providers and API keys",
|
||||
"gitSettings": "Git",
|
||||
|
||||
+3
-4
@@ -89,11 +89,10 @@
|
||||
"name": "Suna",
|
||||
"id": "ID",
|
||||
"email": "Imel",
|
||||
"buildNostrApps": "Gina aikace-aikace da AI",
|
||||
"whatToBuild": "Me kuke son ginawa?",
|
||||
"buildApps": "Gina aikace-aikace da AI",
|
||||
"chooseModel": "Zaɓi samfuri...",
|
||||
"selectModelToDescribe": "Da fatan za a zaɓi samfuri a ƙasa, sannan a bayyana abin da kuke son ginawa...",
|
||||
"examplePrompt": "misali, Ƙirƙiri kasuwar kayan aikin noma don manoma na yankin su sayi da sayar da taraktoci, kayan aiki, da kayayyaki...",
|
||||
"selectModelToDescribe": "Zaɓi samfuri a ƙasa don farawa...",
|
||||
"examplePrompt": "Bayyana abin da kuke son ginawa...",
|
||||
"settingsDescription": "Sarrafa saitunan aikace-aikacenku da zaɓuɓɓuka.",
|
||||
"aiSettings": "AI",
|
||||
"aiSettingsDescription": "Saita masu samar da AI da maɓallan API",
|
||||
|
||||
+3
-4
@@ -89,11 +89,10 @@
|
||||
"name": "Aha",
|
||||
"id": "ID",
|
||||
"email": "Ozi-eletrọniki",
|
||||
"buildNostrApps": "Wuo ngwa na AI",
|
||||
"whatToBuild": "Gịnị ka ị chọrọ iwu?",
|
||||
"buildApps": "Wuo ngwa na AI",
|
||||
"chooseModel": "Họrọ ụdịdị...",
|
||||
"selectModelToDescribe": "Biko họrọ ụdịdị n'okpuru, wee kọwaa ihe ị chọrọ iwu...",
|
||||
"examplePrompt": "ọmụmaatụ, Mepụta ahịa ngwá ọrụ ugbo maka ndị ọrụ ugbo mpaghara ịzụta na ire traktọ, ngwá ọrụ, na ngwa...",
|
||||
"selectModelToDescribe": "Họrọ ụdịdị n'okpuru iji malite...",
|
||||
"examplePrompt": "Kọwaa ihe ị chọrọ iwu...",
|
||||
"settingsDescription": "Jikwaa ntọala ngwa gị na nhọrọ.",
|
||||
"aiSettings": "AI",
|
||||
"aiSettingsDescription": "Hazie ndị na-enye AI na igodo API",
|
||||
|
||||
+3
-4
@@ -89,11 +89,10 @@
|
||||
"name": "Nome",
|
||||
"id": "ID",
|
||||
"email": "Email",
|
||||
"buildNostrApps": "Construa aplicativos com IA",
|
||||
"whatToBuild": "O que você gostaria de construir?",
|
||||
"buildApps": "Construa aplicativos com IA",
|
||||
"chooseModel": "Escolha um modelo...",
|
||||
"selectModelToDescribe": "Por favor, selecione um modelo abaixo e depois descreva o que gostaria de construir...",
|
||||
"examplePrompt": "ex., Criar um marketplace de equipamentos agrícolas para fazendeiros locais comprarem e venderem tratores, ferramentas e suprimentos...",
|
||||
"selectModelToDescribe": "Selecione um modelo abaixo para começar...",
|
||||
"examplePrompt": "Descreva o que você gostaria de construir...",
|
||||
"settingsDescription": "Gerencie as configurações e preferências da aplicação.",
|
||||
"aiSettings": "IA",
|
||||
"aiSettingsDescription": "Configure provedores de IA e chaves de API",
|
||||
|
||||
+3
-4
@@ -89,11 +89,10 @@
|
||||
"name": "Orukọ",
|
||||
"id": "ID",
|
||||
"email": "Imeeli",
|
||||
"buildNostrApps": "Kọ awọn ohun elo pẹlu AI",
|
||||
"whatToBuild": "Kini o fẹ kọ?",
|
||||
"buildApps": "Kọ awọn ohun elo pẹlu AI",
|
||||
"chooseModel": "Yan awoṣe...",
|
||||
"selectModelToDescribe": "Jọwọ yan awoṣe ni isalẹ, lẹhinna ṣapejuwe ohun ti o fẹ kọ...",
|
||||
"examplePrompt": "apeere, Ṣẹda ọja ẹrọ ogbin fun awọn agbe agbegbe lati ra ati ta awọn traktọ, awọn irinṣẹ, ati awọn ipese...",
|
||||
"selectModelToDescribe": "Yan awoṣe ni isalẹ lati bẹrẹ...",
|
||||
"examplePrompt": "Ṣapejuwe ohun ti o fẹ kọ...",
|
||||
"settingsDescription": "Ṣakoso awọn eto ohun elo rẹ ati awọn ayanfẹ.",
|
||||
"aiSettings": "AI",
|
||||
"aiSettingsDescription": "Tunto awọn olupese AI ati awọn bọtini API",
|
||||
|
||||
+3
-4
@@ -89,11 +89,10 @@
|
||||
"name": "名称",
|
||||
"id": "ID",
|
||||
"email": "邮箱",
|
||||
"buildNostrApps": "使用AI构建应用",
|
||||
"whatToBuild": "您想构建什么?",
|
||||
"buildApps": "使用AI构建应用",
|
||||
"chooseModel": "选择模型...",
|
||||
"selectModelToDescribe": "请在下方选择一个模型,然后描述您想要构建的内容...",
|
||||
"examplePrompt": "例如:为当地农民创建一个农业设备市场,用于买卖拖拉机、工具和用品...",
|
||||
"selectModelToDescribe": "请选择下方的模型以开始...",
|
||||
"examplePrompt": "描述您想要构建的内容...",
|
||||
"settingsDescription": "管理您的应用程序设置和偏好。",
|
||||
"aiSettings": "AI",
|
||||
"aiSettingsDescription": "配置AI提供商和API密钥",
|
||||
|
||||
+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