Skip to content

Commit 87c2e83

Browse files
author
Duke
committed
add pre home with loading
1 parent 6f60bce commit 87c2e83

File tree

4 files changed

+41
-12
lines changed

4 files changed

+41
-12
lines changed

app/index.html

+39-10
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,65 @@
77
<meta name="MobileOptimized" content="320">
88
<meta name="HandheldFriendly" content="True">
99
<meta name="apple-mobile-web-app-capable" content="yes">
10-
1110
<title>Uhura - The best podcast player</title>
1211
<meta name="description" content="">
1312
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
1413

1514
<meta property="og:title" content="Uhura App" />
1615
<meta property="og:image" content="" />
1716

18-
<link href='https://fonts.googleapis.com/css?family=Exo+2:400,900italic,800italic,700italic,600italic,500italic,400italic,300italic,200italic,100italic,900,800,700,600,500,300,100,200' rel='stylesheet' type='text/css'>
19-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
20-
rel="stylesheet">
21-
2217
{{content-for 'head'}}
2318

2419
<link rel="stylesheet" href="assets/vendor.css">
2520
<link rel="stylesheet" href="assets/uhuraapp.css">
2621

2722
{{content-for 'head-footer'}}
2823

29-
<script>
30-
UserVoice=window.UserVoice||[];(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='https://widget.uservoice.com/wskBzcLNnDXVNIU5Zoa4g.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})();
31-
UserVoice.push(['autoprompt', {}]);
32-
</script>
24+
<link href='https://fonts.googleapis.com/css?family=Exo+2:400,900italic,800italic,700italic,600italic,500italic,400italic,300italic,200italic,100italic,900,800,700,600,500,300,100,200' rel='stylesheet' type='text/css'>
25+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
26+
rel="stylesheet">
3327
</head>
34-
<body>
28+
<body class="application home">
29+
<div id="pre-home">
30+
<div class="mdl-layout mdl-js-layout unlogged">
31+
<main class="mdl-layout__content">
32+
<div class="ember-view topbar-menu simple">
33+
<h1 class="uhura__logo">
34+
<a href="/" class="ember-view active">Uhura</a>
35+
</h1>
36+
</div>
37+
38+
<div class="page-content">
39+
<div class="ember-view mdl-grid">
40+
<div class="mdl-cell mdl-cell--12-col" id="welcome">
41+
<h1>Welcome to the best podcast player</h1>
42+
<p style="line-height: 2; color: #FFF; font-size: 40px; margin-bottom: 30px">Loading...</p>
43+
<img src="/assets/radio.gif" />
44+
</div>
45+
</div>
46+
</div>
47+
</main>
48+
</div>
49+
</div>
3550
{{content-for 'body'}}
3651

3752
<script src="assets/vendor.js"></script>
3853
<script src="assets/uhuraapp.js"></script>
3954

4055
{{content-for 'body-footer'}}
56+
57+
<script>
58+
UserVoice=window.UserVoice||[];(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='https://widget.uservoice.com/wskBzcLNnDXVNIU5Zoa4g.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})();
59+
UserVoice.push(['autoprompt', {}]);
60+
</script>
61+
62+
<script type="text/javascript">
63+
(function() {
64+
document.getElementById('pre-home').remove();
65+
var body = document.querySelector('body').classList;
66+
body.remove('apllication');
67+
body.remove('home');
68+
})()
69+
</script>
4170
</body>
4271
</html>

config/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = function(environment) {
7373
routeAfterAuthentication: 'subscriptions'
7474
}
7575

76-
const ahoyServer = process.env.AHOY_ENDPOINT;
76+
const ahoyServer = process.env.AHOY_ENDPOINT || '';
7777

7878
ENV['ahoy'] = {
7979
debug: environment === 'development',

ember-cli-build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var EmberApp = require('ember-cli/lib/broccoli/ember-app');
55
module.exports = function(defaults) {
66
var app = new EmberApp(defaults, {
77
fingerprint: {
8-
exclude: ['channel-placeholder.png']
8+
exclude: ['channel-placeholder.png', 'radio.gif']
99
},
1010
sassOptions: {
1111
extentions: 'sass'

public/assets/radio.gif

41.3 KB
Loading

0 commit comments

Comments
 (0)