Skip to content

Commit

Permalink
Added new Generation Settings section
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Nov 25, 2023
1 parent 0168574 commit ee8e0a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
14 changes: 11 additions & 3 deletions app/[lng]/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import { v4 as uuidv4 } from "uuid";
import {
Hand,
Info,
Lightbulb,
Loader2,
LucideFileWarning,
PenBox,
RefreshCcw,
Settings as SettingsLogo,
Sparkles,
Expand Down Expand Up @@ -640,8 +642,14 @@ export default function CreatePage({
</div>
)}
<div className="m-2 print:hidden">
<p>
{t("format")} - {t(typesToString(type))} - {getModelString(model)}
<p className="font-bold">{t("gen-settings")}</p>
<p className="flex items-center space-x-2">
<PenBox height={14} />
<span>{t(typesToString(type))}</span>
</p>
<p className="flex items-center space-x-2">
<Lightbulb height={14} />
<span>{getModelString(model)}</span>
</p>
</div>
</section>
Expand Down Expand Up @@ -671,7 +679,7 @@ export default function CreatePage({
{!errorVis && !res && (
<section
className={
"m-2 flex grow items-center justify-center rounded-md bg-white p-2 shadow-md dark:bg-slate-900 print:shadow-none"
"m-2 flex grow items-center justify-center rounded-md bg-white p-2 shadow-md dark:bg-slate-900 print:text-black print:shadow-none"
}
>
<div className="flex flex-col items-center justify-center">
Expand Down
3 changes: 2 additions & 1 deletion app/i18n/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@
"tones-informative": "Informative",
"tones-funny": "Funny",
"table": "Table",
"format-desc": "A generation format is a mode in which Synapsy Write generates text."
"format-desc": "A generation format is a mode in which Synapsy Write generates text.",
"gen-settings": "Generation Settings"
}
3 changes: 2 additions & 1 deletion app/i18n/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@
"tones-informative": "Informatif",
"tones-funny": "Drôle",
"table": "Tableau",
"format-desc": "Un format de génération est une manière dont Synapsy Write va générer du texte."
"format-desc": "Un format de génération est une manière dont Synapsy Write va générer du texte.",
"gen-settings": "Paramètres de génération"
}

0 comments on commit ee8e0a4

Please sign in to comment.