Skip to content

Commit

Permalink
dad: setup abi's html/css
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyHubert committed Jul 20, 2024
1 parent 387c278 commit 256820b
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 2 deletions.
5 changes: 5 additions & 0 deletions abi/bubble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 36 additions & 1 deletion abi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,41 @@
</script>
</head>
<body>
Abi!

<div id="screen-buttons" class="screen hide">

<button class="main-button" id="do-legs">Do Legs Workout</button>
<button class="main-button" id="do-arms">Do Arms Workout</button>
<button class="main-button" id="do-random">Do Random Workout</button>
<button class="main-button" id="view-log">View Workout Log</button>

</div>

<div id="screen-workout" class="screen hide">

<div id="clock">15:00</div>
<div id="comments"></div>

<div class="workout-canvas">
<img class="bubble" src="bubble.svg" />
<div class="bubble-text-container">
<div id="bubble-text">Get ready...</div>
</div>
<div id="stick-figure"></div>
</div>

<button id="cancel">Cancel</button>

</div>

<div id="screen-log" class="screen">

<div class="screen-heading">Workout Log</div>
<div id="log-details"></div>

<button id="back">Back</button>

</div>

</body>
</html>
112 changes: 111 additions & 1 deletion abi/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,113 @@
body {
font-size: 50px;
font-size: 20px;
margin: 0;
padding: 0;
}

.screen {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
width: 100vw;
height: 100vh;
}

#screen-workout {
justify-content: center;
}

.hide {
display: none;
}

button {
padding: 30px;
margin: 5px;
}

.main-button {
height: 100px;
width: 400px;
max-width: calc(100vw - 40px);
}

#view-log {
height: 50px;
}

#clock {
position: absolute;
top: 20px;
right: 20px;
border: 1px solid red;
color: black;
line-height: 50px;
padding: 0 20px;
border-radius: 5px;
}

#comments {
position: absolute;
top: 90px;
right: 20px;
max-width: 150px;
}

.workout-canvas {
position: relative;
align-self: center;
width: 300px;
height: 500px;
border-bottom: 1px solid black;
background: rgb(0 0 0/.05);
}

.bubble {
position: absolute;
top: -40px;
left: 60px;
width: 250px;
z-index: 1;
}

.bubble-text-container {
position: absolute;
top: 25px;
left: 90px;
width: 190px;
height: 124px;
z-index: 2;
display: flex;
justify-content: center;
align-items: center;
}

#stick-figure {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}

#cancel, #back {
position: absolute;
bottom: 20px;
left: 20px;
}

.screen-heading {
font-size: 30px;
margin: 20px 0 10px;
}

#stick-figure {
white-space: pre;
font-family: monospace;
font-size: 20px;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
}

0 comments on commit 256820b

Please sign in to comment.