Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
e7ec1af3
Commit
e7ec1af3
authored
Jul 21, 2023
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: gradient line
parent
bf58d789
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
index.tsx
web/app/components/explore/universal-chat/init/index.tsx
+14
-1
style.module.css
...p/components/explore/universal-chat/init/style.module.css
+0
-6
No files found.
web/app/components/explore/universal-chat/init/index.tsx
View file @
e7ec1af3
...
...
@@ -7,6 +7,19 @@ import type { IConfigProps } from '../config'
import
Config
from
'../config'
import
s
from
'./style.module.css'
const
Line
=
(
<
svg
width=
"720"
height=
"1"
viewBox=
"0 0 720 1"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<
line
y1=
"0.5"
x2=
"720"
y2=
"0.5"
stroke=
"url(#paint0_linear_6845_53470)"
/>
<
defs
>
<
linearGradient
id=
"paint0_linear_6845_53470"
x1=
"0"
y1=
"1"
x2=
"720"
y2=
"1"
gradientUnits=
"userSpaceOnUse"
>
<
stop
stopColor=
"#F2F4F7"
stopOpacity=
"0"
/>
<
stop
offset=
"0.491667"
stopColor=
"#F2F4F7"
/>
<
stop
offset=
"1"
stopColor=
"#F2F4F7"
stopOpacity=
"0"
/>
</
linearGradient
>
</
defs
>
</
svg
>
)
const
Init
:
FC
<
IConfigProps
>
=
({
...
configProps
})
=>
{
...
...
@@ -20,7 +33,7 @@ const Init: FC<IConfigProps> = ({
<
div
className=
'mb-2 font-normal text-sm text-gray-500'
>
{
t
(
'explore.universalChat.welcomeDescribe'
)
}
</
div
>
</
div
>
<
div
className=
'flex mb-2 mx-auto h-8 items-center'
>
<
div
className=
{
s
.
line
}
></
div
>
{
Line
}
</
div
>
<
Config
className=
'w-[480px] mx-auto'
{
...
configProps
}
/>
</
div
>
...
...
web/app/components/explore/universal-chat/init/style.module.css
View file @
e7ec1af3
...
...
@@ -6,10 +6,4 @@
text-fill-color
:
transparent
;
}
.line
{
width
:
720px
;
border-top
:
1px
solid
#eee
;
/* TODO: gradient */
/* border-image-source: linear-gradient(90deg, rgba(242, 244, 247, 0) 0%, #F2F4F7 49.17%, rgba(242, 244, 247, 0) 100%); */
}
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