Skip to content

Commit beadb7c

Browse files
committed
Re-add Send to Phone Feature
1 parent 0c135ad commit beadb7c

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

js/views/pin.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,20 @@ class Pin extends React.Component {
126126
if (this.state.hide) {
127127
className += ' hide'
128128
}
129-
var desktopOut = ""
129+
var desktopOut = ''
130130
if (!this.state.emailSent) {
131131
desktopOut = <div>
132132
<h3>Email yourself a link to Transit!</h3>
133133
<form onSubmit={this.sendEmail}>
134134
<input value={this.state.email} type="email" placeholder="Email Address" onChange={this.triggerChange}/><br/>
135-
<button className="primary" type="submit">Send Link</button>
135+
<button className="primary" type="submit">Send Link</button> <button onClick={this.triggerClose}>Cancel</button>
136136
</form>
137137
</div>
138138
} else {
139-
console.log("done")
140139
desktopOut = <div>
141-
<h3>Thanks! You should receive an email shortly.</h3>
142-
<button onTouchTap={this.triggerClose}>Close</button>
143-
</div>
140+
<h3>Thanks! You should receive an email shortly.</h3>
141+
<button onTouchTap={this.triggerClose}>Close</button>
142+
</div>
144143
}
145144
return(
146145
<div className={className}>

js/views/savedstations.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class SavedSations extends React.Component {
132132
action={this.props.togglePin}
133133
icon="pin.svg"
134134
name="Install App"
135-
description="Add Transit to your home screen"
135+
description={<div><span>Add Transit to your home screen</span><span>Send Transit to your phone</span></div>}
136136
/>
137137
</ul>
138138
</div>

scss/_navigation.scss

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,23 @@
235235
}
236236

237237
@media (min-width: 851px) {
238-
.onboard {
238+
// .onboard {
239+
// display: none;
240+
// }
241+
}
242+
.onboard li:last-child span {
243+
&:last-child {
239244
display: none;
240245
}
241246
}
242247
@media (min-width: 481px) {
243-
.onboard .text-only {
244-
border-bottom: 0;
245-
}
246-
.onboard li:last-child {
247-
display: none;
248+
.onboard li:last-child span {
249+
&:first-child {
250+
display: none;
251+
}
252+
&:last-child {
253+
display: inline;
254+
}
248255
}
249256
}
250257
@media (display-mode: standalone) {

scss/_splash.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@
8787
}
8888

8989
@media (min-width: 481px) {
90-
display: none;
90+
.mobile {
91+
display: none;
92+
}
93+
.desktop {
94+
display: block;
95+
}
9196
}
9297

9398
a {
@@ -123,5 +128,6 @@
123128
}
124129
h3 {
125130
margin-top: 0;
131+
font-weight: 600;
126132
}
127133
}

0 commit comments

Comments
 (0)