File size: 2,083 Bytes
7678e61
be16eb7
 
 
 
7678e61
 
 
be16eb7
 
 
 
 
 
7678e61
be16eb7
7678e61
 
 
be16eb7
7678e61
 
 
be16eb7
7678e61
 
be16eb7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6aa44b6
 
 
 
 
 
 
be16eb7
 
6aa44b6
be16eb7
 
 
 
 
 
 
8f1e0dc
7678e61
be16eb7
 
8f1e0dc
7678e61
be16eb7
 
 
 
 
7678e61
 
be16eb7
 
 
 
 
 
 
 
7678e61
 
be16eb7
 
 
7678e61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
body {
  overflow: hidden;
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

.mic-container {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  .circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: 0.5s;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.14), 0 1px 18px rgba(0, 0, 0, 0.12), 0 3px 5px rgba(0, 0, 0, 0.2);

    i {
      color: #b2b1b1;
      font-size: 23px;
      transition: 0.9s;
    }
    
    &:before {
      content: '';
      width: 80px;
      height: 80px;
      border-radius: 50%;
      opacity: 0.2;
      z-index: -1;
      position: absolute;
      background: transparent;
    }
  }
  
  .circle.active {
    background: #ff0000;
    
    &:before {
      background: gray;
      animation: bounce 0.8s ease-in-out infinite 0.5s;
    }
    
    i {
      color: #ffffff;
    }
  }
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.4);
  }
  75% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.3);
  }
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

#transcribeButton {
  display: block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#transcribeButton:hover {
  background-color: #2980b9;
}

#transcriptionResult {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

#loadingSpinner {
  margin-top: 20px;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-left: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}