Changing view to circular view
This commit is contained in:
@ -29,7 +29,8 @@ PAGE = """\
|
|||||||
|
|
||||||
.container {
|
.container {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
width: 480px;
|
||||||
|
height: 480px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
@ -41,10 +42,14 @@ PAGE = """\
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #b9f084;
|
color: #b9f084;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
border-radius: 10px;
|
border-radius: 50%;
|
||||||
|
width: 480px;
|
||||||
|
height: 480px;
|
||||||
|
object-fit: cover;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -52,7 +57,7 @@ PAGE = """\
|
|||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="title">peepr</div>
|
<div class="title">peepr</div>
|
||||||
<img src="stream.mjpg" width="800" height="480" alt="Webcam Stream">
|
<img src="stream.mjpg" alt="Webcam Stream">
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -125,4 +130,3 @@ try:
|
|||||||
server.serve_forever()
|
server.serve_forever()
|
||||||
finally:
|
finally:
|
||||||
picam2.stop_recording()
|
picam2.stop_recording()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user