ui text update
This commit is contained in:
1 parent
f2c6269832
commit
83e623fae0
4 files changed
+31
-19
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 627 KiB |
@@ -1000,9 +1000,9 @@ const messages = {
|
||||
},
|
||||
landing: {
|
||||
hero: {
|
||||
prefix: '释放',
|
||||
highlight: '生成式 AI 的强大力量',
|
||||
subtitle: '获取一套专为企业需求打造的强大 AI 智能体,安全、可扩展且智能。'
|
||||
prefix: '和信',
|
||||
highlight: '紧密 AI智能体 应用平台',
|
||||
subtitle: 'AI的世界,期望让你开心工作,快乐生活。'
|
||||
},
|
||||
agent: {
|
||||
role: 'AI 助手'
|
||||
|
||||
@@ -1552,7 +1552,7 @@ const showChatRating = ref(false);
|
||||
<div class="mb-6 flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-brand-500 via-brand-600 to-sky-600 text-2xl font-bold text-white shadow-lg shadow-brand-500/20">
|
||||
AI
|
||||
</div>
|
||||
<h2 class="text-center text-xl font-medium text-slate-800 dark:text-slate-100 md:text-2xl">我今天可以怎么帮助你?</h2>
|
||||
<h2 class="text-center text-xl font-medium text-slate-800 dark:text-slate-100 md:text-2xl">你好,我是和信AI数字人</h2>
|
||||
</div>
|
||||
|
||||
<template v-for="(msg, index) in messages" :key="index">
|
||||
|
||||
@@ -14,6 +14,7 @@ import ThemeToggleButton from '../components/ThemeToggleButton.vue';
|
||||
import DeleteConfirmDialog from '../components/DeleteConfirmDialog.vue';
|
||||
import GeneralFeedbackDialog from '../components/GeneralFeedbackDialog.vue';
|
||||
import { useGlobalMessageDialog } from '../composables/useGlobalMessageDialog';
|
||||
import loginBg from '../assets/login-bg.png';
|
||||
|
||||
import {
|
||||
buildWecomLoginDialogContent,
|
||||
@@ -55,6 +56,12 @@ const { t, locale } = useI18n();
|
||||
const { showMessageDialog } = useGlobalMessageDialog();
|
||||
const router = useRouter();
|
||||
const { setThemePreference, appliedTheme } = useTheme();
|
||||
const loginBackgroundStyle = {
|
||||
backgroundImage: `url(${loginBg})`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
};
|
||||
|
||||
const loadLanguagePreference = () => {
|
||||
const storedLang = localStorage.getItem('hxops_lang');
|
||||
@@ -1229,8 +1236,13 @@ onMounted(async () => {
|
||||
</div>
|
||||
|
||||
<!-- Not Logged In (Login Screen) -->
|
||||
<div v-else-if="!isLoggedIn" class="min-h-[calc(100vh-4rem)] flex items-center justify-center">
|
||||
<div class="w-full max-w-6xl grid grid-cols-1 lg:grid-cols-2 gap-12 items-center p-4">
|
||||
<div
|
||||
v-else-if="!isLoggedIn"
|
||||
class="relative min-h-[calc(100vh-4rem)] overflow-hidden rounded-[2rem] flex items-center justify-center"
|
||||
:style="loginBackgroundStyle"
|
||||
>
|
||||
<div class="absolute inset-0 bg-white/55 backdrop-blur-[1px] dark:bg-slate-950/55"></div>
|
||||
<div class="relative z-10 w-full max-w-6xl grid grid-cols-1 lg:grid-cols-2 gap-12 items-center p-4">
|
||||
<!-- Hero Section -->
|
||||
<div class="hidden lg:block space-y-8 animate-slide-up">
|
||||
<!--
|
||||
@@ -1242,17 +1254,17 @@ onMounted(async () => {
|
||||
{{ $t('title') }}
|
||||
</div>
|
||||
-->
|
||||
<h1 class="text-5xl font-bold text-slate-900 leading-tight">
|
||||
<h1 class="text-5xl font-bold text-black leading-tight drop-shadow-sm">
|
||||
{{ $t('landing.hero.prefix') }} <br/>
|
||||
<span class="text-transparent bg-clip-text bg-gradient-to-r from-brand-600 to-purple-600">{{ $t('landing.hero.highlight') }}</span>
|
||||
<span class="text-transparent bg-clip-text bg-gradient-to-r from-[#005a9c] to-[#7a1fd0] drop-shadow-sm">{{ $t('landing.hero.highlight') }}</span>
|
||||
</h1>
|
||||
<p class="text-lg text-slate-600 max-w-md leading-relaxed">
|
||||
<p class="text-lg text-slate-800 max-w-md leading-relaxed font-semibold drop-shadow-sm">
|
||||
{{ $t('landing.hero.subtitle') }}
|
||||
</p>
|
||||
|
||||
<!-- Announcements List -->
|
||||
<div v-if="announcements.length > 0" class="bg-white/60 dark:bg-slate-900/70 backdrop-blur-sm rounded-2xl border border-slate-100 dark:border-slate-700 p-6 shadow-sm">
|
||||
<h3 class="text-sm font-bold text-slate-900 mb-4 flex items-center gap-2">
|
||||
<div v-if="announcements.length > 0" class="bg-white/70 dark:bg-slate-900/70 backdrop-blur-sm rounded-2xl border border-slate-200 dark:border-slate-700 p-6 shadow-sm">
|
||||
<h3 class="text-sm font-bold text-slate-950 mb-4 flex items-center gap-2">
|
||||
<Megaphone class="w-4 h-4 text-brand-600" />
|
||||
{{ $t('login.announcements') }}
|
||||
</h3>
|
||||
@@ -1261,10 +1273,10 @@ onMounted(async () => {
|
||||
class="group cursor-pointer hover:bg-white/50 dark:hover:bg-slate-800/70 p-2 rounded-lg transition-colors"
|
||||
@click="openAnnouncement(ann)">
|
||||
<div class="flex justify-between items-start gap-2">
|
||||
<h4 class="text-sm font-medium text-slate-800 group-hover:text-brand-700 line-clamp-1">{{ ann.title }}</h4>
|
||||
<span class="text-[10px] text-slate-400 whitespace-nowrap">{{ new Date(ann.created_at).toLocaleDateString() }}</span>
|
||||
<h4 class="text-sm font-semibold text-slate-900 group-hover:text-brand-800 line-clamp-1">{{ ann.title }}</h4>
|
||||
<span class="text-[10px] text-slate-500 whitespace-nowrap">{{ new Date(ann.created_at).toLocaleDateString() }}</span>
|
||||
</div>
|
||||
<p class="text-xs text-slate-500 line-clamp-2 mt-1">{{ ann.content }}</p>
|
||||
<p class="text-xs text-slate-700 line-clamp-2 mt-1">{{ ann.content }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1294,22 +1306,22 @@ onMounted(async () => {
|
||||
<Bot class="w-7 h-7" />
|
||||
</div>
|
||||
<h2 class="text-2xl font-bold text-slate-900 dark:text-slate-100">{{ $t('login.submit') }}</h2>
|
||||
<p class="text-slate-500 dark:text-slate-400 text-sm mt-2">{{ $t('login.subtitle') }}</p>
|
||||
<p class="text-slate-600 dark:text-slate-400 text-sm mt-2">{{ $t('login.subtitle') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="space-y-5">
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-semibold text-slate-700 uppercase ml-1">{{ $t('login.username') }}</label>
|
||||
<label class="text-xs font-semibold text-slate-800 uppercase ml-1">{{ $t('login.username') }}</label>
|
||||
<input v-model="loginUsername" type="text" class="input-field" :placeholder="$t('login.placeholder.username')" @keyup.enter="handleLogin" />
|
||||
</div>
|
||||
<div class="space-y-1.5">
|
||||
<label class="text-xs font-semibold text-slate-700 uppercase ml-1">{{ $t('login.password') }}</label>
|
||||
<label class="text-xs font-semibold text-slate-800 uppercase ml-1">{{ $t('login.password') }}</label>
|
||||
<input v-model="loginPassword" type="password" class="input-field" :placeholder="$t('login.placeholder.password')" @keyup.enter="handleLogin" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-2 mt-2">
|
||||
<input type="checkbox" id="rememberMe" v-model="rememberMe" class="rounded border-slate-300 text-brand-600 focus:ring-brand-500 w-4 h-4" />
|
||||
<label for="rememberMe" class="text-sm text-slate-600 cursor-pointer select-none">{{ $t('login.rememberMe') }}</label>
|
||||
<label for="rememberMe" class="text-sm text-slate-700 cursor-pointer select-none">{{ $t('login.rememberMe') }}</label>
|
||||
</div>
|
||||
|
||||
<button type="button" @click="handleLogin" class="btn-primary w-full py-3 text-base shadow-brand-500/40 hover:shadow-brand-500/50 transform hover:-translate-y-0.5 transition-all mt-4">
|
||||
@@ -1327,7 +1339,7 @@ onMounted(async () => {
|
||||
</button>
|
||||
|
||||
<div class="flex justify-between items-center pt-4 mt-2 border-t border-slate-100/50">
|
||||
<button type="button" @click="showForgotPasswordModal = true" class="text-sm text-slate-500 hover:text-brand-600 transition-colors">
|
||||
<button type="button" @click="showForgotPasswordModal = true" class="text-sm text-slate-600 hover:text-brand-700 transition-colors">
|
||||
{{ $t('login.forgotPassword') }}
|
||||
</button>
|
||||
<!-- 点击注册 -->
|
||||
|
||||
Reference in new issue
Block a user