Skip to content

Commit e81e422

Browse files
committed
Add banner to index
1 parent 374f261 commit e81e422

File tree

6 files changed

+68
-66
lines changed

6 files changed

+68
-66
lines changed

static/css/_dbot-banner.scss

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.dbot-banner {
2+
-webkit-font-smoothing: antialiased;
3+
-moz-osx-font-smoothing: antialiased;
4+
align-items: center;
5+
align-self: center;
6+
display: flex;
7+
float: left;
8+
height: calc(100% - 20px);
9+
margin: 10px 0;
10+
11+
&__icon {
12+
margin-right: 8px;
13+
margin-left: 32px;
14+
}
15+
&__ad {
16+
color: #fff;
17+
margin-right: 11px;
18+
display: flex;
19+
justify-content: center;
20+
21+
&-title {
22+
font-weight: normal;
23+
font-size: 14px;
24+
}
25+
&-subtitle {
26+
font-size: 16px;
27+
font-weight: bold;
28+
}
29+
}
30+
&__button {
31+
font-size: 14px;
32+
background-color: #ff444f;
33+
font-weight: bold;
34+
vertical-align: middle;
35+
align-items: center;
36+
justify-content: center;
37+
touch-action: manipulation;
38+
cursor: pointer;
39+
white-space: nowrap;
40+
padding: 0 1.6rem;
41+
display: inline-flex;
42+
border: 0;
43+
height: 32px;
44+
border-radius: 4px;
45+
transition: all .2s cubic-bezier(.65,.05,.36,1);
46+
outline: 0;
47+
position: relative;
48+
text-decoration: none;
49+
text-transform: none!important;
50+
51+
&:hover {
52+
background: #eb3e48;
53+
}
54+
55+
&:focus {
56+
outline: none;
57+
}
58+
}
59+
&__separator {
60+
width: 2px;
61+
height: 36px;
62+
background-color: #17212c;
63+
}
64+
}

static/css/bot.scss

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import 'color';
22
@import 'chart';
3+
@import 'dbot-banner';
34
@import 'fontello';
45
@import 'panel';
56
@import 'blockly-toolbox';
@@ -217,71 +218,6 @@ label {
217218
z-index: 10001 !important;
218219
}
219220

220-
.dbot-banner {
221-
-webkit-font-smoothing: antialiased;
222-
-moz-osx-font-smoothing: antialiased;
223-
align-items: center;
224-
display: flex;
225-
float: left;
226-
height: calc(100% - 20px);
227-
margin: 10px 0;
228-
229-
&__icon {
230-
margin-right: 8px;
231-
margin-left: 32px;
232-
}
233-
&__ad {
234-
color: #fff;
235-
margin-right: 11px;
236-
display: flex;
237-
justify-content: center;
238-
239-
&-title {
240-
font-weight: normal;
241-
font-size: 14px;
242-
}
243-
&-subtitle {
244-
font-size: 16px;
245-
font-weight: bold;
246-
}
247-
}
248-
&__button {
249-
font-size: 14px;
250-
background-color: #ff444f;
251-
font-weight: bold;
252-
width: 120px;
253-
vertical-align: middle;
254-
align-items: center;
255-
justify-content: center;
256-
touch-action: manipulation;
257-
cursor: pointer;
258-
white-space: nowrap;
259-
padding: 0 1.6rem;
260-
display: inline-flex;
261-
border: 0;
262-
height: 32px;
263-
border-radius: 4px;
264-
transition: all .2s cubic-bezier(.65,.05,.36,1);
265-
outline: 0;
266-
position: relative;
267-
text-decoration: none;
268-
text-transform: none!important;
269-
270-
&:hover {
271-
background: #eb3e48;
272-
}
273-
274-
&:focus {
275-
outline: none;
276-
}
277-
}
278-
&__separator {
279-
width: 2px;
280-
height: 100%;
281-
background-color: #17212c;
282-
}
283-
}
284-
285221
@media only screen and (max-width: 600px) {
286222
.dbot-banner {
287223
display: none;

static/css/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import 'color';
22
@import 'constants';
3+
@import 'dbot-banner';
34
@import 'footer';
45

56
html,

templates/bot.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</a>
7070
</div>
7171
</div>
72-
{{> ../templates/partials/dbot-header }}
72+
{{> ../templates/partials/dbot-banner }}
7373
<div class="right-header show-on-load">
7474
<div class="intro-login-logout">
7575
<div id="account-list">

templates/index.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<div class="wrapper">
2222
<div class="logo-wrapper">
2323
<div id="binary-logo"></div>
24+
{{> ../templates/partials/dbot-banner }}
2425
</div>
2526
</div>
2627
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy