Spaces:
Runtime error
Runtime error
HuggingFace-SK
commited on
Commit
·
09a166a
1
Parent(s):
5320d13
update style
Browse files- static/browser_detect.css +28 -7
- templates/browser-detect.html +2 -0
static/browser_detect.css
CHANGED
|
@@ -19,19 +19,21 @@ body {
|
|
| 19 |
position: relative;
|
| 20 |
text-align: left;
|
| 21 |
padding: 10px;
|
| 22 |
-
background-color: #
|
| 23 |
border-radius: 12.5px;
|
| 24 |
min-width:calc(10px + 1em);
|
| 25 |
max-width:100%;
|
| 26 |
font-weight: bold;
|
| 27 |
-
|
| 28 |
}
|
| 29 |
.wrapper_result{
|
| 30 |
position: relative;
|
| 31 |
text-align: left;
|
| 32 |
padding: 10px;
|
| 33 |
-
background-color: #
|
|
|
|
| 34 |
margin: 10px;
|
|
|
|
| 35 |
border-radius: 15px;
|
| 36 |
|
| 37 |
|
|
@@ -41,7 +43,8 @@ body {
|
|
| 41 |
#text{
|
| 42 |
text-align: center;
|
| 43 |
padding: 10px;
|
| 44 |
-
background-color
|
|
|
|
| 45 |
margin: none;
|
| 46 |
margin-top: 0px;
|
| 47 |
border-radius: 12.25px;
|
|
@@ -56,19 +59,37 @@ body {
|
|
| 56 |
position: relative;
|
| 57 |
text-align: left;
|
| 58 |
padding: 10px;
|
| 59 |
-
background-color: #
|
|
|
|
| 60 |
margin: 10px;
|
| 61 |
margin-top: none;
|
| 62 |
border-radius: 15px;
|
| 63 |
overflow-y: hidden;
|
| 64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
#output_canvas{
|
| 66 |
-
display:block; position:
|
|
|
|
|
|
|
| 67 |
}
|
| 68 |
#text-to-speech{
|
|
|
|
| 69 |
padding-top: 10px;
|
|
|
|
|
|
|
| 70 |
width:100%;
|
| 71 |
-
background-color: #
|
| 72 |
font-size: large;
|
| 73 |
border: none;
|
| 74 |
color:#d3d3d3
|
|
|
|
| 19 |
position: relative;
|
| 20 |
text-align: left;
|
| 21 |
padding: 10px;
|
| 22 |
+
background-color: #656565;
|
| 23 |
border-radius: 12.5px;
|
| 24 |
min-width:calc(10px + 1em);
|
| 25 |
max-width:100%;
|
| 26 |
font-weight: bold;
|
| 27 |
+
color:#DFDFDF
|
| 28 |
}
|
| 29 |
.wrapper_result{
|
| 30 |
position: relative;
|
| 31 |
text-align: left;
|
| 32 |
padding: 10px;
|
| 33 |
+
background-color: #F3F3F3;
|
| 34 |
+
box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.25);
|
| 35 |
margin: 10px;
|
| 36 |
+
margin-bottom: 20px;
|
| 37 |
border-radius: 15px;
|
| 38 |
|
| 39 |
|
|
|
|
| 43 |
#text{
|
| 44 |
text-align: center;
|
| 45 |
padding: 10px;
|
| 46 |
+
background-color:#d9d9d9;
|
| 47 |
+
|
| 48 |
margin: none;
|
| 49 |
margin-top: 0px;
|
| 50 |
border-radius: 12.25px;
|
|
|
|
| 59 |
position: relative;
|
| 60 |
text-align: left;
|
| 61 |
padding: 10px;
|
| 62 |
+
background-color: #F3F3F3;
|
| 63 |
+
box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.25);
|
| 64 |
margin: 10px;
|
| 65 |
margin-top: none;
|
| 66 |
border-radius: 15px;
|
| 67 |
overflow-y: hidden;
|
| 68 |
}
|
| 69 |
+
.canvas_wrapper{
|
| 70 |
+
position: relative;
|
| 71 |
+
text-align: left;
|
| 72 |
+
height:290px;
|
| 73 |
+
background-color: #F3F3F3;
|
| 74 |
+
box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.38);
|
| 75 |
+
margin:10px;
|
| 76 |
+
margin-bottom: 20px;
|
| 77 |
+
|
| 78 |
+
border-radius: 15px;
|
| 79 |
+
overflow: hidden;
|
| 80 |
+
}
|
| 81 |
#output_canvas{
|
| 82 |
+
display:block; position:absolute;
|
| 83 |
+
left:0px;
|
| 84 |
+
width:100%
|
| 85 |
}
|
| 86 |
#text-to-speech{
|
| 87 |
+
margin-top: 5px;
|
| 88 |
padding-top: 10px;
|
| 89 |
+
padding-bottom: 10px;
|
| 90 |
+
border-radius: 12.25px;
|
| 91 |
width:100%;
|
| 92 |
+
background-color: #374e60;
|
| 93 |
font-size: large;
|
| 94 |
border: none;
|
| 95 |
color:#d3d3d3
|
templates/browser-detect.html
CHANGED
|
@@ -28,7 +28,9 @@
|
|
| 28 |
|
| 29 |
<div class="container">
|
| 30 |
<video id="webcam" style="display:none" autoplay="" playsinline=""></video>
|
|
|
|
| 31 |
<canvas class="output_canvas" id="output_canvas" width="100%" height="300%"></canvas>
|
|
|
|
| 32 |
</div>
|
| 33 |
<center>
|
| 34 |
<img id="output_image" style="display:none"></img>
|
|
|
|
| 28 |
|
| 29 |
<div class="container">
|
| 30 |
<video id="webcam" style="display:none" autoplay="" playsinline=""></video>
|
| 31 |
+
<div class="canvas_wrapper">
|
| 32 |
<canvas class="output_canvas" id="output_canvas" width="100%" height="300%"></canvas>
|
| 33 |
+
</div>
|
| 34 |
</div>
|
| 35 |
<center>
|
| 36 |
<img id="output_image" style="display:none"></img>
|