Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
6116c8f8
Commit
6116c8f8
authored
Aug 08, 2024
by
HoMeTown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 样式调整
parent
bced1825
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
src/layouts/MainLayout/MainLayout.tsx
+1
-1
src/pages/Home/Home.tsx
+3
-3
src/pages/Home/components/QuestionList/QuestionList.tsx
+2
-1
src/pages/Home/components/Slogan/Slogan.tsx
+3
-3
No files found.
src/layouts/MainLayout/MainLayout.tsx
View file @
6116c8f8
...
...
@@ -38,7 +38,7 @@ export const MainLayout: React.FC<MainLayoutProps> = ({ children }) => {
<
motion
.
div
animate=
{
isHistoryVisible
?
'shrunk'
:
'expanded'
}
variants=
{
contentVariants
}
className=
{
`h
-full pl-[12px] flex
items-center ${isHistoryVisible ? 'w-[340px]' : 'w-[90px]'}`
}
className=
{
`h
idden sm:flex h-full pl-[12px]
items-center ${isHistoryVisible ? 'w-[340px]' : 'w-[90px]'}`
}
>
<
Navbar
isHistoryVisible=
{
isHistoryVisible
}
onSetHistoryVisible=
{
setHistoryVisible
}
/>
<
HistoryBar
isVisible=
{
isHistoryVisible
}
/>
...
...
src/pages/Home/Home.tsx
View file @
6116c8f8
...
...
@@ -55,9 +55,9 @@ export const Home: React.FC = () => {
{
/* 欢迎语 */
}
<
div
className=
"gap-[20px] flex justify-center flex-row flex-wrap mt-[42px] sm:mt-[62px] lg:mt-[112px]"
>
<
motion
.
div
{
...
getAnimationProps
(1)}
><
WelcomeWord
/></
motion
.
div
>
<
motion
.
div
{
...
getAnimationProps
(2)}
><
QuestionList
questions=
{
RECOMMEND_QUESTIONS_PRODUCT
}
dotColor=
"#D4CCFF"
title=
"产品问答"
iconImg=
{
HomeIcon1
}
/></
motion
.
div
>
<
motion
.
div
{
...
getAnimationProps
(3)}
><
QuestionList
questions=
{
RECOMMEND_QUESTIONS_OTHER
}
dotColor=
"#CBECFF"
title=
"其他问答"
iconImg=
{
HomeIcon2
}
/></
motion
.
div
>
<
motion
.
div
className=
"w-full hidden sm:block sm:w-auto"
{
...
getAnimationProps
(1)}
><
WelcomeWord
/></
motion
.
div
>
<
motion
.
div
className=
"w-full sm:w-auto"
{
...
getAnimationProps
(2)}
><
QuestionList
questions=
{
RECOMMEND_QUESTIONS_PRODUCT
}
dotColor=
"#D4CCFF"
title=
"产品问答"
iconImg=
{
HomeIcon1
}
/></
motion
.
div
>
<
motion
.
div
className=
"w-full sm:w-auto"
{
...
getAnimationProps
(3)}
><
QuestionList
questions=
{
RECOMMEND_QUESTIONS_OTHER
}
dotColor=
"#CBECFF"
title=
"其他问答"
iconImg=
{
HomeIcon2
}
/></
motion
.
div
>
</
div
>
</
div
>
)
}
...
...
src/pages/Home/components/QuestionList/QuestionList.tsx
View file @
6116c8f8
...
...
@@ -107,7 +107,7 @@ const QuestionListBase: React.FC<QuestionListProps & WithAuthProps> = ({ checkAu
variants=
{
containerVariants
}
initial=
"hidden"
animate=
"visible"
className=
"mt-[18px] flex flex-col gap-[8px]"
className=
"mt-[18px] flex flex-col gap-[8px]
w-full
"
>
<
AnimatePresence
mode=
"wait"
>
{
...
...
@@ -120,6 +120,7 @@ const QuestionListBase: React.FC<QuestionListProps & WithAuthProps> = ({ checkAu
animate=
"visible"
exit=
"exit"
layout
className=
"w-full"
>
<
Button
onClick=
{
handleClick
}
color=
"primary"
variant=
"light"
className=
"text-left bg-[#F7FCFF] w-full text-[#333] rounded-[23px] data-[hover=true]:bg-[#E5F6FF] data-[hover=true]:text-primary"
>
<
div
className=
"w-full text-nowrap text-ellipsis overflow-hidden"
>
...
...
src/pages/Home/components/Slogan/Slogan.tsx
View file @
6116c8f8
...
...
@@ -6,10 +6,10 @@ export const Slogan: React.FC = () => {
return
(
<
div
className=
"flex flex-col items-center box-border"
>
<
GradientsBall
/>
<
TextLogo
className=
"
text-[12px]
"
/>
<
TextLogo
className=
"
w-[80px] sm:w-auto
"
/>
{
/* <GradualSpacing text="晓得解惑,让沟通更智能" className="mt-[36px] text-[#333] text-[28px] font-medium" /> */
}
<
h2
className=
"mt-[
36px] text-[#333]
text-[28px] font-medium"
>
晓得解惑,让沟通更智能
</
h2
>
<
h3
className=
"
text-center text-[18px] text-[#5AA9D0] font-light
mt-[16px]"
>
知晓市场脉搏,引领行业潮流,晓得AI助手全方位为您保驾护航
</
h3
>
<
h2
className=
"mt-[
20px] text-[18px] sm:mt-[36px] text-[#333] sm:
text-[28px] font-medium"
>
晓得解惑,让沟通更智能
</
h2
>
<
h3
className=
"
mt-[8px] text-[14px] text-center sm:text-[18px] text-[#5AA9D0] font-light sm:
mt-[16px]"
>
知晓市场脉搏,引领行业潮流,晓得AI助手全方位为您保驾护航
</
h3
>
</
div
>
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment