Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
christian2denker committed Oct 8, 2024
1 parent a3a2546 commit 160e3f5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
font-family: Arial, Helvetica, sans-serif;
-webkit-user-select: none;
user-select: none;
width: 100vw;
height: 100vh;
overflow: hidden;
}

.container {
Expand All @@ -26,7 +29,7 @@
justify-content: center;
background-color: #ffffff;
aspect-ratio: 5 / 4; /* Aspect ratio 4:3 */

height: 100%;
}

/* vertical stacked: */
Expand All @@ -36,16 +39,12 @@
font-size: 2vw;
text-align: center; /* Center text within each label */
font-weight: 300;
position: relative;
top: 2vw;
display: flex;

}
.questionHeader {
/* height: 20vh; */
font-size:4vw;
position: relative;
top: 6vw;
text-align: center; /* Center text within each label */
font-weight: 600;
margin: 0 5vw 0 5vw;
Expand Down Expand Up @@ -104,13 +103,17 @@
#answer2 {
text-align: right;
}
#liveIndicator {
width: 32px;
height: 32px;
}
</style>
</head>
<body>
<div class="container">
<div class="numberOfResults">
LIVE ABSTIMMUNG
<svg width="12.5%" height="12.5%" xmlns="http://www.w3.org/2000/svg" overflow="visible">
<svg id="liveIndicator" xmlns="http://www.w3.org/2000/svg" overflow="visible">
<circle fill="#24B9D6" cx="50%" cy="50%" r="22.5%">
<animate
attributeName="r"
Expand Down Expand Up @@ -147,7 +150,7 @@
<span id="question"></span>
</div>
<div class="slider-container">
<svg id="sliderSVG" viewBox="0 0 300 150" preserveAspectRatio="xMidYMid meet" width="100%" height="100%" overflow="visible">
<svg id="sliderSVG" viewBox="0 0 300 150" preserveAspectRatio="xMidYMid meet" overflow="visible">
<!-- Curved slider path -->
<path id="sliderPath" d="M 50 150 A 100 100 0 0 1 250 150" class="slider"></path>

Expand Down Expand Up @@ -223,6 +226,7 @@
document.addEventListener('pointermove', onDrag);
document.addEventListener('pointerup', endDrag);


function startDrag(e) {
e.preventDefault();
if (typeof pollyMessageListener !== 'undefined' && pollyMessageListener !== null) {
Expand Down

0 comments on commit 160e3f5

Please sign in to comment.