Skip to content

Commit

Permalink
fix bg colour on cookie popup
Browse files Browse the repository at this point in the history
add bare bones checkbox to form et all
  • Loading branch information
quantuminformation committed Jan 10, 2024
1 parent d8f8b9e commit 2acf1ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
14 changes: 3 additions & 11 deletions js/routes/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export default (hostComponent) => {
flex-direction: column;
align-items: flex-start;
border-radius: 10px;
background-color: white;
border: none;
background-color: var(--bg-color);
border: 1px solid var(--border-color);
}
#nikos-modal-label {
font-size: 18px;
Expand All @@ -57,15 +57,7 @@ export default (hostComponent) => {
width: 100%;
margin-bottom: 1rem;
}
button#save-preferences {
background-color: #3897f0;
color: white;
border: none;
border-radius: 5px;
padding: 10px 20px;
align-self: center;
cursor: pointer;
}
</style>
`;

Expand Down
18 changes: 16 additions & 2 deletions js/routes/form.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
export default (hostComponent) => {
hostComponent.innerHTML = '';

//language=HTML
const indexHTML = `
<h1>Welcome to the Form route!</h1>
<form class="centered">
<h2>Centered class form</h2>
<div>
<label for="name">Name:</label>
<label for="name">Name</label>
<input type="text" id="name" name="name">
</div>
<div>
<label for="password">Password:</label>
<label for="password">Password</label>
<input type="password" id="password" name="password">
</div>
<div>
<label for="iagree">I agree</label>
<input type="checkbox" name="iagree" id="iagree">
</div>
<div>
<label for="date">Date</label>
<input type="date" name="date" id="date">
</div>
<div>
<label for="range">Range</label>
<input type="range" name="range" id="range">
</div>
<button type="submit">Submit</button>
</form>
`;
Expand Down

0 comments on commit 2acf1ea

Please sign in to comment.