Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: font setup

Faisal Amir8fef236a9420
diff --git a/web-app/src/containers/SetupScreen.tsx b/web-app/src/containers/SetupScreen.tsx
index 2203371ba..ec646ba01 100644
--- a/web-app/src/containers/SetupScreen.tsx
+++ b/web-app/src/containers/SetupScreen.tsx
@@ -379,7 +379,7 @@ function SetupScreen() {
<div className="h-full px-8 overflow-y-auto flex flex-col gap-2 justify-center ">
<div className="w-full lg:w-4/6 mx-auto">
<div className="mb-8 text-left">
- <h1 className="font-editorialnew text-main-view-fg text-4xl">
+ <h1 className="font-studio text-main-view-fg text-4xl">
{t('setup:welcome')}
</h1>
{!isQuickStartAvailable && (
diff --git a/web-app/src/index.css b/web-app/src/index.css
index fb0d9426d..045159af6 100644
--- a/web-app/src/index.css
+++ b/web-app/src/index.css
@@ -1,6 +1,6 @@
@import 'tailwindcss';
@import 'tw-animate-css';
-@import "katex/dist/katex.min.css";
+@import 'katex/dist/katex.min.css';
@import '@/styles/font.css';
@import '@/styles/markdown.css';
@source '../node_modules/streamdown/dist/**/*.js';
@@ -12,7 +12,7 @@
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
- --font-editorialnew: 'StudioFeixenSans', sans-serif;
+ --font-studio: 'StudioFeixenSans', sans-serif;
--color-app: var(--app-bg);
--color-left-panel-fg: var(--app-left-panel-fg);
--color-main-view: var(--app-main-view);
diff --git a/web-app/src/routes/index.tsx b/web-app/src/routes/index.tsx
index d4c9fc348..744e4a315 100644
--- a/web-app/src/routes/index.tsx
+++ b/web-app/src/routes/index.tsx
@@ -107,31 +107,20 @@ function Index() {
>
<div
className={cn(
- 'text-center',
- // Adjust spacing for mobile
- isMobile ? 'mb-6' : 'mb-8'
+ 'text-center mb-4',
)}
>
<h1
className={cn(
- 'font-editorialnew text-main-view-fg',
- // Responsive title size
- isMobile ? 'text-2xl sm:text-3xl' : 'text-4xl'
- )}
- >
- {isTemporaryChat ? t('chat:temporaryChat') : t('chat:welcome')}
- </h1>
- <p
- className={cn(
- 'text-main-view-fg/70 mt-2',
+ 'text-main-view-fg/90 mt-2 font-studio font-medium',
// Responsive description size
- isMobile ? 'text-base' : 'text-lg'
+ isMobile ? 'text-base' : 'text-2xl'
)}
>
{isTemporaryChat
? t('chat:temporaryChatDescription')
: t('chat:description')}
- </p>
+ </h1>
</div>
<div className="flex-1 shrink-0">
<ChatInput