Skip to content

Commit

Permalink
style: improvements on waitlist form
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelcarrara committed Sep 15, 2023
1 parent 15697b6 commit 1a23c75
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 59 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,9 @@ <h2 class="heading-call">
</p>

<form id="waitlistForm">
<input type="email" placeholder="Your e-mail">
<br><br>
<label for="interestReason">Why are you interested?</label>
<label for="userEmail" class="form-label">Your e-mail</label>
<input type="email" id="userEmail" name="userEmail">
<label for="interestReason" class="form-label">Why are you interested?</label>
<select id="interestReason" name="interestReason">
<option value=""></option>
<option value="community_leader">Community Leader: I want to implement the Protocol in my community</option>
Expand Down
37 changes: 6 additions & 31 deletions public/stylesheet/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/stylesheet/main.css.map

Large diffs are not rendered by default.

30 changes: 6 additions & 24 deletions stylesheet/home/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ input[type="checkbox"]:checked ~ .modal-background {
.form {
width: 550px;
padding: 100px 0;
text-align: center;
margin: auto;

@media #{$smartphones-1} {
Expand All @@ -57,20 +56,11 @@ input[type="checkbox"]:checked ~ .modal-background {
margin: 0 0 30px 0;
}

input[type="email"] {
background: none;
width: 100%;
padding: 15px 0;
box-sizing: border-box;
outline: none;
font-family: $sans-serif;
font-size: $font-large;
border: none;
border-bottom: 3px solid $medium-gray;
color: $dark-blue;
margin: 0;
.form-label {
font-weight: bold;
}

input[type="email"],
select {
background: none;
width: 100%;
Expand All @@ -82,19 +72,11 @@ input[type="checkbox"]:checked ~ .modal-background {
border: none;
border-bottom: 3px solid $medium-gray;
color: $dark-blue;
margin: 20px 0; /* Add some margin for spacing */
appearance: none; /* Remove default appearance */
-webkit-appearance: none; /* Remove default appearance for Chrome and Safari */
-moz-appearance: none; /* Remove default appearance for Firefox */
background-image: url('data:image/svg+xml;utf8,<svg fill="darkblue" viewBox="0 0 24 24" width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Add a custom dropdown arrow */
background-repeat: no-repeat;
background-position: right 5px center; /* Position the arrow on the right */
background-size: 20px; /* Size of the arrow */
margin: 0 0 50px 0;
}

button {
width: 100%;
padding: 12px 0 15px 0;
padding: 12px 20px 15px 20px;
box-sizing: border-box;
outline: none;
font-family: $sans-serif;
Expand All @@ -104,7 +86,7 @@ input[type="checkbox"]:checked ~ .modal-background {
font-weight: bold;
border-radius: 50px;
color: $white;
margin: 30px 0 0 0;
margin: 00;
cursor: pointer;

&:hover {
Expand Down

0 comments on commit 1a23c75

Please sign in to comment.