-
Notifications
You must be signed in to change notification settings - Fork 0
/
whatwhattwitterbot.html
71 lines (66 loc) · 2.03 KB
/
whatwhattwitterbot.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<head>
<title>whatwhattwitterbot</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<div class="pure-g-r">
<header>
<div class="content">
<span class="brand">What What Twitter Bot</span>
<div class="pull-right">
{{loginButtons align="right"}}
</div>
</div>
</header>
<section class="banner">
<div class="content">
<h1>Welcome to What What Twitter Bot</h1>
<h2>We've made it easy to turn a regular twitter account into a twitter bot.</h2>
<h2>Give it a try by {{#unless showBots}}<a href="#" class="sign-in">signing in</a> and then {{/unless}}associating a twitter user below.</h2>
</div>
</section>
{{#if showBots}}
<section class="bots">
<div class="content">
<h1>Your bots</h1>
{{> twitterBots}}
</div>
</section>
{{/if}}
{{#if showRules}}
<section class="rules">
{{> twitterRules}}
</section>
{{/if}}
{{#if showSchedules}}
<section class="schedules">
<div class="content">
<h1>Your schedules for {{botName}}</h1>
<div class="schedule"><input type="checkbox" id="schedule-minute" /><label for="schedule-minute">Minutely</label></div>
<div class="schedule"><input type="checkbox" id="schedule-hourly" /><label for="schedule-hourly">Hourly</label></div>
<div class="schedule"><input type="checkbox" id="schedule-daily" /><label for="schedule-daily">Daily</label></div>
</div>
</section>
{{/if}}
</div>
</template>
<template name="modalLayout">
<div class="modal-container">
<div class="modal-bg"></div>
<div class="modal-body" style="background-color: {{bgcolor}}">
{{yield}}
</div>
</div>
</template>
<template name="twitterBots">
<div class="bot-button" data-add-bot>Add a twitter user</div>
{{#each bots}}
<div class="bot-button {{active}}">
<img src="{{profile_image_url}}">
<span>@{{screenName}}</span>
<span class="remove">x</span>
</div>
{{/each}}
</template>