Skip to content

Commit 861f470

Browse files
committed
update styling, errors
1 parent fe1a6b3 commit 861f470

File tree

3 files changed

+19
-41
lines changed

3 files changed

+19
-41
lines changed

src/styles/index.css

+4-28
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,19 @@
1313
height: 25%;
1414
}
1515

16-
.error {
17-
display: block;
18-
margin: auto;
19-
text-align: center;
20-
color: rgb(0, 0, 0);
21-
overflow-y: hidden;
22-
}
23-
24-
.error > img {
25-
width: 25%;
26-
height: 25%;
27-
}
28-
29-
.btn-url {
30-
width: 100%;
16+
.urls {
3117
color: #2F3941;
3218
background-color: #ffffff;
3319
background-image: none;
3420
white-space: nowrap;
3521
font-weight: 600;
22+
width: auto;
3623
}
3724

38-
.btn-list {
25+
.url-list {
3926
text-align: center;
40-
width: 90%;
41-
margin: auto;
42-
}
43-
44-
#app {
45-
height: 100%;
46-
overflow: hidden;
47-
}
48-
49-
html {
50-
overflow: hidden;
5127
}
5228

5329
ul {
5430
list-style-type: none;
55-
}
31+
}

src/templates/default.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { templatingLoop as loop } from '../javascripts/lib/helpers.js'
66
*/
77
function uriMarkup (uri) {
88
return (`
9-
<li>
10-
<a href="${uri.url}" target="_blank" class="btn btn-default btn-url" role="button">${uri.title}</a>
9+
<li class="url-list">
10+
<a href="${uri.url}" target="_blank" class="list-group-item list-group-item-action urls" role="button">${uri.title}</a>
1111
</li>
1212
`)
1313
}
@@ -18,8 +18,8 @@ function uriMarkup (uri) {
1818
*/
1919
export default function (templateUris) {
2020
return (`
21-
<div id="well-urls" class="well well-sm">
22-
<ul class="btn-list">${loop(templateUris, uriMarkup)}</ul>
21+
<div id="well-urls" class="card">
22+
<ul class="list-group">${loop(templateUris, uriMarkup)}</ul>
2323
</div>
2424
`)
2525
}

src/templates/error.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
*/
44
export default function (error) {
55
return (`
6-
<div class="error">
7-
<img src="warning.png" />
8-
<h4>Oops! Something went wrong! :(</h4>
9-
<p>${error}</p>
10-
<br/>
11-
<p>Please submit an issue below</p>
12-
<a class="btn btn-url" target="_blank" href="https://github.com/Ibotta/url_builder_app/issues">
13-
Submit Issue
14-
</a>
6+
<div class="card text-center">
7+
<div class="card-body">
8+
<div class="alert alert-danger" role="alert">
9+
${error}
10+
</div>
11+
<p class="card-text">Please copy the error message above, and use the button below to submit an issue to the developer.</p>
12+
<p class="card-text">Provide a detailed description of the problem when submitting an issue.</p>
13+
<a class="btn btn-danger" target="_blank" href="https://github.com/Ibotta/url_builder_app/issues">
14+
Submit Issue
15+
</a>
16+
</div>
1517
</div>
1618
`)
1719
}

0 commit comments

Comments
 (0)