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
7f0284d6
Commit
7f0284d6
authored
Aug 07, 2024
by
HoMeTown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 样式
parent
69b32b83
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
91 additions
and
8 deletions
+91
-8
src/components/GradientsBall/GradientsBall.module.less
+33
-0
src/components/GradientsBall/GradientsBall.module.less.d.ts
+10
-0
src/components/GradientsBall/GradientsBall.tsx
+23
-0
src/layouts/MainLayout/MainLayout.tsx
+22
-7
src/pages/Home/components/Slogan/Slogan.tsx
+2
-0
src/pages/Home/components/WelcomeWord/WelcomeWord.tsx
+1
-1
No files found.
src/components/GradientsBall/GradientsBall.module.less
0 → 100644
View file @
7f0284d6
.gradientsBallContainer {
height: 44px;
width: 110px;
position: absolute;
z-index: -1;
}
.g1 {
width: 72px;
height: 72px;
background: linear-gradient( 142deg, #B4F4FF 0%, rgba(230,246,254,0) 100%);
filter: blur(20px);
position: absolute;
left: -36px;
top: -36px;
}
.g2 {
width: 16px;
height: 16px;
background: #CBC2FF;
filter: blur(6px);
right: -56px;
top: -24px;
position: absolute;
}
.g3 {
width: 6px;
height: 6px;
background: #29B6FD;
filter: blur(4px);
right: 46px;
bottom: -26px;
position: absolute;
}
src/components/GradientsBall/GradientsBall.module.less.d.ts
0 → 100644
View file @
7f0284d6
// This file is automatically generated.
// Please do not change this file!
interface
CssExports
{
g1
:
string
g2
:
string
g3
:
string
gradientsBallContainer
:
string
}
declare
const
cssExports
:
CssExports
export
default
cssExports
src/components/GradientsBall/GradientsBall.tsx
0 → 100644
View file @
7f0284d6
import
React
from
'react'
import
{
motion
}
from
'framer-motion'
import
styles
from
'./GradientsBall.module.less'
export
const
GradientsBall
:
React
.
FC
=
()
=>
{
const
balls
=
[
{
id
:
'g1'
},
{
id
:
'g2'
},
{
id
:
'g3'
},
]
return
(
<
div
className=
{
styles
.
gradientsBallContainer
}
>
{
balls
.
map
(
ball
=>
(
<
motion
.
div
key=
{
ball
.
id
}
className=
{
(
styles
as
any
)[
ball
.
id
]
}
>
</
motion
.
div
>
))
}
</
div
>
)
}
src/layouts/MainLayout/MainLayout.tsx
View file @
7f0284d6
...
...
@@ -10,15 +10,30 @@ interface MainLayoutProps {
}
export
const
MainLayout
:
React
.
FC
<
MainLayoutProps
>
=
({
children
})
=>
{
const
[
isNavCollapsed
,
toggleNav
]
=
useToggle
(
true
)
const
[
isHistoryVisible
,
toggleHistoryVisible
]
=
useToggle
(
false
)
const
contentVariants
=
{
expanded
:
{
width
:
'90px'
,
transition
:
{
type
:
'spring'
,
stiffness
:
300
,
damping
:
30
},
},
shrunk
:
{
width
:
'340px'
,
transition
:
{
type
:
'spring'
,
stiffness
:
300
,
damping
:
30
},
},
}
return
(
<
motion
.
main
className=
{
styles
.
layoutMain
}
>
<
div
className=
"w-90px h-full pl-[12px] flex items-center"
>
<
Navbar
isCollapsed=
{
isNavCollapsed
}
onToggle=
{
toggleNav
}
/>
<
HistoryBar
isVisible=
{
isNavCollapsed
}
/>
</
div
>
<
motion
.
div
className=
{
styles
.
layoutContent
}
>
<
motion
.
div
animate=
{
isHistoryVisible
?
'shrunk'
:
'expanded'
}
variants=
{
contentVariants
}
className=
{
`h-full pl-[12px] flex items-center ${isHistoryVisible ? 'w-[340px]' : 'w-[90px]'}`
}
>
<
Navbar
isCollapsed=
{
isHistoryVisible
}
onToggle=
{
toggleHistoryVisible
}
/>
<
HistoryBar
isVisible=
{
isHistoryVisible
}
/>
</
motion
.
div
>
<
motion
.
div
className=
{
styles
.
layoutContent
}
>
{
children
}
</
motion
.
div
>
</
motion
.
main
>
...
...
src/pages/Home/components/Slogan/Slogan.tsx
View file @
7f0284d6
import
type
React
from
'react'
import
TextLogo
from
'@/assets/svg/textLogo.svg?react'
import
GradualSpacing
from
'@/components/GradualSpacing'
import
{
GradientsBall
}
from
'@/components/GradientsBall/GradientsBall'
export
const
Slogan
:
React
.
FC
=
()
=>
{
return
(
<
div
className=
"flex flex-col items-center box-border"
>
<
GradientsBall
/>
<
TextLogo
className=
"text-[12px]"
/>
<
GradualSpacing
text=
"晓得解惑,让沟通更智能"
className=
"mt-[36px] text-[#333] text-[28px] font-medium"
/>
<
h3
className=
"text-center text-[18px] text-[#5AA9D0] font-light mt-[16px]"
>
知晓市场脉搏,引领行业潮流,晓得AI助手全方位为您保驾护航
</
h3
>
...
...
src/pages/Home/components/WelcomeWord/WelcomeWord.tsx
View file @
7f0284d6
...
...
@@ -19,7 +19,7 @@ const BotEye: React.FC = () => {
useEffect
(()
=>
{
const
blinkInterval
=
setInterval
(()
=>
{
blink
()
},
4
000
)
},
3
000
)
return
()
=>
clearInterval
(
blinkInterval
)
},
[])
...
...
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