Skip to content

Commit

Permalink
More explicit insturctions
Browse files Browse the repository at this point in the history
  • Loading branch information
mojowen committed Nov 4, 2024
1 parent 7dc18cb commit a5e7961
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/components/form-report/form-report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ export class FormReport {
<Host>
<div id="form-report-component">
<form id="form-report" onSubmit={handleSubmit} onChange={() => (this.isDisabled = false)} onInput={() => (this.isDisabled = false)} hidden={this.showConfirmation}>
<h2 class="is-display" hidden={this.showConfirmation}>
See a long line near a polling site? Let us know where and we’ll send pizza!
</h2>
<div id="form-step-1" hidden={!this.showLocationInput}>
{/* Intro content */}
<slot></slot>
Expand Down
4 changes: 2 additions & 2 deletions src/components/page-home/page-home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ page-home {
background-color: $light-red;
box-shadow: none;
height: 2.2rem;
font-size: 1.9rem;
font-size: 1.4rem;

@media ($under-tablet) {
height: 1rem;
font-size: 0.9rem;
font-size: 1.1rem;
}
@media (max-width: 400px) {
font-size: 0.8rem;
Expand Down
8 changes: 7 additions & 1 deletion src/components/page-home/page-home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ export class PageHome {
<label htmlFor="autocomplete-input">
<div class="container">
<ui-location-search
placeholder={(window?.document?.body?.clientWidth || 0) < 400 ? "Stuck in line? Search here" : "Stuck in a long line? Search your location here"}
placeholder={
(window?.document?.body?.clientWidth || 0) < 400
? "Long line? We'll send pizza!"
: (window?.document?.body?.clientWidth || 0) < 600
? "Long line at polling site? We'll send pizza!"
: "Long line at a polling site? Let us know where - we’ll send pizza!"
}
onLocationSelected={handleLocationSelected}
inputId="homepage"
/>
Expand Down

0 comments on commit a5e7961

Please sign in to comment.