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