Skip to content

Commit

Permalink
💄 style: additional changes to workflow page
Browse files Browse the repository at this point in the history
  • Loading branch information
ImDarkTom committed Jul 1, 2024
1 parent 31604fe commit a839195
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 21 additions & 2 deletions src/public/css/workflow.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,34 @@
font-size: var(--input-font-size);
}

.run-workflow {
.randomise-input:active {
filter: brightness(0.75);
}

.run-button-wrapper {
margin-top: 1rem;
width: 100%;
height: 3rem;
width: 100%;
box-sizing: border-box;
padding: 1px;
background: linear-gradient(135deg, #910E92, #6962C3);
border-radius: 0.5rem;
}

.run-button-wrapper:active {
filter: brightness(0.75);
}

.run-workflow {
width: 100%;
height: 100%;
margin: 1;
background-color: var(--background-secondary-color);
color: var(--text-primary-color);
border: 0;
border-radius: 0.5rem;
font-size: 1.5rem;
user-select: none;
}

.output-images-container {
Expand Down
2 changes: 2 additions & 0 deletions src/public/js/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ async function renderInput(inputOptions) {
}

function randomiseInput(inputId) {
//navigator.vibrate(10);
// implement later with proper settings page
const input = document.getElementById(inputId);

const min = parseFloat(input.getAttribute('min'));
Expand Down
4 changes: 3 additions & 1 deletion src/views/pages/workflow.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<div class="main-container">
<h2 class="category-title">Inputs</h2>
<div class="inputs-container"></div>
<button class="run-workflow" onclick="runWorkflow()">Run workflow</button>
<div class="run-button-wrapper">
<button class="run-workflow" onclick="runWorkflow()">Run workflow</button>
</div>
<h2 class="category-title">Output</h2>
<div class="output-images-container"></div>
</div>
Expand Down

0 comments on commit a839195

Please sign in to comment.