Skip to content

Commit

Permalink
center items and make fixed size, hidden behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Apr 15, 2024
2 parents 79f94d9 + 0116832 commit 4fdadb6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
22 changes: 19 additions & 3 deletions App.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
.App {
text-align: center;
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
overflow-x: hidden;
}

#app {
width: 100%;
min-width: 1800px;
box-sizing: border-box;
}


.inputBox {
width: 30%;
margin: 20px auto;
padding: 20px;
border: 1px solid #ccc;
box-shadow: 0 0 10px #ccc;
transition: all 0.5s ease-in-out;
display: flex;
flex-direction: column;
align-items: center;
}

.inputBox.active {
Expand Down Expand Up @@ -41,7 +57,7 @@ input {
box-shadow: 0 0 10px #ccc;
transition: all 0.5s ease-in-out;
color: #333;
word-break: break-all;
word-wrap: break-word;
}

.eventBox.waiting {
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputKeys/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const InputBox: React.FC<InputBoxProps> = ({ onSubmit }) => {
disabled={isSubmitted}
/>
{pendulumError && <div style={{ color: 'red' }}>{pendulumError}</div>}
{!isSubmitted ? <button onClick={handleSubmit}>Begin Offramp</button> : <div>Started</div>}
{!isSubmitted ? <button onClick={handleSubmit}>Begin Offramp</button> : <div>Offramp Started</div>}
</div>
</div>
);
Expand Down

0 comments on commit 4fdadb6

Please sign in to comment.