Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OKR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
OKR
Commits
488ac250
Commit
488ac250
authored
Aug 27, 2021
by
sixiaofeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语音识别
parent
8e2ded0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
2 deletions
+72
-2
speech-recognition.vue
src/views/schedule/speech-recognition.vue
+71
-1
tailwind.config.js
tailwind.config.js
+1
-1
No files found.
src/views/schedule/speech-recognition.vue
View file @
488ac250
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
</div>
<!-- 语音部分 -->
<!-- 语音部分 -->
<div
class=
"flex items-center justify-center h-50 w-80 mt-4"
@
click=
"clickAnimation()"
>
<
!--
<
div
class=
"flex items-center justify-center h-50 w-80 mt-4"
@
click=
"clickAnimation()"
>
<div
class=
"absolute rounded-full bg-green-100 w-40 h-40 flex items-center justify-center"
:class=
"larg"
>
<div
class=
"absolute rounded-full bg-green-100 w-40 h-40 flex items-center justify-center"
:class=
"larg"
>
<div
class=
" rounded-full bg-green-200 w-32 h-32 flex items-center justify-center"
:class=
"larg"
>
<div
class=
" rounded-full bg-green-200 w-32 h-32 flex items-center justify-center"
:class=
"larg"
>
<div
class=
"little rounded-full bg-green-300 w-20 h-20 flex items-center justify-between px-6"
>
<div
class=
"little rounded-full bg-green-300 w-20 h-20 flex items-center justify-between px-6"
>
...
@@ -22,6 +22,19 @@
...
@@ -22,6 +22,19 @@
</div>
</div>
</div>
</div>
<div
class=
"flex items-center justify-center text-xs text-text-secondary mt-50"
>
长按录音
</div>
<div
class=
"flex items-center justify-center text-xs text-text-secondary mt-50"
>
长按录音
</div>
</div>
-->
<div
class=
"wrapper relative h-50 mt-4 overflow-hidden"
>
<div
class=
"circle rounded-full absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-40 h-40 bg-green-200"
/>
<div
class=
"circle-small rounded-full absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-32 h-32 bg-green-300"
/>
<div
class=
"rounded-full absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-20 h-20 bg-green-400"
/>
<div
class=
"absolute w-7 h-5 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 line-wrapper flex items-center justify-between"
>
<div
v-for=
"i in 4"
:key=
"i"
class=
"rounded-full w-1 bg-white odd:h-3 even:h-5"
:class=
"i % 2 === 0 ? 'yyy' : 'xxx'"
></div>
</div>
</div>
</div>
<div
class=
"flex justify-between fixed bottom-0 left-0 w-full px-16 text-sm text-text-secondary bg-common-bg py-4"
>
<div
class=
"flex justify-between fixed bottom-0 left-0 w-full px-16 text-sm text-text-secondary bg-common-bg py-4"
>
...
@@ -105,4 +118,60 @@ export default Vue.extend({
...
@@ -105,4 +118,60 @@ export default Vue.extend({
{
{
0%{height:30px;}
0%{height:30px;}
}
}
// .wrapper {
// -webkit-backface-visibility: hidden;
// -moz-backface-visibility: hidden;
// backface-visibility: hidden;
// -webkit-transform-style: preserve-3d;
// -moz-transform-style: preserve-3d;
// transform-style: preserve-3d;
// -webkit-perspective: 1000;
// -moz-perspective: 1000;
// perspective: 1000;
// }
.circle {
animation: circle 1s linear infinite normal;
&-small {
animation: circle 1s linear 0.5s infinite normal;
}
}
.xxx {
animation: shortLine 0.5s ease-in-out infinite alternate;
}
.yyy {
animation: longLine 0.5s ease-in-out infinite alternate
}
@keyframes circle {
0% {
width: 5rem;
height: 5rem;
opacity: 1;
}
100% {
width: 12rem;
height: 12rem;
opacity: 0;
}
}
@keyframes shortLine {
0% {
height: 0.75rem;
}
100% {
height: 1.25rem;
}
}
@keyframes longLine {
0% {
height: 1.25rem;
}
100% {
height: 0.75rem;
}
}
</
style
>
</
style
>
\ No newline at end of file
tailwind.config.js
View file @
488ac250
...
@@ -992,7 +992,7 @@ module.exports = {
...
@@ -992,7 +992,7 @@ module.exports = {
gridRowStart
:
[
'responsive'
],
gridRowStart
:
[
'responsive'
],
gridTemplateColumns
:
[
'responsive'
],
gridTemplateColumns
:
[
'responsive'
],
gridTemplateRows
:
[
'responsive'
],
gridTemplateRows
:
[
'responsive'
],
height
:
[
'responsive'
],
height
:
[
'responsive'
,
'odd'
,
'even'
],
hueRotate
:
[
'responsive'
],
hueRotate
:
[
'responsive'
],
inset
:
[
'responsive'
],
inset
:
[
'responsive'
],
invert
:
[
'responsive'
],
invert
:
[
'responsive'
],
...
...
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